commit:     fbd6c026d243011773658707cf802f72d7b29d64
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Tue Jul 24 18:46:29 2018 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Jul 26 03:43:41 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbd6c026

x11-plugins/wmxres: EAPI7, improve ebuild

 x11-plugins/wmxres/wmxres-1.2-r1.ebuild | 41 +++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

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 00000000000..a21121f7f82
--- /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
+}

Reply via email to