diff options
author | Torsten Veller <tove@gentoo.org> | 2012-04-23 13:59:39 +0200 |
---|---|---|
committer | Torsten Veller <tove@gentoo.org> | 2012-04-23 14:19:29 +0200 |
commit | ca34c6b978cb153ff179669a060e369f46bbca81 (patch) | |
tree | cd68f3014bbe1ff8f15efa3a14cce2547c701538 /eclass/perl-module.eclass | |
parent | perl-module.eclass: Check if MODULE_VERSION and PV match (diff) | |
download | perl-overlay-ca34c6b978cb153ff179669a060e369f46bbca81.tar.gz perl-overlay-ca34c6b978cb153ff179669a060e369f46bbca81.tar.bz2 perl-overlay-ca34c6b978cb153ff179669a060e369f46bbca81.zip |
perl-module.eclass: Warn if a ./Build file is found in EUMM case (#386685)
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r-- | eclass/perl-module.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index 0a80a9968..a4d019174 100644 --- a/eclass/perl-module.eclass +++ b/eclass/perl-module.eclass @@ -132,6 +132,10 @@ perl-module_src_prep() { || die "Unable to build!" elif [[ -f Makefile.PL ]] ; then einfo "Using ExtUtils::MakeMaker" + if [[ -f Build && ${PERL_NO_BUILD_WARNING} != "true" ]] ; then + ewarn "Using ExtUtils::MakeMaker but found a ./Build script!" + ewarn "Shit happens NOW!" + fi set -- \ PREFIX=${EPREFIX}/usr \ INSTALLDIRS=vendor \ @@ -160,7 +164,7 @@ perl-module_src_compile() { local mymake_local=("${mymake[@]}") fi - if [[ -f Build ]] ; then + if [[ ( ${PREFER_BUILDPL} == yes || ! -f Makefile ) && -f Build ]] ; then ./Build build \ || die "Compilation failed" elif [[ -f Makefile ]] ; then |