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

ryandesign at macports.org ryandesign at macports.org
Thu Nov 27 01:27:41 PST 2008


Revision: 42636
          http://trac.macports.org/changeset/42636
Author:   ryandesign at macports.org
Date:     2008-11-27 01:27:39 -0800 (Thu, 27 Nov 2008)
Log Message:
-----------
zlib: In the interest of having fewer variants, delete the examples variant and instead always install the examples. They're just 168K and don't bring in any additional dependencies or distfiles.

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

Modified: trunk/dports/archivers/zlib/Portfile
===================================================================
--- trunk/dports/archivers/zlib/Portfile	2008-11-27 09:07:53 UTC (rev 42635)
+++ trunk/dports/archivers/zlib/Portfile	2008-11-27 09:27:39 UTC (rev 42636)
@@ -4,7 +4,7 @@
 
 name		zlib
 version		1.2.3
-revision	1
+revision	2
 categories	archivers
 maintainers	landonf at macports.org ryandesign \
 		openmaintainer
@@ -39,22 +39,16 @@
 
 test.run	yes
 
-set docdir  ${prefix}/share/doc/${name}-${version}
-
 destroot.destdir prefix=${destroot}${prefix}
 
 post-destroot {
+    set docdir ${prefix}/share/doc/${name}-${version}
     xinstall -d ${destroot}${docdir}
     xinstall -m 0644 -W ${worksrcpath} ChangeLog FAQ README ${destroot}${docdir}
-}
 
-variant examples description {Install code examples} {
-    post-destroot {
-        set examplesdir ${docdir}/examples
-
-        xinstall -d ${destroot}${examplesdir}
-        eval xinstall -m 0644 [glob ${worksrcpath}/example{.c,s/*}] ${destroot}${examplesdir}
-    }
+    set examplesdir ${docdir}/examples
+    xinstall -d ${destroot}${examplesdir}
+    eval xinstall -m 0644 [glob ${worksrcpath}/example{.c,s/*}] ${destroot}${examplesdir}
 }
 
 livecheck.check regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081127/24cac329/attachment.html>


More information about the macports-changes mailing list