app-i18n/kde-l10n-scripts: [QA] Port to git-r3
authorDavid Seifert <soap@gentoo.org>
Mon, 25 Dec 2017 14:15:41 +0000 (15:15 +0100)
committerDavid Seifert <soap@gentoo.org>
Mon, 25 Dec 2017 14:42:34 +0000 (15:42 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

app-i18n/kde-l10n-scripts/kde-l10n-scripts-9999.ebuild

index 30d448e19ad99de44982b150f47c8ba7aba30174..4eca71e19ee69094399b026115d0cede97f956dd 100644 (file)
@@ -1,19 +1,20 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-
-EGIT_REPO_URI="https://github.com/vpelcak/kde-scripts.git"
-[[ ${PV} == 9999 ]] && inherit git-2
+EAPI=6
 
 DESCRIPTION="Set of scripts to manage KDE translation files"
 HOMEPAGE="https://github.com/vpelcak/kde-scripts"
-[[ ${PV} == 9999 ]] || SRC_URI=""
+
+if [[ ${PV} == *9999 ]]; then
+       EGIT_REPO_URI="https://github.com/vpelcak/kde-scripts.git"
+       inherit git-r3
+else
+       KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="LGPL-3"
 SLOT="0"
-[[ ${PV} == 9999 ]] || \
-KEYWORDS="~amd64 ~x86"
 IUSE=""
 
 RDEPEND="
@@ -26,7 +27,8 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 
 src_prepare() {
+       default
        sed -i \
-               -e "s:/usr/local:/usr:" \
+               -e "s:/usr/local:${EPREFIX}/usr:" \
                Makefile || die
 }