diff options
author | jlam <jlam@pkgsrc.org> | 2006-01-15 07:40:30 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-01-15 07:40:30 +0000 |
commit | 0ad8d389516b7ba2b865be67635384f096b4e2e1 (patch) | |
tree | 96008894baa7c2e1518fefc356fde748bd205e62 /lang | |
parent | f3e840d78e417db4af8c3bc3fdee276e4201deb4 (diff) | |
download | pkgsrc-0ad8d389516b7ba2b865be67635384f096b4e2e1.tar.gz |
Restore binary compatibility with previous versions of perl-5.8.x that
were lost in PKGREVISION nb7. We do this by avoiding inspecting the
value of ${WRKSRC} within the package Makefile and instead deferring
using ${WRKSRC} until we actually need the value (after extraction).
This is necessary because WRKSRC is defined in bsd.pkg.mk, which is
too late.
Bump the PKGREVISION to 8.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/perl5/Makefile | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile index a67137baaf3..0c5c3523890 100644 --- a/lang/perl5/Makefile +++ b/lang/perl5/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.114 2006/01/13 20:04:48 jlam Exp $ +# $NetBSD: Makefile,v 1.115 2006/01/15 07:40:30 jlam Exp $ DISTNAME= perl-5.8.7 -PKGREVISION= 7 +PKGREVISION= 8 CATEGORIES= lang devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S,/modules/by-module/$,/src/,} EXTRACT_SUFX= .tar.bz2 @@ -33,16 +33,17 @@ CONFLICTS= perl-base-[0-9]* perl-thread-[0-9]* \ # Determine the Perl API version from the patchlevel.h file from the # source distribution. # -PERL5_API_VERS?= unknown -.if exists(${WRKSRC}/patchlevel.h) PERL5_API_VERS_cmd= \ - ${AWK} '/\#define[ ]*PERL_API_REVISION/ { R = $$3 } \ - /\#define[ ]*PERL_API_VERSION/ { r = "."$$3 } \ - /\#define[ ]*PERL_API_SUBVERSION/ { s = "."$$3 } \ - END { printf "%s%s%s\n", R, r, s }' \ - ${WRKSRC}/patchlevel.h + if ${TEST} -f ${WRKSRC}/patchlevel.h; then \ + ${AWK} '/\#define[ ]*PERL_API_REVISION/ { R = $$3 }\ + /\#define[ ]*PERL_API_VERSION/ { r = "."$$3 } \ + /\#define[ ]*PERL_API_SUBVERSION/ { s = "."$$3 } \ + END { printf "%s%s%s\n", R, r, s }' \ + ${WRKSRC}/patchlevel.h; \ + else \ + ${ECHO} "unknown"; \ + fi PERL5_API_VERS= ${PERL5_API_VERS_cmd:sh} -.endif PERL5_PREFIX= ${PREFIX} PERL5_VENDORPREFIX= ${PERL5_PREFIX} |