summaryrefslogtreecommitdiff
path: root/dev-perl/ExtUtils-AutoInstall
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-perl/ExtUtils-AutoInstall
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-perl/ExtUtils-AutoInstall')
-rw-r--r--dev-perl/ExtUtils-AutoInstall/ExtUtils-AutoInstall-0.630.0-r1.ebuild30
-rw-r--r--dev-perl/ExtUtils-AutoInstall/ExtUtils-AutoInstall-0.640.0.ebuild49
-rw-r--r--dev-perl/ExtUtils-AutoInstall/Manifest7
-rw-r--r--dev-perl/ExtUtils-AutoInstall/files/ExtUtils-AutoInstall-0.640.0-cpantest.patch111
-rw-r--r--dev-perl/ExtUtils-AutoInstall/files/ExtUtils-AutoInstall-0.640.0-no-dot-inc.patch27
-rw-r--r--dev-perl/ExtUtils-AutoInstall/metadata.xml12
6 files changed, 236 insertions, 0 deletions
diff --git a/dev-perl/ExtUtils-AutoInstall/ExtUtils-AutoInstall-0.630.0-r1.ebuild b/dev-perl/ExtUtils-AutoInstall/ExtUtils-AutoInstall-0.630.0-r1.ebuild
new file mode 100644
index 000000000000..14447677c2b0
--- /dev/null
+++ b/dev-perl/ExtUtils-AutoInstall/ExtUtils-AutoInstall-0.630.0-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MODULE_AUTHOR=AUTRIJUS
+MODULE_VERSION=0.63
+inherit perl-module
+
+DESCRIPTION="Automatic installation of dependencies via CPAN from within Makefile.PL"
+
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
+IUSE=""
+
+# TESTS BAD. Wants to write to cpan's config on the live system
+#SRC_TEST="do"
+
+RDEPEND="dev-perl/Sort-Versions"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL ||
+ die "Can't patch Makefile.PL for 5.26 dot-in-inc"
+ perl-module_src_prepare
+}
+
+src_compile() {
+ echo "n" | perl-module_src_compile
+}
diff --git a/dev-perl/ExtUtils-AutoInstall/ExtUtils-AutoInstall-0.640.0.ebuild b/dev-perl/ExtUtils-AutoInstall/ExtUtils-AutoInstall-0.640.0.ebuild
new file mode 100644
index 000000000000..b037121e6b8b
--- /dev/null
+++ b/dev-perl/ExtUtils-AutoInstall/ExtUtils-AutoInstall-0.640.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=INGY
+DIST_VERSION=0.64
+inherit perl-module
+
+DESCRIPTION="Automatic installation of dependencies via CPAN from within Makefile.PL"
+
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ia64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
+IUSE=""
+
+# TESTS BAD. Wants to write to cpan's config on the live system
+#SRC_TEST="do"
+
+RDEPEND="dev-perl/Sort-Versions"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-no-dot-inc.patch"
+ "${FILESDIR}/${P}-cpantest.patch"
+)
+src_compile() {
+ echo "n" | perl-module_src_compile
+}
+
+src_test() {
+ local MODULES=(
+ "ExtUtils::AutoInstall ${DIST_VERSION}"
+ )
+ local failed=()
+ for dep in "${MODULES[@]}"; do
+ ebegin "Compile testing ${dep}"
+ perl -Mblib="${S}" -M"${dep} ()" -e1
+ eend $? || failed+=( "$dep" )
+ done
+ if [[ ${failed[@]} ]]; then
+ echo
+ eerror "One or more modules failed compile:";
+ for dep in "${failed[@]}"; do
+ eerror " ${dep}"
+ done
+ die "Failing due to module compilation errors";
+ fi
+ perl-module_src_test
+}
diff --git a/dev-perl/ExtUtils-AutoInstall/Manifest b/dev-perl/ExtUtils-AutoInstall/Manifest
new file mode 100644
index 000000000000..40e16f1542fd
--- /dev/null
+++ b/dev-perl/ExtUtils-AutoInstall/Manifest
@@ -0,0 +1,7 @@
+AUX ExtUtils-AutoInstall-0.640.0-cpantest.patch 3535 BLAKE2B 81e91b634b722f6f181efef8b023435113b01c794f3474d39e32ffdf5d7467d3e75d8a00c6abed8d144ea0e26decde6d62be539db3c68c9cd702892add440f53 SHA512 e13e686c50000f8fc78cca77d9172780fec62ce5fb3fa9ba6b4a3c620a21f02841c03593dba7903f148d4f0e21831bf03990945e35326e074a07587af5055236
+AUX ExtUtils-AutoInstall-0.640.0-no-dot-inc.patch 678 BLAKE2B 76ea58d836701c174b74c24fdfb950b24fecf0fb34ef3f65248c999e95fa240be798525057f734e98892cd04a91c5379a324bed70e036ebeb5711692ae102ec1 SHA512 6aef3410b56eddc2577d3d0a70444c105dcd779e10b92e258ff884687823387be01e70a6abaf45d65ba508345e1e50229cfca7c99583b75d9d39ce8d4eca7629
+DIST ExtUtils-AutoInstall-0.63.tar.gz 26951 BLAKE2B 9044d6b40bf7952499d93564b92b3db7f00ce1ea4635d8f50c41be22686e06c0baa2b1625d9ff3ba29d2c20ce0f8bebad6bd58809a6511dfe275b27d422aab49 SHA512 3836dbdd175732109c88a2c0e8d19929fbf59ef453c7149b6a6b6658cf419f241c91ba86fe7f4a1d7bf1af4d7ef42809e523f05e683e9bba75ca9aa9d47e1445
+DIST ExtUtils-AutoInstall-0.64.tar.gz 25886 BLAKE2B e5490f7dcb386b85dff77857ca20d0b03268dc31c76ca3e4770186a468f5c1235dba25e2b8a9b9931c7806ade7c721e87f3dc72a7089b9be27aa9d7a436496f2 SHA512 18f8d58673ea5c0f9654b2c39297e974c6e464250af63e569fbe5966ce7a59cb2ec0ea1190b84cb47bf061eb90fd9307b52ead38491f3220fc301fff342bf860
+EBUILD ExtUtils-AutoInstall-0.630.0-r1.ebuild 781 BLAKE2B c42b1bee84b62229eb0a694104e16a51c71779a8d5652f12a382d76439db1bd6add1684f5c62c71cf1cd2555f3bc0b9e66799abc13b94a92002cf7348eed1902 SHA512 9a0b079a188ace0b47d0c7498ddabbef029223fd968a3cf3f2bcab0ea72a91cf20761c086794b1620fb7bfa85c43392f13f8792d3e66d025419bdf364c815794
+EBUILD ExtUtils-AutoInstall-0.640.0.ebuild 1123 BLAKE2B 92eb76478c3a76934e8786f801e1b343167eefbd2146c31a465bdaebf3b113c4c2a416cee1064f7733ca96f27ba99cf97a834e7ea625fb9aa7cbe214c6c549c5 SHA512 ab9dceb40daf181ba117098dbcbe21f0239d9a1f1a44834dcf63f5637c70c6b0a586a63f89dcfcd4ddfda3a7c3d5c22b53e8222d960251701fcb5cb189065e1a
+MISC metadata.xml 412 BLAKE2B 6b0745e86b7fa8e55444aecd699f7713066b61bf0cedd6f31c356b9bfbb6bd1aa86416df6a6925fcb02d39e54cbbdd7ebdb30d68f5d693ddb475bd10f2eae29f SHA512 f97de5c97a886e9f20beabe4905a30df868afa3259e3b76fe1df1b7a6b58b53ebf4ee0d29a1990c463b8b3658d47b749d41af7497dec452784d617abfb592f52
diff --git a/dev-perl/ExtUtils-AutoInstall/files/ExtUtils-AutoInstall-0.640.0-cpantest.patch b/dev-perl/ExtUtils-AutoInstall/files/ExtUtils-AutoInstall-0.640.0-cpantest.patch
new file mode 100644
index 000000000000..4040016fe9c6
--- /dev/null
+++ b/dev-perl/ExtUtils-AutoInstall/files/ExtUtils-AutoInstall-0.640.0-cpantest.patch
@@ -0,0 +1,111 @@
+From fe02934c5a5bba11e351be5a2f3f95a4461779af Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Sat, 21 Oct 2017 15:37:11 +1300
+Subject: Patch around annoying CPAN-initialization test
+
+This is a terrible way of doing this, but its good enough for now
+and convinces CPAN that its already configured and doesn't block
+waiting for input. A more sensible narrow set is probably viable,
+and OS specifics probably need to be considered.
+
+Bug: https://rt.cpan.org/Ticket/Display.html?id=96782
+---
+ t/1-basic.t | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 75 insertions(+)
+
+diff --git a/t/1-basic.t b/t/1-basic.t
+index dbf7e27..2cdffab 100644
+--- a/t/1-basic.t
++++ b/t/1-basic.t
+@@ -10,6 +10,7 @@ my $mm_args;
+ my @prompts = qw/y n n y y/;
+
+ use ExtUtils::MakeMaker;
++use File::Temp qw( tempdir );
+ sub ExtUtils::MakeMaker::WriteMakefile { $mm_args = {@_} }
+ sub ExtUtils::MakeMaker::prompt ($;$) { return 'n' }
+
+@@ -24,6 +25,80 @@ my $fh = Symbol::gensym;
+ my $out = tie *$fh, __PACKAGE__;
+ select(*$fh);
+
++my $tempdir = tempdir( 'tmp-XXXXXXX', DIR => './t' , CLEANUP => 1 );
++$ENV{HOME} = $tempdir;
++mkdir "$tempdir/.cpan";
++mkdir "$tempdir/.cpan/CPAN";
++{
++ open my $fh, '>', "$tempdir/.cpan/CPAN/MyConfig.pm" or die "can't open test MyConfig.pm: $! $?";
++ print $fh <<"EOF";
++\$CPAN::Config = {
++ 'applypatch' => q[],
++ 'auto_commit' => q[0],
++ 'build_cache' => q[100],
++ 'build_dir' => q[\Q$tempdir\E/build],
++ 'build_dir_reuse' => q[0],
++ 'build_requires_install_policy' => q[yes],
++ 'bzip2' => q[/bin/bzip2],
++ 'cache_metadata' => q[1],
++ 'check_sigs' => q[0],
++ 'colorize_output' => q[0],
++ 'commandnumber_in_prompt' => q[1],
++ 'connect_to_internet_ok' => q[1],
++ 'cpan_home' => q[\Q$tempdir\E],
++ 'ftp_passive' => q[1],
++ 'ftp_proxy' => q[],
++ 'getcwd' => q[cwd],
++ 'gpg' => q[/usr/bin/gpg],
++ 'gzip' => q[/bin/gzip],
++ 'halt_on_failure' => q[0],
++ 'histfile' => q[\Q$tempdir\E/histfile],
++ 'histsize' => q[100],
++ 'http_proxy' => q[],
++ 'inactivity_timeout' => q[0],
++ 'index_expire' => q[1],
++ 'inhibit_startup_message' => q[0],
++ 'keep_source_where' => q[\Q$tempdir\E/sources],
++ 'load_module_verbosity' => q[none],
++ 'make' => q[/usr/bin/make],
++ 'make_arg' => q[],
++ 'make_install_arg' => q[],
++ 'make_install_make_command' => q[/usr/bin/make],
++ 'makepl_arg' => q[],
++ 'mbuild_arg' => q[],
++ 'mbuild_install_arg' => q[],
++ 'mbuild_install_build_command' => q[./Build],
++ 'mbuildpl_arg' => q[],
++ 'no_proxy' => q[],
++ 'pager' => q[/usr/bin/less],
++ 'patch' => q[/usr/bin/patch],
++ 'perl5lib_verbosity' => q[none],
++ 'prefer_external_tar' => q[1],
++ 'prefer_installer' => q[MB],
++ 'prefs_dir' => q[\Q$tempdir\E/prefs],
++ 'prerequisites_policy' => q[follow],
++ 'scan_cache' => q[atstart],
++ 'shell' => q[/bin/bash],
++ 'show_unparsable_versions' => q[0],
++ 'show_upload_date' => q[0],
++ 'show_zero_versions' => q[0],
++ 'tar' => q[/bin/tar],
++ 'tar_verbosity' => q[none],
++ 'term_is_latin' => q[1],
++ 'term_ornaments' => q[1],
++ 'test_report' => q[0],
++ 'trust_test_report_history' => q[0],
++ 'unzip' => q[/usr/bin/unzip],
++ 'urllist' => [q[http://cpan.kinghost.net/], q[http://cpan.dcc.uchile.cl/], q[http://www.laqee.unal.edu.co/CPAN/]],
++ 'use_sqlite' => q[0],
++ 'version_timeout' => q[15],
++ 'wget' => q[/usr/bin/wget],
++ 'yaml_load_code' => q[0],
++ 'yaml_module' => q[YAML],
++ };
++EOF
++}
++
+ # test from a clean state
+ $ENV{PERL_EXTUTILS_AUTOINSTALL} = '';
+ require ExtUtils::AutoInstall;
+--
+2.14.2
+
diff --git a/dev-perl/ExtUtils-AutoInstall/files/ExtUtils-AutoInstall-0.640.0-no-dot-inc.patch b/dev-perl/ExtUtils-AutoInstall/files/ExtUtils-AutoInstall-0.640.0-no-dot-inc.patch
new file mode 100644
index 000000000000..c85d8a362fbd
--- /dev/null
+++ b/dev-perl/ExtUtils-AutoInstall/files/ExtUtils-AutoInstall-0.640.0-no-dot-inc.patch
@@ -0,0 +1,27 @@
+From 929dc970f0f6744e0124243840de287b48284275 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Sat, 21 Oct 2017 15:21:14 +1300
+Subject: Fix for '.' in @INC on 5.26+
+
+Bug: https://rt.cpan.org/Ticket/Display.html?id=121201
+Bug: https://bugs.gentoo.org/615830
+---
+ Makefile.PL | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 80d276b..8b77462 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,7 +1,6 @@
+ #!/usr/bin/perl
+-
++use lib '.', 'lib';
+ use inc::Module::Install;
+-use lib 'lib';
+
+ name ('ExtUtils-AutoInstall');
+ abstract ('Automatic install of dependencies via CPAN');
+--
+2.14.2
+
diff --git a/dev-perl/ExtUtils-AutoInstall/metadata.xml b/dev-perl/ExtUtils-AutoInstall/metadata.xml
new file mode 100644
index 000000000000..533c01ceb749
--- /dev/null
+++ b/dev-perl/ExtUtils-AutoInstall/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">ExtUtils-AutoInstall</remote-id>
+ <remote-id type="cpan-module">ExtUtils::AutoInstall</remote-id>
+ </upstream>
+</pkgmetadata>