sys-fs/squashfs-tools-ng: Simplified ebuilds a bit
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 23 Jul 2019 08:03:06 +0000 (10:03 +0200)
committerMatt Turner <mattst88@gentoo.org>
Tue, 23 Jul 2019 21:44:35 +0000 (14:44 -0700)
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
sys-fs/squashfs-tools-ng/squashfs-tools-ng-0.4.2.ebuild
sys-fs/squashfs-tools-ng/squashfs-tools-ng-9999.ebuild

index 88b9fdc8179c50d06916b16a88c706c47a0c74ff..a57e5398eef3f24e813101b5afb0bf3eee10b96c 100644 (file)
@@ -3,13 +3,12 @@
 
 EAPI=7
 
-EGIT_REPO_URI="https://github.com/AgentD/${PN}.git"
-[[ ${PV} == 9999* ]] && inherit autotools git-r3
 
 DESCRIPTION="A new set of tools for working with SquashFS images"
 HOMEPAGE="https://github.com/AgentD/squashfs-tools-ng"
 if [[ ${PV} = 9999* ]]; then
-       SRC_URI=""
+       inherit autotools git-r3
+       EGIT_REPO_URI="https://github.com/AgentD/${PN}.git"
 else
        KEYWORDS="~alpha ~amd64 ~ia64 ~ppc64"
        SRC_URI="https://infraroot.at/pub/squashfs/${P}.tar.xz"
@@ -30,11 +29,6 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
-src_unpack() {
-       default
-       [[ $PV = 9999* ]] && git-r3_src_unpack
-}
-
 src_prepare() {
        default
        [[ ${PV} == "9999" ]] && eautoreconf
index 88b9fdc8179c50d06916b16a88c706c47a0c74ff..a57e5398eef3f24e813101b5afb0bf3eee10b96c 100644 (file)
@@ -3,13 +3,12 @@
 
 EAPI=7
 
-EGIT_REPO_URI="https://github.com/AgentD/${PN}.git"
-[[ ${PV} == 9999* ]] && inherit autotools git-r3
 
 DESCRIPTION="A new set of tools for working with SquashFS images"
 HOMEPAGE="https://github.com/AgentD/squashfs-tools-ng"
 if [[ ${PV} = 9999* ]]; then
-       SRC_URI=""
+       inherit autotools git-r3
+       EGIT_REPO_URI="https://github.com/AgentD/${PN}.git"
 else
        KEYWORDS="~alpha ~amd64 ~ia64 ~ppc64"
        SRC_URI="https://infraroot.at/pub/squashfs/${P}.tar.xz"
@@ -30,11 +29,6 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
-src_unpack() {
-       default
-       [[ $PV = 9999* ]] && git-r3_src_unpack
-}
-
 src_prepare() {
        default
        [[ ${PV} == "9999" ]] && eautoreconf