x11-plugins/wmxres: EAPI7, improve ebuild
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Tue, 24 Jul 2018 18:46:29 +0000 (20:46 +0200)
committerDavid Seifert <soap@gentoo.org>
Thu, 26 Jul 2018 03:43:41 +0000 (05:43 +0200)
x11-plugins/wmxres/wmxres-1.2-r1.ebuild [new file with mode: 0644]

diff --git a/x11-plugins/wmxres/wmxres-1.2-r1.ebuild b/x11-plugins/wmxres/wmxres-1.2-r1.ebuild
new file mode 100644 (file)
index 0000000..a21121f
--- /dev/null
@@ -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
+}