Modified: trunk/dports/lang/perl5.8/Portfile (67092 => 67093)
--- trunk/dports/lang/perl5.8/Portfile 2010-04-28 23:47:48 UTC (rev 67092)
+++ trunk/dports/lang/perl5.8/Portfile 2010-04-28 23:54:52 UTC (rev 67093)
@@ -4,6 +4,7 @@
PortSystem 1.0
name perl5.8
+conflicts perl5.10 perl5.12
version 5.8.9
revision 3
categories lang
@@ -113,6 +114,31 @@
}
}
+variant mangle_names description {mangle the installed names by appending -5.8 to avoid conflicting with perl5.10 and perl5.12} {
+ conflicts-delete perl5.10
+ conflicts-delete perl5.12
+ 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}
+ }
+ }
+
+ ln -s ${prefix}/bin/perl${version} ${destroot}${prefix}/bin/$name
+
+ 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/man3p/*] {
+ regexp (.*)(\.3.*) ${man3File} -> program suffix
+ file rename ${man3File} ${program}-${branch}${suffix}
+ }
+ }
+}
+
livecheck.type regex
livecheck.url http://www.cpan.org/src
livecheck.regex {perl-(5\.8\.\d)\.}