[28053] trunk/dports/archivers/pbzip2/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sun Aug 19 08:14:29 PDT 2007


Revision: 28053
          http://trac.macosforge.org/projects/macports/changeset/28053
Author:   nox at macports.org
Date:     2007-08-19 08:14:29 -0700 (Sun, 19 Aug 2007)

Log Message:
-----------
pbzip2:
 * Upgraded to 1.0.2.
 * Added sha1 and rmd160 checksums.
 * Added documentation installation.

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

Modified: trunk/dports/archivers/pbzip2/Portfile
===================================================================
--- trunk/dports/archivers/pbzip2/Portfile	2007-08-19 09:53:22 UTC (rev 28052)
+++ trunk/dports/archivers/pbzip2/Portfile	2007-08-19 15:14:29 UTC (rev 28053)
@@ -3,7 +3,7 @@
 PortSystem		1.0
 
 name			pbzip2
-version			0.9.4
+version			1.0.2
 categories		archivers
 platforms		darwin
 maintainers		nomaintainer
@@ -17,17 +17,31 @@
 homepage		http://compression.ca/pbzip2/
 master_sites	${homepage}
 
-checksums		sha1 66b5daf7483e989f1e8e5485980e96b7067d8916
+depends_lib		port:bzip2
 
-patchfiles		patch-Makefile
+checksums		md5 7c959f0554695bc484865b938e791aaf \
+				sha1 8ae0ebcd08761332ade6baa4b1172a3f97f71169 \
+				rmd160 c8ea882ae9d2739250ae3bea514c14537995ed37
 
-post-patch {
-	reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/Makefile
-}
+set CFLAGS		"${configure.ldflags} ${configure.cppflags}"
 
-depends_lib		port:bzip2
+configure {
+	cd ${worksrcpath}
 
-use_configure	no
+	reinplace "s|-pthread -lpthread|${CFLAGS}|" Makefile
+	reinplace "s|man|share/man|" Makefile
+}
 
 destroot.destdir PREFIX=${destroot}${prefix}
 
+post-destroot {
+	set docdir ${prefix}/share/doc/${name}-${version}
+	xinstall -d ${destroot}${docdir}
+	xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \
+		${destroot}${docdir}
+}
+
+variant universal {
+	set CFLAGS "${CFLAGS} ${configure.universal_cflags}"
+}
+

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


More information about the macports-changes mailing list