[44874] trunk/dports/lang/perl5.8/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Sun Jan 4 01:13:44 PST 2009
Revision: 44874
http://trac.macports.org/changeset/44874
Author: mcalhoun at macports.org
Date: 2009-01-04 01:13:44 -0800 (Sun, 04 Jan 2009)
Log Message:
-----------
perl5.8: Update version 5.8.8 -> 5.8.9.
Disallow use of gdbm or Berkeley Data Base without variant.
Fixes #17803.
Modified Paths:
--------------
trunk/dports/lang/perl5.8/Portfile
Modified: trunk/dports/lang/perl5.8/Portfile
===================================================================
--- trunk/dports/lang/perl5.8/Portfile 2009-01-04 09:05:24 UTC (rev 44873)
+++ trunk/dports/lang/perl5.8/Portfile 2009-01-04 09:13:44 UTC (rev 44874)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
@@ -3,6 +4,5 @@
name perl5.8
-version 5.8.8
-revision 3
+version 5.8.9
categories lang
platforms darwin freebsd linux
@@ -19,43 +19,47 @@
distname perl-${version}
use_bzip2 yes
homepage http://www.perl.org/
-master_sites http://www.cpan.org/src/5.0/
+master_sites http://www.cpan.org/src/
-checksums md5 a377c0c67ab43fd96eeec29ce19e8382 \
- sha1 4aab490040727ca4419098720eca2ba4367df539 \
- rmd160 e78f26d9b96e6db35f946ad4ff55e3a69385c71b
+checksums \
+ md5 1cb52a76ce77fa300218da96577793ec \
+ sha1 19843b5a7585cf35d96c07dbcd419bbdd5813617 \
+ rmd160 680004238d626ec985075e1b4519b7f0b34f57e5
-patchfiles patch-makedepend.diff
-
-platform darwin {
- patchfiles-append patch-hints_darwin.diff
-
- pre-configure {
- reinplace "s|ld=\"MACOSX_DEPLOYMENT_TARGET=10.3|ld=\"env MACOSX_DEPLOYMENT_TARGET=10.3|g" "${worksrcpath}/hints/darwin.sh"
- }
-}
-
-pre-configure {
+post-patch {
reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Configure
+ # Ensure that the ld value set in configure.args is used
+ reinplace "s|ld='cc';||" ${worksrcpath}/hints/darwin.sh
}
configure.env LC_ALL=C
-configure.cmd sh Configure
+configure.cmd /bin/sh Configure
configure.pre_args
-configure.post_args -des -Dprefix='${prefix}' -Dccflags="-I'${prefix}/include'"\
- -Dldflags=-L'${prefix}/lib' \
- -Dvendorprefix='${prefix}'
+configure.args \
+ -des \
+ -D prefix='${prefix}' \
+ -D cppflags="\${CPPFLAGS}" \
+ -D ldflags="\${LDFLAGS}" \
+ -D vendorprefix='${prefix}' \
+ -D man3ext='3pm' \
+ -D cc=\${CC} \
+ -D ld=\${CC}
+set exclude_libs {bind gdbm db}
+
+post-patch {
+ foreach lib ${exclude_libs} {
+ configure.args-append -U i_${lib}
+ reinplace "s|\\(libswanted=.*\\)${lib} *\\(.*\\)|\\1\\2|" ${worksrcpath}/Configure
+ }
+}
+
universal_variant no
test.run yes
post-destroot {
- ln -s ${prefix}/bin/perl${version} ${destroot}${prefix}/bin/$name
-
- foreach man3File [glob ${destroot}${prefix}/share/man/man3/*] {
- file rename ${man3File} ${man3File}pm
- }
+ ln -s perl${version} ${destroot}${prefix}/bin/$name
}
variant threads description {Build with thread support} {
@@ -66,20 +70,18 @@
configure.args-append -Duseshrplib
}
-platform darwin 8 {
- configure.post_args-append -Dcc=/usr/bin/gcc-4.0
+variant gdbm description {Build with gdbm support} {
+ depends_lib-append port:gdbm
+ set exclude_libs [ldelete ${exclude_libs} gdbm]
}
-platform darwin 9 {
+variant db description {Build with Berkeley Data Base support} {
+ depends_lib-append port:db47
+ set exclude_libs [ldelete ${exclude_libs} db]
+
post-patch {
- if {[variant_isset shared]} {
- reinplace \
- "s|\$(CC) \$(CLDFLAGS) \$(NAMESPACEFLAGS) -o miniperl |\$(CC) \$(CLDFLAGS) -o miniperl |g" \
- ${worksrcpath}/Makefile.SH
- reinplace \
- "s|miniperlmain\$(OBJ_EXT) opmini\$(OBJ_EXT) \$(LLIBPERL) \$(libs)|miniperlmain\$(OBJ_EXT) opmini\$(OBJ_EXT) perl\$(OBJ_EXT) \$(filter-out op\$(OBJ_EXT),\$(obj)) \$(libs)|g" \
- ${worksrcpath}/Makefile.SH
- }
+ reinplace "s|${prefix}/include|${prefix}/include ${prefix}/include/db47|g" ${worksrcpath}/Configure
+ reinplace "s|${prefix}/lib|${prefix}/lib ${prefix}/lib/db47|g" ${worksrcpath}/Configure
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090104/d009d8a5/attachment.html>
More information about the macports-changes
mailing list