pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
add velox version 0.0.20190810
Module Name: pkgsrc-wip
Committed By: Maya Rashish <maya%NetBSD.org@localhost>
Pushed By: coypu
Date: Sat Aug 10 23:02:30 2019 +0300
Changeset: 2d2aa0bceda18257bde5ebfb9c05aa8967169326
Added Files:
velox/DESCR
velox/Makefile
velox/PLIST
velox/distinfo
velox/patches/patch-config.c
velox/patches/patch-config.mk
Log Message:
add velox version 0.0.20190810
velox is a simple window manager based on swc. It is inspired by
dwm and xmonad.
velox uses tag-based window management similar to dwm. This allows
you to construct your workspace by selecting a set of tags to work
with. However, in contrast with dwm, windows do not have any screen
associated with them; they are shown on whichever screen has their
tag selected, allowing you to easily move windows between screens
by selecting their tag on a different screen. This is similar to
the multi-monitor workspace switching in xmonad.
To ensure that we never attempt to show a window in two places at
once, we have to impose several constraints. First, each window
must have exactly one tag. In practice, I've found that I rarely
intentionally mark a window with more than one tag anyway. Second,
when you select a tag that is currently display on a different
screen, the tag is first deselected from that screen.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2d2aa0bceda18257bde5ebfb9c05aa8967169326
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
velox/DESCR | 17 +++++++++++++++++
velox/Makefile | 30 ++++++++++++++++++++++++++++++
velox/PLIST | 5 +++++
velox/distinfo | 8 ++++++++
velox/patches/patch-config.c | 31 +++++++++++++++++++++++++++++++
velox/patches/patch-config.mk | 13 +++++++++++++
6 files changed, 104 insertions(+)
diffs:
diff --git a/velox/DESCR b/velox/DESCR
new file mode 100644
index 0000000000..b0d3a22fd7
--- /dev/null
+++ b/velox/DESCR
@@ -0,0 +1,17 @@
+velox is a simple window manager based on swc. It is inspired by
+dwm and xmonad.
+
+velox uses tag-based window management similar to dwm. This allows
+you to construct your workspace by selecting a set of tags to work
+with. However, in contrast with dwm, windows do not have any screen
+associated with them; they are shown on whichever screen has their
+tag selected, allowing you to easily move windows between screens
+by selecting their tag on a different screen. This is similar to
+the multi-monitor workspace switching in xmonad.
+
+To ensure that we never attempt to show a window in two places at
+once, we have to impose several constraints. First, each window
+must have exactly one tag. In practice, I've found that I rarely
+intentionally mark a window with more than one tag anyway. Second,
+when you select a tag that is currently display on a different
+screen, the tag is first deselected from that screen.
diff --git a/velox/Makefile b/velox/Makefile
new file mode 100644
index 0000000000..20e1dba6b0
--- /dev/null
+++ b/velox/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.3 2018/08/22 09:43:57 wiz Exp $
+
+GIT_COMMIT= 2d673e1a76c9e6fa504a03444ba53913f1ef872d
+DISTNAME= ${GIT_COMMIT}
+PKGNAME= velox-0.0.20190810
+CATEGORIES= wm
+MASTER_SITES= ${MASTER_SITE_GITHUB:=michaelforney/velox/archive/}
+EXTRACT_SUFX= .zip
+DIST_SUBDIR= velox-${GIT_COMMIT}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/michaelforney/velox
+COMMENT= simple window manager based on swc
+LICENSE= mit
+
+USE_TOOLS+= gmake pkg-config
+
+WRKSRC= ${WRKDIR}/velox-${GIT_COMMIT}
+
+PKGCONFIG_OVERRIDE+= velox.pc.in
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} != "Linux"
+CFLAGS+= -I${BUILDLINK_PREFIX.libepoll-shim}/include/libepoll-shim
+.include "../../wip/libepoll-shim/buildlink3.mk"
+.endif
+
+.include "../../wip/swc/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/velox/PLIST b/velox/PLIST
new file mode 100644
index 0000000000..3775a1fece
--- /dev/null
+++ b/velox/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+bin/velox
+lib/pkgconfig/velox.pc
+libexec/velox/status_bar
+share/velox/velox.xml
diff --git a/velox/distinfo b/velox/distinfo
new file mode 100644
index 0000000000..27ea44e951
--- /dev/null
+++ b/velox/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (velox-2d673e1a76c9e6fa504a03444ba53913f1ef872d/2d673e1a76c9e6fa504a03444ba53913f1ef872d.zip) = f7777e86201baa6b8918b6cd616cb7dafd21ec6a
+RMD160 (velox-2d673e1a76c9e6fa504a03444ba53913f1ef872d/2d673e1a76c9e6fa504a03444ba53913f1ef872d.zip) = 38d14174f488f244abc401fa82b3b8a390877dde
+SHA512 (velox-2d673e1a76c9e6fa504a03444ba53913f1ef872d/2d673e1a76c9e6fa504a03444ba53913f1ef872d.zip) = 72f98495a87171d061607af3108e562a27d3600a4b01d9b1a5667bc174210da93d3bf517a29d99efbd4b58c191afe404121af3fe8d879b4188411c8d857cf9aa
+Size (velox-2d673e1a76c9e6fa504a03444ba53913f1ef872d/2d673e1a76c9e6fa504a03444ba53913f1ef872d.zip) = 41088 bytes
+SHA1 (patch-config.c) = c01d37f038097063806d1bd370373dd6eb87a3d2
+SHA1 (patch-config.mk) = 578e979d3c6e967e5c1e4224f29a6c53ef009114
diff --git a/velox/patches/patch-config.c b/velox/patches/patch-config.c
new file mode 100644
index 0000000000..afd6be18f8
--- /dev/null
+++ b/velox/patches/patch-config.c
@@ -0,0 +1,31 @@
+$NetBSD$
+
+--- config.c.orig 2019-06-15 23:36:40.000000000 +0000
++++ config.c
+@@ -27,7 +27,9 @@
+ #include "velox.h"
+
+ #include <fcntl.h>
++#ifdef __linux__
+ #include <linux/input.h>
++#endif
+ #include <spawn.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -291,6 +293,7 @@ parse_key(char *s, uint32_t *value)
+ static bool
+ parse_button(char *s, uint32_t *value)
+ {
++#ifndef __NetBSD__
+ if (strcmp(s, "left") == 0)
+ *value = BTN_LEFT;
+ else if (strcmp(s, "right") == 0)
+@@ -303,7 +306,7 @@ parse_button(char *s, uint32_t *value)
+ *value = BTN_EXTRA;
+ else
+ return false;
+-
++#endif
+ return true;
+ }
+
diff --git a/velox/patches/patch-config.mk b/velox/patches/patch-config.mk
new file mode 100644
index 0000000000..a830ca2494
--- /dev/null
+++ b/velox/patches/patch-config.mk
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- config.mk.orig 2019-06-15 23:36:40.000000000 +0000
++++ config.mk
+@@ -1,7 +1,7 @@
+ # velox: config.mk
+
+ CC = gcc
+-CFLAGS = -pipe
++CFLAGS ?= -pipe
+
+ ENABLE_DEBUG = 1
+
Home |
Main Index |
Thread Index |
Old Index