[25840] trunk/dports/archivers/zlib/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sun Jun 3 06:00:15 PDT 2007


Revision: 25840
          http://trac.macosforge.org/projects/macports/changeset/25840
Author:   nox at macports.org
Date:     2007-06-03 06:00:15 -0700 (Sun, 03 Jun 2007)

Log Message:
-----------
Added standard doc installation.
Added examples variant.
Added sha1 and rmd160 checksums.
Added livecheck.

Modified Paths:
--------------
    trunk/dports/archivers/zlib/Portfile

Modified: trunk/dports/archivers/zlib/Portfile
===================================================================
--- trunk/dports/archivers/zlib/Portfile	2007-06-03 09:58:53 UTC (rev 25839)
+++ trunk/dports/archivers/zlib/Portfile	2007-06-03 13:00:15 UTC (rev 25840)
@@ -20,7 +20,9 @@
 				sourceforge:libpng
 
 use_bzip2	yes
-checksums	md5 dee233bf288ee795ac96a98cc2e369b6
+checksums	md5 dee233bf288ee795ac96a98cc2e369b6 \
+            sha1 967e280f284d02284b0cd8872a8e2e04bfdc7283 \
+            rmd160 cfba9984b354dcc38da49331457e6bfc861c6f51
 
 patchfiles	patch-Makefile-static
 if {[variant_isset universal]} {
@@ -32,4 +34,24 @@
 
 test.run	yes
 
+set docdir  ${prefix}/share/doc/${name}-${version}
+
 destroot.destdir prefix=${destroot}${prefix}
+
+post-destroot {
+    xinstall -m 0755 -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} ChangeLog FAQ README ${destroot}${docdir}
+}
+
+variant examples {
+    post-destroot {
+        set examplesdir ${docdir}/examples
+
+        xinstall -m 0755 -d ${destroot}${examplesdir}
+        eval xinstall -m 0644 [glob ${worksrcpath}/example{.c,s/*}] ${destroot}${examplesdir}
+    }
+}
+
+livecheck.check regex
+livecheck.url   ${homepage}
+livecheck.regex "<B> *${name} (\\d+(?:\\.\\d+)*)</B>"

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


More information about the macports-changes mailing list