[62924] trunk/dports/lang/perl5.10/Portfile

jmr at macports.org jmr at macports.org
Thu Jan 21 18:47:44 PST 2010


Revision: 62924
          http://trac.macports.org/changeset/62924
Author:   jmr at macports.org
Date:     2010-01-21 18:47:40 -0800 (Thu, 21 Jan 2010)
Log Message:
-----------
perl5.10: fix mangle_names variant

Modified Paths:
--------------
    trunk/dports/lang/perl5.10/Portfile

Modified: trunk/dports/lang/perl5.10/Portfile
===================================================================
--- trunk/dports/lang/perl5.10/Portfile	2010-01-22 01:50:00 UTC (rev 62923)
+++ trunk/dports/lang/perl5.10/Portfile	2010-01-22 02:47:40 UTC (rev 62924)
@@ -74,9 +74,21 @@
 
 test.run            yes
 
-post-destroot {
-    if {[variant_isset mangle_names]} {
+variant threads description {Build with thread support} {
+    configure.args-append   -Dusethreads
+}
 
+variant shared description {Build shared perl library} {
+    configure.args-append   -Duseshrplib
+}
+
+variant dtrace description {Build with DTrace probes} {
+    configure.args-append   −Dusedtrace
+}
+
+variant mangle_names description {mangle the installed names by appending -5.10 to avoid conflicting with perl5.8} {
+    conflicts-delete perl5.8
+    post-destroot {
         file delete ${destroot}${prefix}/bin/perl
         set branch [join [lrange [split ${version} .] 0 1] .]
         foreach bin [glob ${destroot}${prefix}/bin/*] {
@@ -87,37 +99,17 @@
     
         ln -s ${prefix}/bin/perl${version} ${destroot}${prefix}/bin/$name
     
-        foreach man1File [glob ${destroot}${prefix}/share/man/man1/*] {
+        foreach man1File [glob ${destroot}${prefix}/share/man/man1p/*] {
             regexp (.*)(\.1.*) ${man1File} -> program suffix
             file rename ${man1File} ${program}-${branch}${suffix}
         }
-        foreach man3File [glob ${destroot}${prefix}/share/man/man3/*] {
+        foreach man3File [glob ${destroot}${prefix}/share/man/man3p/*] {
             regexp (.*)(\.3.*) ${man3File} -> program suffix
             file rename ${man3File} ${program}-${branch}${suffix}
         }
-    
-        foreach man3File [glob ${destroot}${prefix}/share/man/man3/*] {
-            file rename ${man3File} ${man3File}pm
-        }
     }
 }
 
-variant threads description {Build with thread support} {
-    configure.args-append   -Dusethreads
-}
-
-variant shared description {Build shared perl library} {
-    configure.args-append   -Duseshrplib
-}
-
-variant dtrace description {Build with DTrace probes} {
-    configure.args-append   −Dusedtrace
-}
-
-variant mangle_names description {mangle the installed names by appending -5.10 to avoid conflicting with perl5.8} {
-	conflicts	""
-}
-
 livecheck.type  regex
 livecheck.url   http://www.cpan.org/src
 livecheck.regex latest_[join [lrange [split ${version} .] 0 1] .]_is_(\\d+(?:\\.\\d+)*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100121/2b713d0a/attachment-0001.html>


More information about the macports-changes mailing list