[62843] trunk/dports/lang/perl5/Portfile
ricci at macports.org
ricci at macports.org
Mon Jan 18 20:27:56 PST 2010
Revision: 62843
http://trac.macports.org/changeset/62843
Author: ricci at macports.org
Date: 2010-01-18 20:27:52 -0800 (Mon, 18 Jan 2010)
Log Message:
-----------
Clean up the perl5 Portfile, default to perl5.8 (for now), add a variant for perl5.10 (+perl5_10).
One step forward in resolving #16830.
Modified Paths:
--------------
trunk/dports/lang/perl5/Portfile
Modified: trunk/dports/lang/perl5/Portfile
===================================================================
--- trunk/dports/lang/perl5/Portfile 2010-01-19 02:54:56 UTC (rev 62842)
+++ trunk/dports/lang/perl5/Portfile 2010-01-19 04:27:52 UTC (rev 62843)
@@ -8,106 +8,30 @@
categories lang
platforms darwin freebsd linux
maintainers ricci mcalhoun
-#description Perl 5 - Practical Extraction and Report Language (maintenance release)
+depends_lib port:perl5.8
-#long_description \
-# Perl is a general-purpose programming language originally developed \
-# for text manipulation and now used for a wide range of tasks including \
-# system administration, web development, network programming, GUI \
-# development, and more.
+description Wrapper port for perl 5.x
+long_description ${description}
-#distname perl-${version}
-#use_bzip2 yes
homepage http://www.perl.org/
-#master_sites http://www.cpan.org/src/
+master_sites
+distfiles
-#checksums \
-# md5 1cb52a76ce77fa300218da96577793ec \
-# sha1 19843b5a7585cf35d96c07dbcd419bbdd5813617 \
-# rmd160 680004238d626ec985075e1b4519b7f0b34f57e5
-
-#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 /bin/sh Configure
-#configure.pre_args
-#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 perl${version} ${destroot}${prefix}/bin/$name
-#}
-
-#variant threads description {Build with thread support} {
-# configure.args-append -Dusethreads
-#}
-
-#variant shared description {Build shared perl library} {
-# configure.args-append -Duseshrplib
-#}
-
-#variant gdbm description {Build with gdbm support} {
-# depends_lib-append port:gdbm
-# set exclude_libs [ldelete ${exclude_libs} gdbm]
-#}
-
-#variant db description {Build with Berkeley Data Base support} {
-# depends_lib-append port:db47
-# set exclude_libs [ldelete ${exclude_libs} db]
-
-# post-patch {
-# reinplace "s|${prefix}/include|${prefix}/include ${prefix}/include/db47|g" ${worksrcpath}/Configure
-# reinplace "s|${prefix}/lib|${prefix}/lib ${prefix}/lib/db47|g" ${worksrcpath}/Configure
-# }
-#}
-
-#livecheck.type regex
-#livecheck.url http://www.cpan.org/src
-#livecheck.regex {perl-(5\.8\.\d)\.}
-
-
-#######################################################
-fetch {}
-checksum {}
-extract {}
use_configure no
build {}
-description Placeholder port. See http://trac.macports.org/ticket/16830
-long_description ${description}
-destroot {
- xinstall -d ${destroot}${prefix}/share/doc/${name}
- system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
+destroot {}
+
+variant perl5_10 description { use perl 5.10 instead of perl 5.8 } {
+ depends_lib-delete port:perl5.8
+ depends_lib-append port:perl5.10
+
+ version 5.10
}
-archive {}
-livecheck.type none
-master_sites
-depends_lib port:perl5.8
post-destroot {
+## XYZZY: add check that the files on both sides of the link do and do not exist:
ln -s perl${version} ${destroot}${prefix}/bin/$name
}
-#######################################################
+livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100118/91a3a384/attachment.html>
More information about the macports-changes
mailing list