summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-08-05 23:25:12 +0100
committerSam James <sam@gentoo.org>2023-08-05 23:28:28 +0100
commit8d1d7ad795b467317f1daf54f724b8ec123816a4 (patch)
tree65f7f27bd5c59fd3c621df3d6deef67168ebbaf6 /x11-wm/blackbox
parentx11-wm/wmii: fix shebang in /etc/X11/Sessions file (diff)
downloadgentoo-8d1d7ad795b467317f1daf54f724b8ec123816a4.tar.gz
gentoo-8d1d7ad795b467317f1daf54f724b8ec123816a4.tar.bz2
gentoo-8d1d7ad795b467317f1daf54f724b8ec123816a4.zip
x11-wm/blackbox: fix shebang in /etc/X11/Sessions file
A file in /etc/X11/Sessions with just the path that's *not* executable is fine, but if it's executable, it's reasonably treated as a script. Oops. Bug: https://bugs.gentoo.org/911787 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'x11-wm/blackbox')
-rw-r--r--x11-wm/blackbox/blackbox-0.77-r1.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/x11-wm/blackbox/blackbox-0.77-r1.ebuild b/x11-wm/blackbox/blackbox-0.77-r1.ebuild
new file mode 100644
index 000000000000..ac69b50f801a
--- /dev/null
+++ b/x11-wm/blackbox/blackbox-0.77-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="A small, fast, full-featured window manager for X"
+HOMEPAGE="https://github.com/bbidulock/blackboxwm"
+SRC_URI="https://github.com/bbidulock/blackboxwm/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="debug nls static-libs truetype"
+
+RDEPEND="x11-libs/libXft
+ x11-libs/libXt
+ x11-libs/libX11
+ nls? ( >=sys-devel/gettext-0.20 )
+ truetype? ( media-libs/freetype )"
+DEPEND="${RDEPEND}
+ x11-base/xorg-proto"
+BDEPEND=">=sys-devel/autoconf-2.71
+ virtual/pkgconfig"
+
+S="${WORKDIR}"/blackboxwm-${PV}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.77-gcc12-time.patch
+)
+
+src_prepare() {
+ sed -e '/AC_DISABLE_SHARED/d' -i configure.ac || die
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --sysconfdir=/etc/X11/${PN} \
+ $(use_enable debug) \
+ $(use_enable nls) \
+ $(use_enable truetype xft)
+}
+
+src_install() {
+ exeinto /etc/X11/Sessions
+ newexe - ${PN} <<-EOF
+ #!/bin/sh
+ ${PN}
+ EOF
+
+ insinto /usr/share/xsessions
+ doins "${FILESDIR}/${PN}.desktop"
+
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog* COMPLIANCE README* TODO
+
+ find "${D}" -name '*.la' -delete || die
+ use static-libs || rm "${D}"/usr/$(get_libdir)/libbt.a || die
+}