pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/wm wm: Add herbstluftwm.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2f3d506fb83e
branches:  trunk
changeset: 407069:2f3d506fb83e
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jan 01 15:24:01 2020 +0000

description:
wm: Add herbstluftwm.

Based on work by voidpin and benny in wip, with fixes.

herbstluftwm is a manual tiling window manager for X11 using Xlib and Glib.

Its main features can be described with:

  - The layout is based on splitting frames into subframes which can be
    split again or can be filled with windows (similar to i3 or musca)

  - Tags (or workspaces, or virtual desktops) can be added/removed at
    runtime.  Each tag contains an own layout

  - Exactly one tag is viewed on each monitor.  The tags are monitor
    independent (similar to xmonad)

  - It is configured at runtime via IPC calls from herbstclient.  So the
    configuration file is just a script which is run on startup.  (Similar
    to wmii or musca)

diffstat:

 wm/Makefile                                  |   3 +-
 wm/herbstluftwm/DESCR                        |  16 ++++++++++++++
 wm/herbstluftwm/Makefile                     |  30 +++++++++++++++++++++++++++
 wm/herbstluftwm/PLIST                        |  31 ++++++++++++++++++++++++++++
 wm/herbstluftwm/distinfo                     |   7 ++++++
 wm/herbstluftwm/patches/patch-CMakeLists.txt |  28 +++++++++++++++++++++++++
 6 files changed, 114 insertions(+), 1 deletions(-)

diffs (149 lines):

diff -r 7a65b4497d1c -r 2f3d506fb83e wm/Makefile
--- a/wm/Makefile       Wed Jan 01 15:06:36 2020 +0000
+++ b/wm/Makefile       Wed Jan 01 15:24:01 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.143 2019/12/30 04:25:17 gutteridge Exp $
+# $NetBSD: Makefile,v 1.144 2020/01/01 15:24:01 nia Exp $
 #
 
 COMMENT=       X11 window managers, configuration tools, and themes
@@ -44,6 +44,7 @@
 SUBDIR+=       fvwm-themes
 SUBDIR+=       fvwm1
 SUBDIR+=       golem
+SUBDIR+=       herbstluftwm
 SUBDIR+=       i3
 SUBDIR+=       icewm
 SUBDIR+=       icewm-imlib
diff -r 7a65b4497d1c -r 2f3d506fb83e wm/herbstluftwm/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/herbstluftwm/DESCR     Wed Jan 01 15:24:01 2020 +0000
@@ -0,0 +1,16 @@
+herbstluftwm is a manual tiling window manager for X11 using Xlib and Glib.
+
+Its main features can be described with:
+
+  - The layout is based on splitting frames into subframes which can be
+    split again or can be filled with windows (similar to i3 or musca)
+
+  - Tags (or workspaces, or virtual desktops) can be added/removed at
+    runtime.  Each tag contains an own layout
+
+  - Exactly one tag is viewed on each monitor.  The tags are monitor
+    independent (similar to xmonad)
+
+  - It is configured at runtime via IPC calls from herbstclient.  So the
+    configuration file is just a script which is run on startup.  (Similar
+    to wmii or musca)
diff -r 7a65b4497d1c -r 2f3d506fb83e wm/herbstluftwm/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/herbstluftwm/Makefile  Wed Jan 01 15:24:01 2020 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2020/01/01 15:24:02 nia Exp $
+
+DISTNAME=      herbstluftwm-0.7.2
+CATEGORIES=    wm
+MASTER_SITES=  https://herbstluftwm.org/tarballs/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://herbstluftwm.org/
+COMMENT=       Manual tiling window manager for X11 using Xlib and Glib
+LICENSE=       modified-bsd
+
+USE_CMAKE=     yes
+USE_TOOLS+=    pkg-config bash:run
+USE_LANGUAGES= c c++
+
+CONFIGURE_DIRS=        build
+CMAKE_ARG_PATH=        ..
+
+CFLAGS.NetBSD+=        -D_NETBSD_SOURCE
+
+REPLACE_BASH+= share/dmenu_run_hlwm
+
+pre-configure:
+       ${MKDIR} -p ${WRKSRC}/build
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 7a65b4497d1c -r 2f3d506fb83e wm/herbstluftwm/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/herbstluftwm/PLIST     Wed Jan 01 15:24:01 2020 +0000
@@ -0,0 +1,31 @@
+@comment $NetBSD: PLIST,v 1.1 2020/01/01 15:24:02 nia Exp $
+bin/dmenu_run_hlwm
+bin/herbstclient
+bin/herbstluftwm
+man/man1/herbstclient.1
+man/man1/herbstluftwm.1
+man/man7/herbstluftwm-tutorial.7
+share/doc/herbstluftwm/BUGS
+share/doc/herbstluftwm/INSTALL
+share/doc/herbstluftwm/LICENSE
+share/doc/herbstluftwm/NEWS
+share/doc/herbstluftwm/examples/README
+share/doc/herbstluftwm/examples/dmenu.sh
+share/doc/herbstluftwm/examples/dumpbeautify.sh
+share/doc/herbstluftwm/examples/exec_on_tag.sh
+share/doc/herbstluftwm/examples/execwith.sh
+share/doc/herbstluftwm/examples/floatmon.sh
+share/doc/herbstluftwm/examples/herbstcommander.sh
+share/doc/herbstluftwm/examples/keychain.sh
+share/doc/herbstluftwm/examples/lasttag.sh
+share/doc/herbstluftwm/examples/layout.sh
+share/doc/herbstluftwm/examples/loadstate.sh
+share/doc/herbstluftwm/examples/q3terminal.sh
+share/doc/herbstluftwm/examples/savestate.sh
+share/doc/herbstluftwm/examples/scratchpad.sh
+share/doc/herbstluftwm/examples/wselect.sh
+share/doc/herbstluftwm/herbstclient.html
+share/doc/herbstluftwm/herbstluftwm-tutorial.html
+share/doc/herbstluftwm/herbstluftwm.html
+share/xsessions/herbstluftwm.desktop
+share/zsh/functions/Completion/X/_herbstclient
diff -r 7a65b4497d1c -r 2f3d506fb83e wm/herbstluftwm/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/herbstluftwm/distinfo  Wed Jan 01 15:24:01 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/01/01 15:24:02 nia Exp $
+
+SHA1 (herbstluftwm-0.7.2.tar.gz) = b07b623fc675ae578a282ded84f38dfa6cd9436e
+RMD160 (herbstluftwm-0.7.2.tar.gz) = 1a61cafad3af500d51aa7cd39fb5413055e33178
+SHA512 (herbstluftwm-0.7.2.tar.gz) = abb49bbc3de9a0ef619ce7063c1cea0d0d25ab2195c53dc0d33e061ad24060da4bbe9b99b9b9126028cdf68b462d4fcc8d1534431e4892d571ff897a68d2113c
+Size (herbstluftwm-0.7.2.tar.gz) = 245506 bytes
+SHA1 (patch-CMakeLists.txt) = 0e5090670bba37bf8c264af1e02dd33e5b2146b8
diff -r 7a65b4497d1c -r 2f3d506fb83e wm/herbstluftwm/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/herbstluftwm/patches/patch-CMakeLists.txt      Wed Jan 01 15:24:01 2020 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2020/01/01 15:24:02 nia Exp $
+
+Do not clobber CFLAGS and set the correct MANDIR.
+
+--- CMakeLists.txt.orig        2019-05-09 09:04:33.000000000 +0000
++++ CMakeLists.txt
+@@ -34,12 +34,6 @@ set(SYSCONFDIR "${DESTDIR}/etc")
+ set(CONFIGDIR "${SYSCONFDIR}/xdg/herbstluftwm")
+ 
+ 
+-if(CMAKE_COMPILER_IS_GNUCC)
+-    set(CMAKE_C_FLAGS "-pedantic -Wall")
+-    set(CMAKE_CXX_FLAGS "-pedantic -Wall -Wno-sign-compare -Wno-narrowing -Wno-deprecated-register")
+-endif()
+-
+-
+ # ----------------------------------------------------------------------------
+ # Find Libraries
+ 
+@@ -187,7 +181,7 @@ target_link_libraries(herbstclient ${LIB
+ 
+ set(BINDIR ${DESTDIR}${CMAKE_INSTALL_PREFIX}/bin)
+ set(DATADIR ${DESTDIR}${CMAKE_INSTALL_PREFIX}/share)
+-set(MANDIR ${DATADIR}/man)
++set(MANDIR ${DESTDIR}${CMAKE_INSTALL_MANDIR})
+ set(DOCDIR ${DATADIR}/doc/herbstluftwm)
+ set(EXAMPLESDIR ${DOCDIR}/examples)
+ set(LICENSEDIR ${DOCDIR})



Home | Main Index | Thread Index | Old Index