app-shells/zsh: bump to EAPI 6 and skip release actions for live ebuild
authorTim Harder <radhermit@gentoo.org>
Mon, 25 Jul 2016 20:43:57 +0000 (16:43 -0400)
committerTim Harder <radhermit@gentoo.org>
Mon, 25 Jul 2016 20:45:57 +0000 (16:45 -0400)
app-shells/zsh/zsh-9999.ebuild

index 695369ab8bfcc20b2fae69b4c782c1ac9fdfc7dd..e8759b00eb3ff9165d3015883a6fadaec91e2219 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
 inherit eutils flag-o-matic multilib prefix
 
@@ -47,12 +47,15 @@ if [[ ${PV} == 9999* ]] ; then
 fi
 
 src_prepare() {
-       # fix zshall problem with soelim
-       ln -s Doc man1
-       mv Doc/zshall.1 Doc/zshall.1.soelim
-       soelim Doc/zshall.1.soelim > Doc/zshall.1
-
-       epatch "${FILESDIR}"/${PN}-init.d-gentoo-r1.diff
+       if [[ ${PV} != 9999* ]]; then
+               # fix zshall problem with soelim
+               ln -s Doc man1 || die
+               mv Doc/zshall.1 Doc/zshall.1.soelim || die
+               soelim Doc/zshall.1.soelim > Doc/zshall.1 || die
+
+               # add openrc specific options for init.d completion
+               eapply "${FILESDIR}"/${PN}-init.d-gentoo-r1.diff
+       fi
 
        cp "${FILESDIR}"/zprofile-1 "${T}"/zprofile || die
        eprefixify "${T}"/zprofile || die
@@ -62,6 +65,8 @@ src_prepare() {
                sed -i -e 's|@ZSH_NOPREFIX@||' -e '/@ZSH_PREFIX@/d' -e 's|""||' "${T}"/zprofile || die
        fi
 
+       default
+
        if [[ ${PV} == 9999* ]] ; then
                sed -i "/^VERSION=/s/=.*/=${PV}/" Config/version.mk || die
                eautoreconf