[82487] trunk/dports/perl/p5-net-dict/Portfile

vinc17 at macports.org vinc17 at macports.org
Sun Aug 14 08:15:10 PDT 2011


Revision: 82487
          http://trac.macports.org/changeset/82487
Author:   vinc17 at macports.org
Date:     2011-08-14 08:15:07 -0700 (Sun, 14 Aug 2011)
Log Message:
-----------
p5-net-dict: for the dict_altname variant, rename the dict man page
again (as it was done before r77510), for consistency with the program
name (and even "man 1 dict" would select the dict.1pm version).

Revision Links:
--------------
    http://trac.macports.org/changeset/77510

Modified Paths:
--------------
    trunk/dports/perl/p5-net-dict/Portfile

Modified: trunk/dports/perl/p5-net-dict/Portfile
===================================================================
--- trunk/dports/perl/p5-net-dict/Portfile	2011-08-14 14:48:19 UTC (rev 82486)
+++ trunk/dports/perl/p5-net-dict/Portfile	2011-08-14 15:15:07 UTC (rev 82487)
@@ -4,6 +4,7 @@
 PortGroup perl5 1.0
 
 perl5.setup         Net-Dict 2.08 ../../authors/id/N/NE/NEILB/
+revision            1
 maintainers         vinc17 openmaintainer
 categories-append   textproc
 description         Simple client API for the DICT protocol
@@ -20,13 +21,20 @@
 configure.env       C_INCLUDE_PATH="${prefix}/include" \
                     LIBRARY_PATH="${prefix}/lib"
 
-# This variant avoids a conflict with the dict port, if one wishes
-# to install p5-net-dict together with the dict port. The user can
-# later add symbolic links in /usr/local or in his home directory
-# to choose which dict program if wishes to use.
+# This variant avoids a conflict with the dict port, if one wishes to
+# install p5-net-dict together with the dict port. The end user can
+# later add symbolic links in /usr/local or in his home directory to
+# choose which dict program (and man page) he wishes to use. For this
+# reason, the dict documentation is not modified to reflect this new
+# program name.
+# Even though there is no filename conflict for the man page, it is
+# better to rename it too for consistency when running "man dict".
+# Even "man 1 dict" would select the dict.1pm version.
 variant dict_altname description {Avoid a conflict with the dict port} {
   post-destroot {
         set d ${destroot}${prefix}
+        set m ${d}/share/man/man1
         file rename ${d}/bin/dict ${d}/bin/dict.perl
+        file rename ${m}/dict.1pm ${m}/dict.perl.1pm
   }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110814/92c291c0/attachment-0001.html>


More information about the macports-changes mailing list