[33468] trunk/dports/sysutils/findutils/Portfile

nox at macports.org nox at macports.org
Sun Jan 27 07:17:12 PST 2008


Revision: 33468
          http://trac.macosforge.org/projects/macports/changeset/33468
Author:   nox at macports.org
Date:     2008-01-27 07:17:03 -0800 (Sun, 27 Jan 2008)

Log Message:
-----------
diffutils:
 * Updated to 4.3.12.
 * NLS is now enabled by default.
 * Removed useless configure arguments.
 * Added standard doc install.
 * Removed use of deprecated cd procedure in with_default_names variant.
 * Added livecheck.

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

Modified: trunk/dports/sysutils/findutils/Portfile
===================================================================
--- trunk/dports/sysutils/findutils/Portfile	2008-01-27 14:49:06 UTC (rev 33467)
+++ trunk/dports/sysutils/findutils/Portfile	2008-01-27 15:17:03 UTC (rev 33468)
@@ -3,7 +3,7 @@
 PortSystem      1.0
 
 name            findutils
-version         4.3.7
+version         4.3.12
 categories      sysutils
 platforms       darwin
 maintainers     nox
@@ -13,47 +13,39 @@
     ${description}
 
 homepage        http://www.gnu.org/software/findutils/
-master_sites    http://alpha.gnu.org/gnu/${name} \
-                ftp://alpha.gnu.org/gnu/${name}
+master_sites    http://alpha.gnu.org/gnu/${name}/ \
+                ftp://alpha.gnu.org/gnu/${name}/
 
-checksums       md5 4f30c3af6848e31ca767490cc628613e \
-                sha1 1bba2db2af97bf0e6aa54c2f5e3f4096ed70b2f5 \
-                rmd160 83492bd517e39d5fe5d4c6d3739dcb7074dc5ef4
+checksums       md5 c0be1d1d376b3a13813a230aa74af9b5 \
+                sha1 82e2e55603cbff1e9159ec006f075ac3385b3c3e \
+                rmd160 0d418e4f161d148464cc74d9eac687f61ce90664
 
+depends_lib     port:gettext \
+                port:libiconv
 
 configure.env   SORT=/usr/bin/sort
 
-configure.args  --mandir=${prefix}/share/man \
-                --infodir=${prefix}/share/info \
-                --program-prefix=g \
-                --disable-nls
+configure.args  -program-prefix=g
 
+test.run        yes
+test.target     check
+
 post-destroot {
-    file rename ${destroot}${prefix}/share/info/find.info ${destroot}${prefix}/share/info/gfind.info
-    delete ${destroot}${prefix}/lib/charset.alias
-    if {[variant_isset with_default_names]} {
-        foreach d {bin libexec share/info share/man/man1 share/man/man5} {
-            cd ${destroot}${prefix}/$d
-            foreach a [glob g*] {
-                regexp g(.+) $a dummy b
-                file link -hard $b g$b
+    set docdir ${prefix}/share/doc/${name}-${version}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
+        THANKS TODO ${destroot}${docdir}
+}
+
+variant with_default_names description {Install files without 'g' prefix} {
+    post-destroot {
+        foreach {d} {bin libexec share/info share/man/man1 share/man/man5} {
+            foreach {a} [glob -directory ${destroot}${prefix}/${d} g*] {
+                regexp g(.+) [file tail ${a}] _ b
+                file link -hard ${destroot}${prefix}/${d}/${b} ${a}
             }
         }
     }
 }
 
-test.run        yes
-test.target     check
-
-variant nls {
-    configure.args-delete   --disable-nls
-    depends_lib-append      port:gettext
-}
-
-variant with_default_names {}
-
-# livecheck disabled for the time being
-livecheck.check   none
-# livecheck.check regex
-# livecheck.url   http://ftp.gnu.org/gnu/${name}/?C=M&O=D
-# livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+)
+livecheck.url   "[lindex ${master_sites} 0]?C=M&O=D"

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


More information about the macports-changes mailing list