Modified: trunk/dports/perl/p5-file-rename/Portfile (90129 => 90130)
--- trunk/dports/perl/p5-file-rename/Portfile 2012-02-23 01:29:54 UTC (rev 90129)
+++ trunk/dports/perl/p5-file-rename/Portfile 2012-02-23 06:00:33 UTC (rev 90130)
@@ -5,6 +5,7 @@
PortGroup perl5 1.0
perl5.setup File-Rename 0.06
+revision 1
platforms darwin
maintainers nomaintainer
license {Artistic-1 GPL}
@@ -17,3 +18,10 @@
checksums sha256 fd9be2f7d6e4c88badba440aabfe33984b1aa51921caff0bbcfe3218481e7f10 \
rmd160 f001df1db9ed6f1996984e4123b44b1ef775411c
+
+# The module installs the command-line utility as `file-rename` but
+# it's usually installed as `rename`; create a link under that name.
+post-destroot {
+ ln -s file-rename ${destroot}${prefix}/bin/rename
+ ln -s [glob -tails -directory ${destroot}${prefix}/share/man/man1 file-rename.*] ${destroot}${prefix}/share/man/man1/rename.1
+}