x11-plugins/wmbio: bump EAPI and drop eutils
authorAaron Bauman <bman@gentoo.org>
Mon, 28 May 2018 23:43:45 +0000 (19:43 -0400)
committerAaron Bauman <bman@gentoo.org>
Tue, 29 May 2018 13:17:49 +0000 (09:17 -0400)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

x11-plugins/wmbio/wmbio-1.02.ebuild

index b6fcce6d4152934120c03a4ffc6101db60be3f64..b2be120eed9cd9ad761e0655b3e875ea5f099075 100644 (file)
@@ -1,8 +1,7 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=2
-inherit eutils
+EAPI=6
 
 DESCRIPTION="A Window Maker applet that shows your biorhythm"
 HOMEPAGE="http://wmbio.sourceforge.net/"
@@ -22,18 +21,15 @@ DEPEND="${RDEPEND}
 S=${WORKDIR}/${P}/src
 
 src_prepare() {
+       default
        # Honour Gentoo CFLAGS
-       sed -i "s/-g -O2/\$(CFLAGS)/" Makefile
+       sed -i "s/-g -O2/\$(CFLAGS)/" Makefile || die "sed for CFLAGS failed"
 
        # Honour Gentoo LDFLAGS
-       sed -i "s/-o wmbio/\$(LDFLAGS) -o wmbio/" Makefile
-}
-
-src_compile() {
-       emake || die "emake failed"
+       sed -i "s/-o wmbio/\$(LDFLAGS) -o wmbio/" Makefile || die "sed for LDFLAGS failed"
 }
 
 src_install () {
-       dobin wmbio || die "dobin failed"
-       dodoc ../{AUTHORS,Changelog,NEWS,README} || die
+       dobin wmbio
+       dodoc ../{AUTHORS,Changelog,NEWS,README}
 }