x11-wm/vtwm: EAPI bump
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 27 Jan 2019 23:56:00 +0000 (00:56 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 27 Jan 2019 23:56:00 +0000 (00:56 +0100)
Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
x11-wm/vtwm/vtwm-5.4.7-r2.ebuild [moved from x11-wm/vtwm/vtwm-5.4.7-r1.ebuild with 75% similarity]

similarity index 75%
rename from x11-wm/vtwm/vtwm-5.4.7-r1.ebuild
rename to x11-wm/vtwm/vtwm-5.4.7-r2.ebuild
index f1f31db2b33b2db68d3d914cf17d3c727aa2fb51..449d88600609f879c5e3888ff2b97c01fcee99ee 100644 (file)
@@ -1,11 +1,11 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="2"
+EAPI=7
 
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
 
-DESCRIPTION="one of many TWM descendants and implements a Virtual Desktop"
+DESCRIPTION="TWM descendant that implements a Virtual Desktop"
 HOMEPAGE="http://www.vtwm.org/"
 SRC_URI="http://www.vtwm.org/downloads/${P}.tar.gz"
 
@@ -28,7 +28,7 @@ DEPEND="${RDEPEND}
        x11-misc/imake"
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}-do-not-rm.patch
+       eapply "${FILESDIR}"/${P}-do-not-rm.patch
        sed -i Imakefile \
                -e 's:-L/usr/local/lib::g' \
                -e 's:-I/usr/local/include::g' \
@@ -39,33 +39,33 @@ src_prepare() {
                        -e 's:^\(SOUNDLIB.*\):XCOMM\ \1:' \
                        -e 's:sound\..::g' \
                        || die "sed Imakefile"
-               epatch "${FILESDIR}"/${P}-NO_SOUND_SUPPORT.patch
+               eapply "${FILESDIR}"/${P}-NO_SOUND_SUPPORT.patch
        fi
+       default
 }
 
 src_configure() {
        xmkmf || die "xmkmf failed"
-       emake depend || die "emake depend"
+       emake depend
 }
 
 src_compile() {
        emake \
                CC=$(tc-getCC) \
                CCOPTIONS="${CFLAGS}" \
-               EXTRA_LDOPTIONS="${LDFLAGS}" \
-               || die "emake failed"
+               EXTRA_LDOPTIONS="${LDFLAGS}"
 }
 
 src_install() {
        emake BINDIR=/usr/bin \
                LIBDIR=/etc/X11 \
                MANPATH=/usr/share/man \
-               DESTDIR="${D}" install || die "emake install failed"
+               DESTDIR="${D}" install
 
        echo "#!/bin/sh" > vtwm
        echo "xsetroot -cursor_name left_ptr &" >> vtwm
        echo "/usr/bin/vtwm" >> vtwm
        exeinto /etc/X11/Sessions
-       doexe vtwm || die
-       dodoc doc/{4.7.*,CHANGELOG,BUGS,DEVELOPERS,HISTORY,SOUND,WISHLIST} || die
+       doexe vtwm
+       dodoc doc/{4.7.*,CHANGELOG,BUGS,DEVELOPERS,HISTORY,SOUND,WISHLIST}
 }