aboutsummaryrefslogtreecommitdiff
path: root/lang/perl5.16
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-02-04 19:13:30 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-02-04 19:13:30 +0000
commite9b5bbd01bfd294fed8aae74f19d41537de6bd94 (patch)
treeb04dc165bb01c2ec09e158896c92513d3cad4293 /lang/perl5.16
parentae3416497c35516e67c855533a4a0dd76a27332b (diff)
downloadports-e9b5bbd01bfd294fed8aae74f19d41537de6bd94.tar.gz
ports-e9b5bbd01bfd294fed8aae74f19d41537de6bd94.zip
Notes
Diffstat (limited to 'lang/perl5.16')
-rw-r--r--lang/perl5.16/Makefile2
-rw-r--r--lang/perl5.16/pkg-install9
2 files changed, 10 insertions, 1 deletions
diff --git a/lang/perl5.16/Makefile b/lang/perl5.16/Makefile
index 0155a7d3cc60..118df8030480 100644
--- a/lang/perl5.16/Makefile
+++ b/lang/perl5.16/Makefile
@@ -7,7 +7,7 @@
PORTNAME= perl
PORTVERSION= ${PERL_VER}
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= lang devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
${MASTER_SITE_LOCAL:S/$/:local/} \
diff --git a/lang/perl5.16/pkg-install b/lang/perl5.16/pkg-install
index 4712cb82b4e2..ae3123822957 100644
--- a/lang/perl5.16/pkg-install
+++ b/lang/perl5.16/pkg-install
@@ -9,5 +9,14 @@ INCLUDEDIR=/usr/include
install -d ${SITE_PERL}/${PERL_ARCH}
cd ${INCLUDEDIR} && ${PKG_PREFIX}/bin/h2ph *.h machine/*.h sys/*.h
+if [ -f /sbin/sysctl -a -x /sbin/sysctl ] ; then
+ osreldate=`/sbin/sysctl -n kern.osreldate`
+else
+ osreldate=`/usr/sbin/sysctl -n kern.osreldate`
+fi
+
+if [ $osreldate -ge 502100 ] ; then
+ ${PKG_PREFIX}/bin/use.perl port
+fi
exit 0