summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaco Kroon <jaco@uls.co.za>2023-05-21 21:23:15 +0200
committerJoonas Niilola <juippis@gentoo.org>2023-05-27 10:49:19 +0300
commit36c72035a842a260c2f44c7ed2e52645a69a7039 (patch)
tree93d9ad47ce3fe848e385f91e2d2495c13c46f84e /x11-wm/evilwm/evilwm-1.4.2.ebuild
parentdev-libs/librdkafka: minor update 2.1.0 -> 2.1.1 (diff)
downloadgentoo-36c72035a842a260c2f44c7ed2e52645a69a7039.tar.gz
gentoo-36c72035a842a260c2f44c7ed2e52645a69a7039.tar.bz2
gentoo-36c72035a842a260c2f44c7ed2e52645a69a7039.zip
x11-wm/evilwm: add 1.4.2
Signed-off-by: Jaco Kroon <jaco@uls.co.za> Closes: https://github.com/gentoo/gentoo/pull/31119 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'x11-wm/evilwm/evilwm-1.4.2.ebuild')
-rw-r--r--x11-wm/evilwm/evilwm-1.4.2.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/x11-wm/evilwm/evilwm-1.4.2.ebuild b/x11-wm/evilwm/evilwm-1.4.2.ebuild
new file mode 100644
index 000000000000..78f4f156f7b3
--- /dev/null
+++ b/x11-wm/evilwm/evilwm-1.4.2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit desktop toolchain-funcs
+
+DESCRIPTION="A minimalist, no frills window manager for X"
+HOMEPAGE="http://www.6809.org.uk/evilwm/"
+SRC_URI="http://www.6809.org.uk/evilwm/${P}.tar.gz"
+
+LICENSE="MIT 9wm"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc64-solaris"
+IUSE=""
+
+RDEPEND="x11-libs/libXext
+ x11-libs/libXrandr
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ x11-base/xorg-proto"
+
+src_prepare() {
+ default
+ sed -e 's/^#define DEF_FONT.*/#define DEF_FONT "fixed"/' \
+ -i evilwm.h || die "sed font failed"
+ sed -e '/Encoding/d' -i ${PN}.desktop || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" prefix="${EPREFIX}/usr" INSTALL_STRIP="" install
+
+ einstalldocs
+
+ echo -e "#!${EPREFIX}/bin/sh\nexec \"${EPREFIX}/usr/bin/${PN}\"" > "${T}/${PN}" || die
+ exeinto /etc/X11/Sessions
+ doexe "${T}/${PN}"
+
+ insinto /usr/share/xsessions
+ doins "${FILESDIR}/${PN}.desktop"
+ domenu "${FILESDIR}"/evilwm.desktop
+}