[48158] trunk/dports/archivers/gnutar/Portfile

mww at macports.org mww at macports.org
Sun Mar 15 09:39:45 PDT 2009


Revision: 48158
          http://trac.macports.org/changeset/48158
Author:   mww at macports.org
Date:     2009-03-15 09:39:44 -0700 (Sun, 15 Mar 2009)
Log Message:
-----------
add 'with_default_names' variant (#18373)

Modified Paths:
--------------
    trunk/dports/archivers/gnutar/Portfile

Modified: trunk/dports/archivers/gnutar/Portfile
===================================================================
--- trunk/dports/archivers/gnutar/Portfile	2009-03-15 16:11:05 UTC (rev 48157)
+++ trunk/dports/archivers/gnutar/Portfile	2009-03-15 16:39:44 UTC (rev 48158)
@@ -40,6 +40,17 @@
     file rename ${destroot}${prefix}/share/info/tar.info-2 ${destroot}${prefix}/share/info/gnutar.info-2
 }
 
+variant with_default_names description {Install files without 'gnu' prefix} {
+    post-destroot {
+        foreach {d} {bin libexec share/info} {
+            foreach {f} [glob -tails -directory ${destroot}${prefix}/${d} gnu*] {
+                ln -sf ${prefix}/${d}/${f} ${destroot}${prefix}/${d}/[string range ${f} 3 end]
+            }
+        }
+    }
+}
+
+
 livecheck.check	regex
 livecheck.url	http://ftp.gnu.org/gnu/tar/?C=M&O=D
 livecheck.regex	tar-(\[0-9\.\]+\[0-9\])\\.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090315/d2657f95/attachment.html>


More information about the macports-changes mailing list