diff options
author | 2017-10-04 05:25:38 +1300 | |
---|---|---|
committer | 2017-10-04 05:26:06 +1300 | |
commit | 36438d4838240ab77b4750658dd832148450596f (patch) | |
tree | 990634bd2802689a4cd7c5998a941b18a743dadd /dev-perl/Git-Wrapper/Git-Wrapper-0.47.0-r1.ebuild | |
parent | sys-libs/glibc: Revision bump for a much larger patchset 2 (diff) | |
download | gentoo-36438d4838240ab77b4750658dd832148450596f.tar.gz gentoo-36438d4838240ab77b4750658dd832148450596f.tar.bz2 gentoo-36438d4838240ab77b4750658dd832148450596f.zip |
dev-perl/Git-Wrapper: Fix missing dep on dev-vcs/git bug #633384
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
Diffstat (limited to 'dev-perl/Git-Wrapper/Git-Wrapper-0.47.0-r1.ebuild')
-rw-r--r-- | dev-perl/Git-Wrapper/Git-Wrapper-0.47.0-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-perl/Git-Wrapper/Git-Wrapper-0.47.0-r1.ebuild b/dev-perl/Git-Wrapper/Git-Wrapper-0.47.0-r1.ebuild new file mode 100644 index 000000000000..bc2693e5b6e6 --- /dev/null +++ b/dev-perl/Git-Wrapper/Git-Wrapper-0.47.0-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=GENEHACK +DIST_VERSION=0.047 +inherit perl-module + +DESCRIPTION="Wrap git(7) command-line interface" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + dev-vcs/git + virtual/perl-File-Temp + dev-perl/File-chdir + virtual/perl-IPC-Cmd + virtual/perl-Scalar-List-Utils + dev-perl/Sort-Versions +" +DEPEND="${RDEPEND} + dev-perl/Devel-CheckBin + virtual/perl-ExtUtils-MakeMaker + virtual/perl-File-Spec + test? ( + virtual/perl-File-Path + virtual/perl-File-Spec + virtual/perl-File-Temp + virtual/perl-IO + dev-perl/Test-Deep + dev-perl/Test-Exception + 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 +} |