summaryrefslogtreecommitdiff
path: root/lang/perl5/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-08-30 18:42:23 +0000
committerjlam <jlam@pkgsrc.org>2000-08-30 18:42:23 +0000
commit27aa37dd3c220e0cdacf6dd79028f6c882f7d913 (patch)
tree5c6fb00c6a106df8c9eab7e7342a03abb0c002be /lang/perl5/Makefile
parent6a70832eb7520fccdbb918aac4a402c6eee509bb (diff)
downloadpkgsrc-27aa37dd3c220e0cdacf6dd79028f6c882f7d913.tar.gz
Update perl to 5.6.0nb2 from perl5-current. Changes from version 5.00404
(from commit log of perl5-current/Makefile): * Interpreter cloning, threads, and concurrency * Lexically scoped warning categories * Unicode and UTF-8 support * Support for interpolating named characters * "our" declarations * Support for strings represented as a vector of ordinals * Improved Perl version numbering system * New syntax for declaring subroutine attributes * File and directory handles can be autovivified * open() with more than two arguments * 64-bit support * Large file support * Long doubles * "more bits" * Enhanced support for sort() subroutines * C<sort $coderef @foo> allowed * File globbing implemented internally * POSIX character class syntax [: :] supported * Improved C<qw//> operator * pack() format 'Z' supported * pack() format modifier '!' supported * pack() and unpack() support counted strings * Comments in pack() templates * Weak references * Binary numbers supported * Lvalue subroutines * Some arrows may be omitted in calls through references * Boolean assignment operators are legal lvalues * exists() is supported on subroutine names * exists() and delete() are supported on array elements * Pseudo-hashes work better * Automatic flushing of output buffers * Better diagnostics on meaningless filehandle operations * Where possible, buffered data discarded from duped input filehandle * eof() has the same old magic as <> * binmode() can be used to set :crlf and :raw modes * C<-T> filetest recognizes UTF-8 encoded files as "text" * system(), backticks and pipe open now reflect exec() failure * Improved diagnostics * Diagnostics follow STDERR * syswrite() ease-of-use * Better syntax checks on parenthesized unary operators * Bit operators support full native integer width * Improved security features * C<require> and C<do> may be overridden * $^X variables may now have names longer than one character * New variable $^C reflects C<-c> switch * New variable $^V contains Perl version as a string * Optional Y2K warnings * Modules * Pragmata * dprofpp * find2perl * h2xs * perlcc * perldoc * The Perl Debugger * Simple sort() using { $a <=> $b } and the like are optimized * Optimized assignments to lexical variables * Faster subroutine calls * -Dusethreads means something different * New Configure flags * Threadedness and 64-bitness now more daring * Long Doubles ... See 'perldoc perldelta' for a full list.
Diffstat (limited to 'lang/perl5/Makefile')
-rw-r--r--lang/perl5/Makefile43
1 files changed, 34 insertions, 9 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index 6734d1473f2..4868a8e9068 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,17 +1,18 @@
-# $NetBSD: Makefile,v 1.28 2000/03/27 08:54:57 tron Exp $
+# $NetBSD: Makefile,v 1.29 2000/08/30 18:42:23 jlam Exp $
# FreeBSD Id: Makefile,v 1.20 1997/07/18 06:16:44 markm Exp
#
-DISTNAME= perl5.004_04
-PKGNAME= perl-5.00404
+DISTNAME= perl-${PERL_VERSION}
+PKGNAME= perl-${PERL_VERSION}nb2
+PERL_VERSION= 5.6.0
CATEGORIES= lang devel perl5
-MASTER_SITES= ftp://ftp.digital.com/pub/plan/perl/CPAN/src/5.0/ \
- ftp://ftp.cdrom.com/pub/perl/CPAN/src/5.0/
+MASTER_SITES= ftp://ftp.digital.com/pub/plan/perl/CPAN/src/5.0/maint/ \
+ ftp://ftp.cdrom.com/pub/perl/CPAN/src/5.0/maint/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://language.perl.com/index.html
-HAS_CONFIGURE= yes
+HAS_CONFIGURE= # defined
CONFIGURE_ENV+= PREFIX=${PREFIX}
CONFIGURE_SCRIPT= ./Configure
CONFIGURE_ARGS+= -sde -Dprefix=${PREFIX} -Doptimize="${CFLAGS}" \
@@ -21,20 +22,44 @@ MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}
.include "../../mk/bsd.prefs.mk"
+.if exists(/usr/libexec/ld.so) || exists(/usr/libexec/ld.elf_so)
+CONFIGURE_ARGS+= -Duseshrplib=true
+PLIST_SOURCES= ${PKGDIR}/PLIST-md.shared
+PLIST_SOURCES+= ${PKGDIR}/PLIST-md-${OBJECT_FMT}.shared
+.else
+CONFIGURE_ARGS+= -Duseshrplib=false
+PLIST_SOURCES= ${PKGDIR}/PLIST-md.static
+.endif
+PLIST_SOURCES+= ${PKGDIR}/PLIST-mi
+PLIST_SRC= ${PLIST_SOURCES}
+PLIST_SUBST+= PERL_VERSION=${PERL_VERSION}
+
.if ${OPSYS} == "SunOS"
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
MAKE_ENV+= CFLAGS=
.endif
test:
- @(cd ${WRKSRC}; ${MAKE} test)
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} test
+
+post-patch:
+ cd ${WRKSRC}/ext/DynaLoader/hints && ${CP} -f openbsd.pl netbsd.pl
+
+# Remove several modules which are externally available and don't need to be
+# part of the base perl distribution.
+#
+pre-configure:
+ cd ${WRKSRC}/ext; ${RM} -rf Data Devel GDBM_File
+ cd ${WRKSRC}/lib; ${RM} -rf CGI CGI.pm
+ cd ${WRKSRC}/utils; ${RM} -f dprofpp.PL
post-install:
@strip ${PREFIX}/bin/a2p
@strip ${PREFIX}/bin/perl
.if ${OPSYS} == "SunOS"
- ${CAT} ${PKGDIR}/PLIST-mi ${PKGDIR}/PLIST-md.shared | \
- ${EGREP} -v 'DB_File' > ${PLIST_SRC}
+ ${CAT} ${PLIST_SOURCES} | ${EGREP} -v 'DB_File' > ${PLIST_SRC}
.endif
+ eval `${PREFIX}/bin/perl -V:installsitearch`; \
+ ${TOUCH} $${installsitearch}/.directory
.include "../../mk/bsd.pkg.mk"