[32483] trunk/dports/lang/perl5.8/Portfile

afb at macports.org afb at macports.org
Fri Jan 4 05:28:28 PST 2008


Revision: 32483
          http://trac.macosforge.org/projects/macports/changeset/32483
Author:   afb at macports.org
Date:     2008-01-04 05:27:26 -0800 (Fri, 04 Jan 2008)

Log Message:
-----------
new port: perl5.10 5.10.0 (#13641)

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

Modified: trunk/dports/lang/perl5.8/Portfile
===================================================================
--- trunk/dports/lang/perl5.8/Portfile	2008-01-04 11:16:04 UTC (rev 32482)
+++ trunk/dports/lang/perl5.8/Portfile	2008-01-04 13:27:26 UTC (rev 32483)
@@ -2,12 +2,12 @@
 
 PortSystem      1.0
 
-name            perl5.8
-version         5.8.8
+name            perl5.10
+version         5.10.0
 categories      lang
-platforms		darwin freebsd linux
-maintainers     nomaintainer
-description     Perl 5.8.x - Practical Extraction and Report Language
+platforms		darwin
+maintainers     afb at macports.org
+description     Perl 5.10.x - Practical Extraction and Report Language
 
 long_description \
     Perl is a general-purpose programming language originally developed \
@@ -16,13 +16,13 @@
     development, and more.
 
 distname        perl-${version}
-use_bzip2       yes
+use_bzip2       no
 homepage        http://www.perl.org/
 master_sites    http://www.cpan.org/src/5.0/
 
-checksums       md5 a377c0c67ab43fd96eeec29ce19e8382 \
-                sha1 4aab490040727ca4419098720eca2ba4367df539 \
-                rmd160 e78f26d9b96e6db35f946ad4ff55e3a69385c71b
+checksums       md5 d2c39b002ebfd2c3c5dba589365c5a71 \
+                sha1 adf73606dd5248af7ccdd735bcaa0e628ea75b3c \
+                rmd160 c6614fc99a162790a703f91085b24a60af903ba2
 
 platform darwin {
     patchfiles-append   patch-hints_darwin.sh
@@ -42,7 +42,23 @@
 test.run            yes
 
 post-destroot {
+    file delete ${destroot}${prefix}/bin/perl
+    set branch [join [lrange [split ${version} .] 0 1] .]
+    foreach bin [glob ${destroot}${prefix}/bin/*] {
+        if {$bin != "${destroot}${prefix}/bin/perl${version}"} {
+            move ${bin} ${bin}-${branch}
+        }
+    }
+    foreach man1File [glob ${destroot}${prefix}/share/man/man1/*] {
+        regexp (.*)(\.1.*) ${man1File} -> program suffix
+        file rename ${man1File} ${program}-${branch}${suffix}
+    }
     foreach man3File [glob ${destroot}${prefix}/share/man/man3/*] {
+        regexp (.*)(\.3.*) ${man3File} -> program suffix
+        file rename ${man3File} ${program}-${branch}${suffix}
+    }
+
+    foreach man3File [glob ${destroot}${prefix}/share/man/man3/*] {
         file rename ${man3File} ${man3File}pm
     }
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080104/01f7c632/attachment.html


More information about the macports-changes mailing list