[22394] trunk/dports/sysutils/file/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Feb 27 14:20:25 PST 2007


Revision: 22394
          http://trac.macosforge.org/projects/macports/changeset/22394
Author:   pipping at macports.org
Date:     2007-02-27 14:20:25 -0800 (Tue, 27 Feb 2007)

Log Message:
-----------
 * add variant with_default_names (per request)
 * cleanup

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

Modified: trunk/dports/sysutils/file/Portfile
===================================================================
--- trunk/dports/sysutils/file/Portfile	2007-02-27 22:04:53 UTC (rev 22393)
+++ trunk/dports/sysutils/file/Portfile	2007-02-27 22:20:25 UTC (rev 22394)
@@ -1,25 +1,37 @@
 # $Id$
 
 PortSystem 1.0
-name             file
-version          4.19
-revision         1
-categories       sysutils
-maintainers      toby at opendarwin.org
-description      File - determine file type
+name            file
+version         4.19
+revision        1
+categories      sysutils
+maintainers     toby at opendarwin.org
+description     File - determine file type
 long_description \
-	File tests each argument in an attempt to classify it. There are \
-	three sets of tests, performed in this order: filesystem tests, \
-	magic number tests, and language tests. The first test that \
-	succeeds causes the file type to be printed.
-homepage         ftp://ftp.astron.com/pub/file/
-platforms        darwin
-master_sites     ftp://ftp.gw.com/mirrors/pub/unix/file/ \
-                 ftp://ftp.fu-berlin.de/unix/tools/file/ \
-                 ftp://ftp.astron.com/pub/file/
-checksums        sha1 035c2ddf46e1a80e8ddec8e74601d9d2ee4f6ce3
-configure.args   --mandir=${prefix}/share/man \
-                 --enable-fsect-man5 \
-                 --program-prefix=g
-configure.env    CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
-depends_lib      port:zlib
+    File tests each argument in an attempt to classify it. There are    \
+    three sets of tests, performed in this order: filesystem tests,     \
+    magic number tests, and language tests. The first test that         \
+    succeeds causes the file type to be printed.
+
+homepage        ftp://ftp.astron.com/pub/file/
+platforms       darwin
+master_sites    ftp://ftp.gw.com/mirrors/pub/unix/file/ \
+                  ftp://ftp.fu-berlin.de/unix/tools/file/ \
+                  ftp://ftp.astron.com/pub/file/
+checksums       sha1 035c2ddf46e1a80e8ddec8e74601d9d2ee4f6ce3
+configure.args  --mandir=${prefix}/share/man \
+                --enable-fsect-man5 \
+                --program-prefix=g
+configure.env   CPPFLAGS="-I${prefix}/include" \
+                LDFLAGS="-L${prefix}/lib"
+depends_lib     port:zlib
+
+variant with_default_names {
+    post-destroot {
+        cd ${destroot}${prefix}/bin
+        foreach a [glob g*] {
+            regexp g(.+) $a crap b
+            file link -hard $b g$b
+        }
+    }
+}

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


More information about the macports-changes mailing list