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

source_changes at macosforge.org source_changes at macosforge.org
Wed Aug 8 18:21:19 PDT 2007


Revision: 27579
          http://trac.macosforge.org/projects/macports/changeset/27579
Author:   nox at macports.org
Date:     2007-08-08 18:21:18 -0700 (Wed, 08 Aug 2007)

Log Message:
-----------
coreutils:
* Changed the livecheck a bit for longer version strings.
* Added documentation.
* Remove obsolete configure arguments.

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

Modified: trunk/dports/sysutils/coreutils/Portfile
===================================================================
--- trunk/dports/sysutils/coreutils/Portfile	2007-08-08 22:24:43 UTC (rev 27578)
+++ trunk/dports/sysutils/coreutils/Portfile	2007-08-09 01:21:18 UTC (rev 27579)
@@ -15,7 +15,7 @@
     three have been combined into a single set of utilities called the  \
     coreutils.
 
-homepage        http://www.gnu.org/software/coreutils/
+homepage        http://www.gnu.org/software/${name}/
 platforms       darwin
 
 master_sites    gnu
@@ -25,16 +25,28 @@
                 rmd160 c6ae65204b2e9c234a1140f39a8be1ee5cdcaab7
 
 configure.args  --program-prefix=g \
-                --infodir=${prefix}/share/info \
-                --mandir=${prefix}/share/man \
                 --disable-nls
 
 depends_lib     port:libiconv
 
+set docdir ${prefix}/share/doc/${name}-${version}
+
 post-destroot {
-    delete ${destroot}${prefix}/share/info/dir \
-      ${destroot}${prefix}/lib/charset.alias
-    if {[variant_isset with_default_names]} {
+    delete ${destroot}${prefix}/share/info/dir ${destroot}${prefix}/lib/charset.alias
+
+    xinstall -m 0755 -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README THANKS \
+        THANKS-to-translators TODO ${destroot}${docdir}
+}
+
+# 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.
+test.run        yes
+test.target     check
+
+variant with_default_names description {Install files without 'g' prefix} {
+    post-destroot {
         foreach d {bin share/man/man1} {
             cd ${destroot}${prefix}/$d
             foreach a [glob g*] {
@@ -45,24 +57,19 @@
     }
 }
 
-# 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.
-test.run        yes
-test.target     check
-
-variant with_default_names {}
-
-variant nls {
+variant nls description {Add NLS support} {
     configure.args-delete   --disable-nls
     depends_lib-append      port:gettext
+
+    post-destroot {
+        xinstall -m 0644 ${worksrcpath}/ABOUT-NLS ${destroot}${docdir}
+    }
 }
 
-
 platform darwin 9 {
     configure.env-append    jm_cv_func_svid_putenv=yes
 }
 
 livecheck.check regex
 livecheck.url   http://ftp.gnu.org/gnu/${name}/?M=D
-livecheck.regex ${name}-(\\d+\\.\\d+)
+livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)

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


More information about the macports-changes mailing list