[22373] trunk/dports/sysutils/coreutils/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Feb 27 11:11:45 PST 2007


Revision: 22373
          http://trac.macosforge.org/projects/macports/changeset/22373
Author:   pipping at macports.org
Date:     2007-02-27 11:11:45 -0800 (Tue, 27 Feb 2007)

Log Message:
-----------
 * replace ugly variant 'normal_install_names' with 'without_prefix'
 * cleanup

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

Modified: trunk/dports/sysutils/coreutils/Portfile
===================================================================
--- trunk/dports/sysutils/coreutils/Portfile	2007-02-27 19:06:15 UTC (rev 22372)
+++ trunk/dports/sysutils/coreutils/Portfile	2007-02-27 19:11:45 UTC (rev 22373)
@@ -1,32 +1,34 @@
 # $Id$
 
 PortSystem 1.0
-name             coreutils
-version          6.7
-categories       sysutils
-maintainers      toby at opendarwin.org
-description      GNU File, Shell, and Text utilities
+name            coreutils
+version         6.7
+categories      sysutils
+maintainers     toby at opendarwin.org
+description     GNU File, Shell, and Text utilities
 long_description \
-    The GNU Core Utilities are the basic file, shell, and text manipulation \
-    utilities of the GNU operating system. These are the core utilities which \
-    are expected to exist on every operating system. Previously these \
-    utilities were offered as three individual sets of GNU utilities, \
-    fileutils, shellutils, and textutils. Those three have been combined into \
-    a single set of utilities called the coreutils.
-homepage         http://www.gnu.org/software/coreutils/
-platforms        darwin
+    The GNU Core Utilities are the basic file, shell, and text          \
+    manipulation utilities of the GNU operating system. These are the   \
+    core utilities which are expected to exist on every operating       \
+    system. Previously these utilities were offered as three individual \
+    sets of GNU utilities, fileutils, shellutils, and textutils. Those  \
+    three have been combined into a single set of utilities called the  \
+    coreutils.
 
-master_sites     gnu
-use_bzip2        yes
-checksums        md5 a16465d0856cd011a1acc1c21040b7f4 \
-                 sha1 55a6037365f749a4ebb9e88a92132a4f938ac90e \
-                 rmd160 593acd266431db1777505bd181a7ffe095774beb
+homepage        http://www.gnu.org/software/coreutils/
+platforms       darwin
 
-configure.args   --program-prefix=g \
-                 --infodir=${prefix}/share/info \
-                 --mandir=${prefix}/share/man \
-                 --disable-nls
+master_sites    gnu
+use_bzip2       yes
+checksums       md5 a16465d0856cd011a1acc1c21040b7f4 \
+                sha1 55a6037365f749a4ebb9e88a92132a4f938ac90e \
+                rmd160 593acd266431db1777505bd181a7ffe095774beb
 
+configure.args  --program-prefix=g \
+                --infodir=${prefix}/share/info \
+                --mandir=${prefix}/share/man \
+                --disable-nls
+
 # Set the RUN_EXPENSIVE_TESTS environmental variable to 'yes' to run
 # more expensive tests.  Set the RUN_VERY_EXPENSIVE_TESTS
 # environmental variable to 'yes' to run even more expensive tests.
@@ -34,15 +36,16 @@
 test.target     check
 
 post-destroot {
-	delete ${destroot}${prefix}/share/info/dir
-	delete ${destroot}${prefix}/lib/charset.alias
+    delete ${destroot}${prefix}/share/info/dir \
+      ${destroot}${prefix}/lib/charset.alias
 }
 
-post-destroot {
-	if {[variant_isset normal_install_names]} {
-		system "cd ${destroot}${prefix}/bin && for f in g*; do ln -s \$f `echo \$f | sed -e 's/^g//'`; done"
-	}
+variant without_prefix {
+    post-destroot {
+        cd ${destroot}${prefix}/bin
+        foreach a [glob g*] {
+            regexp g(.+) $a crap b
+            file link $b g$b
+        }
+    }
 }
-
-variant normal_install_names {
-}

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


More information about the macports-changes mailing list