[25599] trunk/dports/sysutils/diffutils/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Fri May 25 14:59:05 PDT 2007


Revision: 25599
          http://trac.macosforge.org/projects/macports/changeset/25599
Author:   nox at macports.org
Date:     2007-05-25 14:59:05 -0700 (Fri, 25 May 2007)

Log Message:
-----------
Added standard documentation installation.
Added variant descriptions.
Changed livecheck regex to something more flexible.
Moved with_default_name code in the eponymous variant.

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

Modified: trunk/dports/sysutils/diffutils/Portfile
===================================================================
--- trunk/dports/sysutils/diffutils/Portfile	2007-05-25 21:20:39 UTC (rev 25598)
+++ trunk/dports/sysutils/diffutils/Portfile	2007-05-25 21:59:05 UTC (rev 25599)
@@ -3,7 +3,7 @@
 PortSystem          1.0
 name                diffutils
 version             2.8.1
-revision            2
+revision            3
 categories          sysutils textproc devel
 maintainers         pipping at macports.org openmaintainer at macports.org
 description         GNU diff utilities
@@ -15,16 +15,31 @@
 platforms           darwin sunos
 homepage            http://www.gnu.org/software/diffutils/
 master_sites        gnu
-checksums           md5 71f9c5ae19b60608f6c7f162da86a428
+checksums           md5 71f9c5ae19b60608f6c7f162da86a428 \
+                    sha1 a4c467c3a6a08cde9f3d94d02067ec26436e7dc5 \
+                    rmd160 a61b15401f140097d39dfe00cd2a8062bcdfaa0e
+
 patchfiles          patch-src_system.h
 configure.args      --program-prefix=g \
                     --infodir=${prefix}/share/info \
                     --mandir=${prefix}/share/man
-                    
+
+set docdir          ${prefix}/share/doc/${name}-${version}
+
 post-destroot {
     cd ${destroot}${prefix}/share/info
-    file rename diff.info gdiff.info
-    if {[variant_isset with_default_names]} {
+    move diff.info gdiff.info
+
+    xinstall -m 0755 -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README THANKS \
+        ${destroot}${docdir}
+}
+
+test.run        yes
+test.target     check
+
+variant with_default_names description {Install files without 'g' prefix} {
+    post-destroot {
         foreach d {bin share/info share/man/man1} {
             cd ${destroot}${prefix}/$d
             foreach a [glob g*] {
@@ -35,16 +50,15 @@
     }
 }
 
-test.run        yes
-test.target     check
-
-variant with_default_names {}
-
-variant nls {
+variant nls description {Add NLS support} {
     configure.args-append   gt_cv_func_gnugettext1_libintl=yes
     depends_lib-append      port:gettext
+
+    post-destroot {
+        xinstall -m 0644 -W ${worksrcpath} ABOUT-NLS ${destroot}${docdir}
+    }
 }
 
 livecheck.check regex
 livecheck.url   http://ftp.gnu.org/gnu/${name}/?M=D
-livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+)
+livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)

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


More information about the macports-changes mailing list