app-portage/ufed: Update live ebuild
authorDavid Seifert <soap@gentoo.org>
Sun, 7 Apr 2019 14:19:32 +0000 (16:19 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 7 Apr 2019 14:19:32 +0000 (16:19 +0200)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: David Seifert <soap@gentoo.org>
app-portage/ufed/ufed-9999.ebuild

index 6ab99b399c04aa5a429adbe84038c87108470fa2..3a357527b718bff37ea06c7daed4715b3a8c1bd9 100644 (file)
@@ -1,18 +1,23 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-inherit eutils multilib git-r3 autotools
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/ufed.git"
+else
+       SRC_URI="https://gitweb.gentoo.org/proj/ufed.git/snapshot/${P}.tar.bz2"
+       KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+fi
+
+inherit autotools out-of-source
 
 DESCRIPTION="Gentoo Linux USE flags editor"
 HOMEPAGE="https://wiki.gentoo.org/wiki/Ufed"
-SRC_URI=""
-EGIT_REPO_URI="git://anongit.gentoo.org/proj/ufed.git"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS=""
 IUSE=""
 
 COMMON_DEPEND="sys-libs/ncurses:0="
@@ -22,11 +27,11 @@ DEPEND="${COMMON_DEPEND}
        virtual/pkgconfig"
 
 src_prepare() {
+       default
        # Change the version number to reflect the ebuild version
-       sed -i "s:,\[git\],:,\[9999-${EGIT_VERSION}\],:" configure.ac
-       eautoreconf
-}
+       local REPLACEMENT_VERSION_STR="${PVR}"
+       [[ ${PV} == *9999 ]] && REPLACEMENT_VERSION_STR+="-${EGIT_VERSION}"
+       sed -i "s:,\[git\],:,\[${REPLACEMENT_VERSION_STR}\],:" configure.ac || die
 
-src_configure() {
-       econf --libexecdir="${EPREFIX}"/usr/$(get_libdir)/ufed
+       eautoreconf
 }