[29067] trunk/dports/archivers/lzo2/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 14 05:51:54 PDT 2007


Revision: 29067
          http://trac.macosforge.org/projects/macports/changeset/29067
Author:   nox at macports.org
Date:     2007-09-14 05:51:54 -0700 (Fri, 14 Sep 2007)

Log Message:
-----------
lzo2:
 * Documentation is now installed in a versioned docdir.
 * Reworked post-destroot with globs.
 * Added livecheck.

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

Modified: trunk/dports/archivers/lzo2/Portfile
===================================================================
--- trunk/dports/archivers/lzo2/Portfile	2007-09-14 12:50:36 UTC (rev 29066)
+++ trunk/dports/archivers/lzo2/Portfile	2007-09-14 12:51:54 UTC (rev 29067)
@@ -1,15 +1,17 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem      1.0
 
 name			lzo2
+set my_name     lzo
 version			2.02
-revision		1
+revision        2
 categories		archivers
 platforms		darwin
 maintainers		yunzheng.hu at gmail.com
 description		Real-time data compression library
-long_description	\
+
+long_description \
 	LZO is a portable lossless data compression library written in ANSI C. \
 	It offers pretty fast compression and very fast decompression. \
 	Decompression requires no memory. \
@@ -19,8 +21,9 @@
 	LZO is distributed under the GNU General Public License.
 
 homepage		http://www.oberhumer.com/opensource/lzo/
-master_sites	http://www.oberhumer.com/opensource/lzo/download/
-distname		lzo-${version}
+master_sites    ${homepage}download/
+distname        ${my_name}-${version}
+
 checksums		md5 6760e5819f4238328709bf93bf10071c \
 				sha1 82e1ae75663623516156542f4975a64d3a264b91 \
 				rmd160 382154ec7d076e66fdcb6114818193dca180e3ac
@@ -35,10 +38,15 @@
 }
 
 post-destroot {
-	file mkdir "${destroot}/${prefix}/share/doc/${name}"
-	xinstall -m 644 ${worksrcpath}/doc/LZOTEST.TXT \
-		${worksrcpath}/doc/LZO.FAQ \
-		${worksrcpath}/doc/LZO.TXT \
-		${worksrcpath}/doc/LZOAPI.TXT \
-		${destroot}/${prefix}/share/doc/${name}
+    set docdir ${prefix}/share/doc/${my_name}-${version}
+
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} AUTHORS BUGS COPYING ChangeLog NEWS README THANKS \
+        ${destroot}${docdir}
+    eval xinstall -m 0644 [glob ${worksrcpath}/doc/*] ${destroot}${docdir}
 }
+
+livecheck.check regex
+livecheck.url   ${homepage}
+livecheck.regex "Version (\\d+(?:\\.\\d+)*)"
+

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


More information about the macports-changes mailing list