summaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-08-05 23:12:08 +0100
committerSam James <sam@gentoo.org>2023-08-05 23:28:23 +0100
commit2956204eeed14e65a51c7d727c3ef76a3dbf0700 (patch)
tree72cd61822fe596f22508d1a7f60eafa685b3fe13 /x11-wm
parentkde-plasma/plasma-pa: drop 5.27.6 (diff)
downloadgentoo-2956204eeed14e65a51c7d727c3ef76a3dbf0700.tar.gz
gentoo-2956204eeed14e65a51c7d727c3ef76a3dbf0700.tar.bz2
gentoo-2956204eeed14e65a51c7d727c3ef76a3dbf0700.zip
x11-wm/wmii: 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')
-rw-r--r--x11-wm/wmii/wmii-3.9.2-r8.ebuild86
1 files changed, 86 insertions, 0 deletions
diff --git a/x11-wm/wmii/wmii-3.9.2-r8.ebuild b/x11-wm/wmii/wmii-3.9.2-r8.ebuild
new file mode 100644
index 000000000000..f800a69592fe
--- /dev/null
+++ b/x11-wm/wmii/wmii-3.9.2-r8.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+MY_P="wmii+ixp-${PV}"
+
+DESCRIPTION="A dynamic window manager for X11"
+HOMEPAGE="https://github.com/0intro/wmii"
+SRC_URI="https://dl.suckless.org/wmii/${MY_P}.tbz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+
+DEPEND="
+ media-libs/freetype
+ >=sys-libs/libixp-0.5_p20110208-r3
+ x11-libs/libXext
+ x11-libs/libXft
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libX11"
+RDEPEND="${DEPEND}
+ media-fonts/font-misc-misc
+ x11-apps/xmessage
+ x11-apps/xsetroot"
+BDEPEND="virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( NEWS NOTES README TODO )
+
+# Force dynamic linking, bug #273332
+MAKEOPTS="${MAKEOPTS} STATIC= -j1"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.9.2-libdir.patch
+)
+
+src_prepare() {
+ default
+
+ mywmiiconf=(
+ PREFIX=/usr
+ DOC=/usr/share/doc/${PF}
+ ETC=/etc
+ LIBDIR=/usr/$(get_libdir)
+ CC="$(tc-getCC) -c"
+ LD="$(tc-getCC)"
+ AR="$(tc-getAR) crs"
+ LIBIXP="${ESYSROOT}/usr/$(get_libdir)/libixp.so"
+ )
+
+ # Punt internal copy of sys-libs/libixp, bug #323037
+ rm include/ixp{,_srvutil}.h || die
+ sed -i -e '/libixp/d' Makefile || die
+
+ # bug #335083
+ sed -i -e "/BINSH \!=/d" mk/hdr.mk || die
+ # bug #369115
+ sed -i -e 's/-lXext/& -lXrender -lX11/' cmd/Makefile || die
+}
+
+src_compile() {
+ append-flags -I"${ESYSROOT}"/usr/include/freetype2
+ append-flags -fcommon
+
+ emake "${mywmiiconf[@]}"
+}
+
+src_install() {
+ emake "${mywmiiconf[@]}" DESTDIR="${D}" install
+
+ exeinto /etc/X11/Sessions
+ newexe - ${PN} <<-EOF
+ #!/bin/sh
+ ${PN}
+ EOF
+
+ insinto /usr/share/xsessions
+ doins "${FILESDIR}"/${PN}.desktop
+}