Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Mar 2023 12:46:58 GMT
From:      Felix Palmen <zirias@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7c8486abe7ba - main - x11-wm/bspwm-devel: Add new port
Message-ID:  <202303111246.32BCkwIB092433@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by zirias:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7c8486abe7ba87853075bf75362be9795c169895

commit 7c8486abe7ba87853075bf75362be9795c169895
Author:     Joel Bodenmann <jbo@insane.engineer>
AuthorDate: 2023-03-10 14:48:47 +0000
Commit:     Felix Palmen <zirias@FreeBSD.org>
CommitDate: 2023-03-11 12:46:28 +0000

    x11-wm/bspwm-devel: Add new port
    
    This is the development version of the existing x11-wm/bspwm port.
    
    PR:             270086
    Approved by:    tcberner (mentor)
---
 x11-wm/Makefile                         |  1 +
 x11-wm/bspwm-devel/Makefile             | 61 +++++++++++++++++++++++++++++++++
 x11-wm/bspwm-devel/distinfo             |  3 ++
 x11-wm/bspwm-devel/files/pkg-message.in | 14 ++++++++
 x11-wm/bspwm-devel/pkg-descr            |  2 ++
 x11-wm/bspwm-devel/pkg-plist            | 27 +++++++++++++++
 x11-wm/bspwm/Makefile                   |  2 ++
 7 files changed, 110 insertions(+)

diff --git a/x11-wm/Makefile b/x11-wm/Makefile
index f17774e0e7aa..d7575e5f822e 100644
--- a/x11-wm/Makefile
+++ b/x11-wm/Makefile
@@ -12,6 +12,7 @@
     SUBDIR += berry
     SUBDIR += blackbox
     SUBDIR += bspwm
+    SUBDIR += bspwm-devel
     SUBDIR += cage
     SUBDIR += cagebreak
     SUBDIR += chamfer
diff --git a/x11-wm/bspwm-devel/Makefile b/x11-wm/bspwm-devel/Makefile
new file mode 100644
index 000000000000..1c13e8631df7
--- /dev/null
+++ b/x11-wm/bspwm-devel/Makefile
@@ -0,0 +1,61 @@
+PORTNAME=	bspwm
+DISTVERSION=	0.9.10.20221119
+CATEGORIES=	x11-wm
+PKGNAMESUFFIX=	-devel
+
+MAINTAINER=	jbo@insane.engineer
+COMMENT=	Tiling window manager based on binary space partitioning
+WWW=		https://github.com/baskerville/bspwm
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libxcb-util.so:x11/xcb-util \
+		libxcb-icccm.so:x11/xcb-util-wm \
+		libxcb-keysyms.so:x11/xcb-util-keysyms
+RUN_DEPENDS=	sxhkd:x11/sxhkd
+
+USES=		gmake localbase:ldflags xorg
+USE_GITHUB=	yes
+GH_ACCOUNT=	baskerville
+GH_TAGNAME=	527864d8716462e52f85a419f97a776c0643a68c
+USE_XORG=	xcb
+
+CONFLICTS_INSTALL=	bspwm
+
+SUB_FILES=	pkg-message
+
+OPTIONS_DEFINE=	DOCS EXAMPLES CONTRIB
+OPTIONS_SUB=	yes
+CONTRIB_DESC=	Install contrib (shell completions, etc.)
+
+do-install:
+	${MKDIR} ${STAGEDIR}${BINDIR} ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_PROGRAM} ${WRKSRC}/bspc ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/bspwm ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/doc/bspc.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/doc/bspwm.1 ${STAGEDIR}${MANPREFIX}/man/man1
+
+post-install-CONTRIB-on:
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/xsessions
+	${INSTALL_DATA} ${WRKSRC}/contrib/bash_completion \
+		${STAGEDIR}${PREFIX}/share/bash-completion/completions/bspc
+	${INSTALL_DATA} ${WRKSRC}/contrib/fish_completion \
+		${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/bspc.fish
+	${INSTALL_DATA} ${WRKSRC}/contrib/zsh_completion \
+		${STAGEDIR}${PREFIX}/share/zsh/site-functions/_bspc
+	${INSTALL_DATA} ${WRKSRC}/contrib/freedesktop/bspwm.desktop \
+		${STAGEDIR}${PREFIX}/share/xsessions/bspwm.desktop
+
+post-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/*.md ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>
diff --git a/x11-wm/bspwm-devel/distinfo b/x11-wm/bspwm-devel/distinfo
new file mode 100644
index 000000000000..ac989022da4d
--- /dev/null
+++ b/x11-wm/bspwm-devel/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1678473558
+SHA256 (baskerville-bspwm-0.9.10.20221119-527864d8716462e52f85a419f97a776c0643a68c_GH0.tar.gz) = 964a1fee1a0a9b01df3622a8f53ab156b2c754e07ac806095ac3bf943edd13d1
+SIZE (baskerville-bspwm-0.9.10.20221119-527864d8716462e52f85a419f97a776c0643a68c_GH0.tar.gz) = 116801
diff --git a/x11-wm/bspwm-devel/files/pkg-message.in b/x11-wm/bspwm-devel/files/pkg-message.in
new file mode 100644
index 000000000000..21b09864d295
--- /dev/null
+++ b/x11-wm/bspwm-devel/files/pkg-message.in
@@ -0,0 +1,14 @@
+[
+{ type: install
+  message: <<EOM
+Copy the files bspwmrc and sxhkdrc from %%EXAMPLESDIR%% to
+~/.config/bspwm/ and ~/.config/sxhkd/ and configure them as you wish.
+
+And add these lines to you .xinitrc:
+sxhkd &
+exec bspwm
+
+Then type startx from tty to run bspwm.
+EOM
+}
+]
diff --git a/x11-wm/bspwm-devel/pkg-descr b/x11-wm/bspwm-devel/pkg-descr
new file mode 100644
index 000000000000..58479c372eaf
--- /dev/null
+++ b/x11-wm/bspwm-devel/pkg-descr
@@ -0,0 +1,2 @@
+bspwm is a tiling window manager that represents windows as the leaves
+of a full binary tree. It is controlled and configured via bspc.
diff --git a/x11-wm/bspwm-devel/pkg-plist b/x11-wm/bspwm-devel/pkg-plist
new file mode 100644
index 000000000000..0ee88a1778f9
--- /dev/null
+++ b/x11-wm/bspwm-devel/pkg-plist
@@ -0,0 +1,27 @@
+bin/bspc
+bin/bspwm
+man/man1/bspc.1.gz
+man/man1/bspwm.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.md
+%%PORTDOCS%%%%DOCSDIR%%/CONTRIBUTING.md
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL.md
+%%PORTDOCS%%%%DOCSDIR%%/MISC.md
+%%PORTDOCS%%%%DOCSDIR%%/TODO.md
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bspwmrc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/external_rules/bspwmrc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/external_rules/external_rules
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/overlapping_borders/bspwmrc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/panel/bspwmrc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/panel/panel
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/panel/panel_bar
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/panel/panel_colors
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/panel/profile
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/panel/sxhkdrc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/receptacles/README.md
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/receptacles/extract_canvas
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/receptacles/induce_rules
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sxhkdrc
+%%CONTRIB%%share/bash-completion/completions/bspc
+%%CONTRIB%%share/fish/vendor_completions.d/bspc.fish
+%%CONTRIB%%share/xsessions/bspwm.desktop
+%%CONTRIB%%share/zsh/site-functions/_bspc
diff --git a/x11-wm/bspwm/Makefile b/x11-wm/bspwm/Makefile
index 0a677e5794be..5af4f17f086c 100644
--- a/x11-wm/bspwm/Makefile
+++ b/x11-wm/bspwm/Makefile
@@ -20,6 +20,8 @@ USE_XORG=	xcb
 USE_GITHUB=	yes
 GH_ACCOUNT=	baskerville
 
+CONFLICTS_INSTALL=  bspwm-devel
+
 SUB_FILES=	pkg-message
 
 OPTIONS_DEFINE=	DOCS EXAMPLES CONTRIB



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303111246.32BCkwIB092433>