dev-perl/Git-Wrapper: Fix missing dep on dev-vcs/git bug #633384
authorKent Fredric <kentnl@gentoo.org>
Tue, 3 Oct 2017 16:25:38 +0000 (05:25 +1300)
committerKent Fredric <kentnl@gentoo.org>
Tue, 3 Oct 2017 16:26:06 +0000 (05:26 +1300)
Also adds a late src_compile test that asserts Git::Wrapper is loadable,
and will fail if src_prepare fails silently like it did in bug #633384
due to the absence of `blib`.

Closes: https://bugs.gentoo.org/633384
Package-Manager: Portage-2.3.8, Repoman-2.3.3

dev-perl/Git-Wrapper/Git-Wrapper-0.47.0-r1.ebuild [moved from dev-perl/Git-Wrapper/Git-Wrapper-0.47.0.ebuild with 75% similarity]

similarity index 75%
rename from dev-perl/Git-Wrapper/Git-Wrapper-0.47.0.ebuild
rename to dev-perl/Git-Wrapper/Git-Wrapper-0.47.0-r1.ebuild
index c6964a0471f44ce39a4c34aeb24674fc1931cf25..bc2693e5b6e69ef1af31028c3538e99c47d4cf68 100644 (file)
@@ -14,6 +14,7 @@ KEYWORDS="~amd64 ~x86"
 IUSE="test"
 
 RDEPEND="
+       dev-vcs/git
        virtual/perl-File-Temp
        dev-perl/File-chdir
        virtual/perl-IPC-Cmd
@@ -34,3 +35,13 @@ DEPEND="${RDEPEND}
                virtual/perl-Test-Simple
        )
 "
+src_compile() {
+       perl-module_src_compile
+       local MODULES=(
+               "Git::Wrapper ${DIST_VERSION}"
+       )
+       for dep in "${MODULES[@]}"; do
+               perl -Mblib="${S}" -M"${dep} ()" -e1 ||
+                       die "Could not load ${dep}"
+       done
+}