summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2018-07-08 18:35:56 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2018-07-26 22:37:26 +0200
commit81066553aac2105903551e15fccd3c46ca5eb77f (patch)
tree99721b9ac84e3854250fb60dc718c03f8daa23e7 /x11-plugins/wmpager/wmpager-1.2-r2.ebuild
parentdev-python/python-netlink: block dev-libs/libnl[python] (diff)
downloadgentoo-81066553aac2105903551e15fccd3c46ca5eb77f.tar.gz
gentoo-81066553aac2105903551e15fccd3c46ca5eb77f.tar.bz2
gentoo-81066553aac2105903551e15fccd3c46ca5eb77f.zip
x11-plugins/wmpager: EAPI7, improve ebuild
Diffstat (limited to 'x11-plugins/wmpager/wmpager-1.2-r2.ebuild')
-rw-r--r--x11-plugins/wmpager/wmpager-1.2-r2.ebuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/x11-plugins/wmpager/wmpager-1.2-r2.ebuild b/x11-plugins/wmpager/wmpager-1.2-r2.ebuild
new file mode 100644
index 000000000000..377275d083a7
--- /dev/null
+++ b/x11-plugins/wmpager/wmpager-1.2-r2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="A simple pager docklet for the WindowMaker window manager"
+HOMEPAGE="http://wmpager.sourceforge.net/"
+SRC_URI="mirror://sourceforge/wmpager/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXpm
+ x11-libs/libXext"
+
+src_prepare() {
+ default
+ sed -i "s:\(WMPAGER_DEFAULT_INSTALL_DIR \).*:\1\"/usr/share/wmpager\":" \
+ src/wmpager.c || die
+
+ #Honour Gentoo CFLAGS and LDFLAGS, see bug #337604
+ sed -i -e "s/-g/${CFLAGS}/" \
+ -e "s/\${LIBS}/\${LIBS} \${LDFLAGS}/" \
+ src/Makefile || die
+}
+
+src_install() {
+ emake INSTALLDIR="${ED}/usr" install
+ rm -rf "${ED}"/usr/man || die
+ doman man/man1/*.1x
+ dodoc README
+}