media-sound/rexima: Modernise to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Sat, 11 Mar 2017 20:45:11 +0000 (21:45 +0100)
committerDavid Seifert <soap@gentoo.org>
Sat, 11 Mar 2017 20:47:14 +0000 (21:47 +0100)
Package-Manager: Portage-2.3.4, Repoman-2.3.2

media-sound/rexima/rexima-1.4-r1.ebuild [moved from media-sound/rexima/rexima-1.4.ebuild with 59% similarity]

similarity index 59%
rename from media-sound/rexima/rexima-1.4.ebuild
rename to media-sound/rexima/rexima-1.4-r1.ebuild
index cdfc20bdfadeb8229a11f133a4387bb7d2e0c55b..cd78692ee67040598fc08d1cf31a0ec2d8215351 100644 (file)
@@ -1,6 +1,8 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
+EAPI=6
+
 inherit toolchain-funcs
 
 DESCRIPTION="A curses-based interactive mixer which can also be used from the command-line"
@@ -12,18 +14,22 @@ SLOT="0"
 KEYWORDS="amd64 ppc sparc x86"
 IUSE=""
 
-RDEPEND="sys-libs/ncurses"
-DEPEND="${RDEPEND}"
+RDEPEND="sys-libs/ncurses:0="
+DEPEND="${RDEPEND}
+       virtual/pkgconfig"
 
-src_compile() {
+src_configure() {
        tc-export CC
-       echo "LDLIBS=-lncurses" > Makefile
-       echo "all: rexima" >> Makefile
-       emake || die "emake failed"
+
+       cat > Makefile <<- _EOF_ || die
+               LDLIBS=$($(tc-getPKG_CONFIG) --libs ncurses)
+               all: rexima
+       _EOF_
 }
 
 src_install () {
-       dobin rexima || die
-       doman rexima.1 || die
-       dodoc NEWS README ChangeLog
+       dobin rexima
+
+       einstalldocs
+       doman rexima.1
 }