summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2018-07-24 20:46:29 +0200
committerDavid Seifert <soap@gentoo.org>2018-07-26 05:43:41 +0200
commitfbd6c026d243011773658707cf802f72d7b29d64 (patch)
treeed34b37692b37075b842043a105e1e8db1c9ce6d /x11-plugins
parentx11-plugins/wmxkb: EAPI7, improve ebuild (diff)
downloadgentoo-fbd6c026d243011773658707cf802f72d7b29d64.tar.gz
gentoo-fbd6c026d243011773658707cf802f72d7b29d64.tar.bz2
gentoo-fbd6c026d243011773658707cf802f72d7b29d64.zip
x11-plugins/wmxres: EAPI7, improve ebuild
Diffstat (limited to 'x11-plugins')
-rw-r--r--x11-plugins/wmxres/wmxres-1.2-r1.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/x11-plugins/wmxres/wmxres-1.2-r1.ebuild b/x11-plugins/wmxres/wmxres-1.2-r1.ebuild
new file mode 100644
index 000000000000..a21121f7f828
--- /dev/null
+++ b/x11-plugins/wmxres/wmxres-1.2-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs
+
+DESCRIPTION="Dock application to select your display mode among those possible"
+HOMEPAGE="http://yalla.free.fr/wn"
+SRC_URI="http://yalla.free.fr/wn/${PN}-1.1-0.tar.gz"
+
+LICENSE="GPL-1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXpm
+ x11-libs/libXxf86vm"
+DEPEND="${RDEPEND}
+ x11-base/xorg-proto
+ x11-libs/libXxf86dga"
+
+S="${WORKDIR}/${PN}.app"
+
+PATCHES=( "${FILESDIR}"/${PN}-debian-1.1-1.2.patch )
+
+src_prepare() {
+ default
+ sed -e "s:-g -c -O2:${CFLAGS} -c:" \
+ -e "s:\tcc :\t $(tc-getCC) \$(LDFLAGS) :g" \
+ -i Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake INCDIR="-I${EPREFIX}/usr/include" LIBDIR="-L${EPREFIX}/usr/$(get_libdir)"
+}
+
+src_install() {
+ dobin ${PN}/${PN}
+ doman ${PN}.1
+}