diff options
author | Sergey Skvortsov <skv@FreeBSD.org> | 2009-03-13 13:04:09 +0000 |
---|---|---|
committer | Sergey Skvortsov <skv@FreeBSD.org> | 2009-03-13 13:04:09 +0000 |
commit | 1d9fd744c143b4364cd4193f039048d68b9ff5b2 (patch) | |
tree | d6b2908ac1aded0e804bb11b8b4e072a24d5ccee /lang/perl5.16 | |
parent | 5ad894e3a52d97995445d50c03c23078bc2d902f (diff) | |
download | ports-1d9fd744c143b4364cd4193f039048d68b9ff5b2.tar.gz ports-1d9fd744c143b4364cd4193f039048d68b9ff5b2.zip |
Update "perl-after-upgrade": set correct perl package name in @pkgdep.
Notes
Notes:
svn path=/head/; revision=229989
Diffstat (limited to 'lang/perl5.16')
-rw-r--r-- | lang/perl5.16/Makefile | 2 | ||||
-rw-r--r-- | lang/perl5.16/files/perl-after-upgrade | 49 |
2 files changed, 5 insertions, 46 deletions
diff --git a/lang/perl5.16/Makefile b/lang/perl5.16/Makefile index fc5ea10f7086..58b4a35ccb3d 100644 --- a/lang/perl5.16/Makefile +++ b/lang/perl5.16/Makefile @@ -154,7 +154,7 @@ post-patch: -e 's|%%MAKE_CONF%%|${__MAKE_CONF}|g;' \ ${FILESDIR}/use.perl \ > ${WRKDIR}/use.perl - ${SED} -e 's|%%PERL%%|${PERL}|g;' \ + ${SED} -e 's|%%PERL%%|${PERL}|g; s|%%PERL_VERSION%%|${PERL_VERSION}|g; s|%%PKGNAME%%|${PKGNAME}|g' \ ${FILESDIR}/perl-after-upgrade \ > ${WRKDIR}/perl-after-upgrade ${CP} ${WRKDIR}/use.perl ${PKGINSTALL} diff --git a/lang/perl5.16/files/perl-after-upgrade b/lang/perl5.16/files/perl-after-upgrade index fd787edab1e8..144af3a3341c 100644 --- a/lang/perl5.16/files/perl-after-upgrade +++ b/lang/perl5.16/files/perl-after-upgrade @@ -23,7 +23,7 @@ perl-after-upgrade -- fixup FreeBSD packages that depend on perl =head1 DESCRIPTION -The standard procedure after a perl port (either lang/perl5 or +The standard procedure after a perl port (either lang/perl5.6 or lang/perl5.8) upgrade is to basically reinstall all other packages that depend on perl. This is always a painful exercise. The perl-after-upgrade utility makes this process mostly unnecessary. @@ -217,7 +217,6 @@ sub reset } package main; -use Config; use File::Temp qw/tempfile/; use File::Copy; @@ -248,48 +247,8 @@ while (@ARGV) { } } -my $target = - $Config::Config{PERL_REVISION} . "." . - $Config::Config{PERL_VERSION} . "." . - $Config::Config{PERL_SUBVERSION}; -my $source = ""; -my $api_revision = $Config::Config{api_revision} || 0; -my $api_version = $Config::Config{api_version} || 0; -my $api_subversion = $Config::Config{api_subversion} || 0; -if ($api_revision < $Config::Config{PERL_REVISION}) { - $source = ".["; - for ($api_revision .. $Config::Config{PERL_REVISION}) { - $source .= $_; - } - $source .= "]\\.\\d+\\.\\d+"; -} elsif ($api_revision > $Config::Config{PERL_REVISION}) { - die "internal error, this perl is too old\n"; -} else { - $source .= "$Config::Config{PERL_REVISION}\\."; - if ($api_version < $Config::Config{PERL_VERSION}) { - $source .= "["; - for ($api_version .. $Config::Config{PERL_VERSION}) { - $source .= $_; - } - $source .= "]\\.\\d+"; - } elsif ($api_version > $Config::Config{PERL_VERSION}) { - die "internal error, this perl is too old\n"; - } else { - $source .= "$Config::Config{PERL_VERSION}\\."; - if ($api_subversion < $Config::Config{PERL_SUBVERSION}) { - $source .= "["; - for ($api_subversion .. $Config::Config{PERL_SUBVERSION}) { - $source .= $_; - } - $source .= "]"; - } elsif ($api_subversion > $Config::Config{PERL_SUBVERSION}) { - die "internal error, this perl is too old\n"; - } else { - $source .= "$Config::Config{PERL_SUBVERSION}\\."; - } - } -} -print STDERR "- Source re: <$source>\n" if $debug; +my $target = '%%PERL_VERSION%%'; +my $new_perl_pkgname = '%%PKGNAME%%'; my $fuzzy_source = "5\\.[\\d._]+"; print STDERR "- Fuzzy source re: <$fuzzy_source>\n" if $debug; @@ -584,7 +543,7 @@ while (my $pkg = $db->next) { } elsif (/^\@pkgdep\s+perl-(threaded-)?($fuzzy_source)\S*\s*$/) { if ($target ne $2) { my $perlver = $2; - s|perl-(threaded-)?\Q$perlver\E|perl-$target|; + s|perl-(threaded-)?\Q$perlver\E|$new_perl_pkgname|; } } my $old = $_; |