x11-wm/amiwm: Bumped to EAPI-6
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 5 Jan 2017 06:49:41 +0000 (07:49 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 5 Jan 2017 06:49:57 +0000 (07:49 +0100)
Removed stripping from Makefile.in
Fixed bad symlink in Makefile.in

Package-Manager: Portage-2.3.3, Repoman-2.3.1

x11-wm/amiwm/amiwm-0.21_p2.ebuild

index 462fed428f1be494d9cf134fb170a87c9e310442..a875e17d679636e2e594d13ad3c95bb1e4779556 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=4
+EAPI=6
 
 inherit eutils multilib toolchain-funcs
 
@@ -29,18 +29,24 @@ DEPEND="${COMMON_DEPEND}
        x11-proto/xproto
        x11-proto/xextproto"
 
-S=${WORKDIR}/${MY_P}
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+       "${FILESDIR}/${P}-gentoo.diff"
+       "${FILESDIR}/${P}-implicts.patch"
+       "${FILESDIR}/${P}-flex-2.6.3-fix.patch"
+)
 
 pkg_setup() {
        tc-export CC
 }
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}-gentoo.diff \
-               "${FILESDIR}"/${P}-implicts.patch \
-               "${FILESDIR}"/${P}-flex-2.6.3-fix.patch
-       sed -i -e "s:\$(exec_prefix)/lib:\$(exec_prefix)/$(get_libdir):" \
-               Makefile.in || die
+       default
+       sed -e "s:\$(exec_prefix)/lib:\$(exec_prefix)/$(get_libdir):" \
+               -e '/^STRIPFLAG/s@-s@@' \
+               -e '/$(LN_S)/s@$(DESTDIR)$(AMIWM_HOME)@../..$(AMIWM_HOME)@' \
+               -i Makefile.in || die
        sed -i -e "s:/bin/ksh:/bin/sh:g" Xsession{,2}.in || die
 
        cat <<- EOF > "${T}"/amiwm
@@ -50,9 +56,8 @@ src_prepare() {
 }
 
 src_install() {
-       emake DESTDIR="${D}" install || die
-
-       dodoc README*
+       local DOCS=( README* )
+       default
 
        exeinto /etc/X11/Sessions
        doexe "${T}"/amiwm