[23473] trunk/dports/sysutils/gwhich/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sun Apr 1 16:17:25 PDT 2007


Revision: 23473
          http://trac.macosforge.org/projects/macports/changeset/23473
Author:   blair at macports.org
Date:     2007-04-01 16:17:25 -0700 (Sun, 01 Apr 2007)

Log Message:
-----------
- Rename share/info/which.info to share/info/gwhich.info.
- Add the +with_default_names variant to gwhich, code copied from
  findutils' Portfile.

Modified Paths:
--------------
    trunk/dports/sysutils/gwhich/Portfile

Modified: trunk/dports/sysutils/gwhich/Portfile
===================================================================
--- trunk/dports/sysutils/gwhich/Portfile	2007-04-01 22:31:36 UTC (rev 23472)
+++ trunk/dports/sysutils/gwhich/Portfile	2007-04-01 23:17:25 UTC (rev 23473)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 name            gwhich
 version         2.16
-revision        1
+revision        2
 categories      sysutils
 maintainers     nomaintainer at macports.org
 description     GNU Which - Everything you never wanted in a which
@@ -26,5 +26,21 @@
                 --mandir=${prefix}/share/man \
                 --program-prefix=g
 
+post-destroot {
+    cd ${destroot}${prefix}/share/info
+    file rename which.info gwhich.info
+    if {[variant_isset with_default_names]} {
+        foreach d {bin share/info share/man/man1} {
+            cd ${destroot}${prefix}/$d
+            foreach a [glob g*] {
+                regexp g(.+) $a dummy b
+                file link -hard $b g$b
+            }
+        }
+    }
+}
+
 test.run        yes
 test.target     check
+
+variant with_default_names {}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070401/39bea8f3/attachment.html


More information about the macports-changes mailing list