From aa942ad3eab04a67ad288e37983cdc2de980a38b Mon Sep 17 00:00:00 2001 From: Florian Franzmann Date: Sat, 18 Jul 2015 22:50:15 +0200 Subject: perl-cpan/inc-latest: new spell, use modules bundled in inc/ if they are newer than installed ones --- ChangeLog | 2 ++ perl-cpan/inc-latest/DEPENDS | 1 + perl-cpan/inc-latest/DETAILS | 31 +++++++++++++++++++++++++++++++ perl-cpan/inc-latest/HISTORY | 3 +++ 4 files changed, 37 insertions(+) create mode 100755 perl-cpan/inc-latest/DEPENDS create mode 100755 perl-cpan/inc-latest/DETAILS create mode 100644 perl-cpan/inc-latest/HISTORY diff --git a/ChangeLog b/ChangeLog index a59d88b5f3..c67d921992 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ * perl-cpan/net-patricia: new spell Patricia Tries for perl * perl-cpan/io-socket-inet6: new spell, object interface for AF_INET/AF_INET6 sockets + * perl-cpan/inc-latest: new spell, use modules bundled in inc/ if they + are newer than installed ones 2015-06-17 Treeve Jelbert * utils/consolekit2: added, fork of consolekit (unmaintained) diff --git a/perl-cpan/inc-latest/DEPENDS b/perl-cpan/inc-latest/DEPENDS new file mode 100755 index 0000000000..c1a1bc6231 --- /dev/null +++ b/perl-cpan/inc-latest/DEPENDS @@ -0,0 +1 @@ +depends perl diff --git a/perl-cpan/inc-latest/DETAILS b/perl-cpan/inc-latest/DETAILS new file mode 100755 index 0000000000..8289b4d987 --- /dev/null +++ b/perl-cpan/inc-latest/DETAILS @@ -0,0 +1,31 @@ + SPELL=inc-latest + VERSION=0.500 + SOURCE="${SPELL}-${VERSION}.tar.gz" + SOURCE_URL[0]=$PERL_CPAN_URL/authors/id/D/DA/DAGOLDEN/${SOURCE} + SOURCE_HASH=sha512:b312d1dfce963322796bc0127f0ecd82c12baacf9e5df40d9acc093221edd80f3696ce6d9f185ed24b21983147363d1d0ff3e273b8b5ce7559a6f16983a1385c +SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}" + WEB_SITE="http://search.cpan.org/~dagolden/inc-latest-${VERSION}/lib/inc/latest.pm" + LICENSE[0]=ART + ENTERED=20150718 + SHORT="use modules bundled in inc/ if they are newer than installed ones" +cat << EOF +The inc::latest module helps bootstrap configure-time dependencies for CPAN +distributions. These dependencies get bundled into the inc directory within +a distribution and are used by Makefile.PL or Build.PL. + +Arguments to inc::latest are module names that are checked against both +the current @INC array and against specially-named directories in inc. If +the bundled version is newer than the installed one (or the module isn't +installed, then, the bundled directory is added to the start of @INC and +the module is loaded from there. + +There are actually two variations of inc::latest -- one for authors and one +for the inc directory. For distribution authors, the inc::latest installed +in the system will record modules loaded via inc::latest and can be used +to create the bundled files in inc, including writing the second variation +as inc/latest.pm. + +This second inc::latest is the one that is loaded in a distribution being +installed (e.g. from Makefile.PL or Build.PL). This bundled inc::latest is +the one that determines which module to load. +EOF diff --git a/perl-cpan/inc-latest/HISTORY b/perl-cpan/inc-latest/HISTORY new file mode 100644 index 0000000000..7abf37cc6f --- /dev/null +++ b/perl-cpan/inc-latest/HISTORY @@ -0,0 +1,3 @@ +2015-07-18 Florian Franzmann + * DEPENDS, DETAILS: spell created + -- cgit v1.2.3