[69063] trunk/dports/lang/perl5/Portfile
ricci at macports.org
ricci at macports.org
Tue Jun 22 09:53:34 PDT 2010
Revision: 69063
http://trac.macports.org/changeset/69063
Author: ricci at macports.org
Date: 2010-06-22 09:53:29 -0700 (Tue, 22 Jun 2010)
Log Message:
-----------
fix perl5.10 and perl5.12 installed versions
add check that perl${version} link destination exists
resolves #25358
Modified Paths:
--------------
trunk/dports/lang/perl5/Portfile
Modified: trunk/dports/lang/perl5/Portfile
===================================================================
--- trunk/dports/lang/perl5/Portfile 2010-06-22 16:34:03 UTC (rev 69062)
+++ trunk/dports/lang/perl5/Portfile 2010-06-22 16:53:29 UTC (rev 69063)
@@ -28,18 +28,21 @@
depends_lib-delete port:perl5.8
depends_lib-append port:perl5.10
- version 5.10
+ version 5.10.1
}
variant perl5_12 description { use perl 5.12 instead of perl 5.8 or perl 5.10 } {
depends_lib-delete port:perl5.8
depends_lib-append port:perl5.12
- version 5.12
+ version 5.12.1
}
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
+ if {[file exists ${prefix}/bin/perl${version}]} {
+ ln -s perl${version} ${destroot}${prefix}/bin/$name
+ } else {
+ ui_error "Can't find perl ${version} (as ${prefix}/bin/perl${version}) so can't link perl${version} to it."
+ }
}
livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100622/7fa0b7d0/attachment.html>
More information about the macports-changes
mailing list