summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorjlam <jlam>2006-01-15 07:40:30 +0000
committerjlam <jlam>2006-01-15 07:40:30 +0000
commitaefa416f0f78a1ed986991076050d7e6a5257979 (patch)
tree96008894baa7c2e1518fefc356fde748bd205e62 /lang/perl5
parent08f6adebeaa6c8baaab64b5e34cf682284d78744 (diff)
downloadpkgsrc-aefa416f0f78a1ed986991076050d7e6a5257979.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/perl5')
-rw-r--r--lang/perl5/Makefile21
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}