[33456] trunk/dports/archivers/libzzip
nox at macports.org
nox at macports.org
Sun Jan 27 05:27:26 PST 2008
Revision: 33456
http://trac.macosforge.org/projects/macports/changeset/33456
Author: nox at macports.org
Date: 2008-01-27 05:25:55 -0800 (Sun, 27 Jan 2008)
Log Message:
-----------
libzzip:
* Updated to 0.13.49.
* Added xmlto build dependency, needed to build the manpages.
* Fixed manpages installation, we CAN'T use soelim stubs as .so directives
don't work with gzip'd manpages.
* docdir has now a versioned name.
* Added both standard and html doc installation.
* Added sdl variant.
* Added sha1 and rmd160 checksums.
* Fixed livecheck.
Modified Paths:
--------------
trunk/dports/archivers/libzzip/Portfile
Removed Paths:
-------------
trunk/dports/archivers/libzzip/files/
Modified: trunk/dports/archivers/libzzip/Portfile
===================================================================
--- trunk/dports/archivers/libzzip/Portfile 2008-01-27 13:12:25 UTC (rev 33455)
+++ trunk/dports/archivers/libzzip/Portfile 2008-01-27 13:25:55 UTC (rev 33456)
@@ -3,7 +3,8 @@
PortSystem 1.0
name libzzip
-version 0.13.38
+set my_name zziplib
+version 0.13.49
categories archivers devel
platforms darwin
maintainers nomaintainer
@@ -17,21 +18,56 @@
both with the same filepath.
homepage http://zziplib.sourceforge.net/
-master_sites sourceforge:zziplib
-distname zziplib-${version}
+master_sites sourceforge:${my_name}
+distname ${my_name}-${version}
use_bzip2 yes
-checksums md5 3eccd9b39c057eb49652e90914abfdf5
+checksums md5 5f7b88ebb2bcd7e8044328482d079661 \
+ sha1 72825fcbab93377d7866a8e6a9dfdef53f0343fa \
+ rmd160 3ba64880298edaf192a9a773262810ff08d710e4
-patchfiles patch-zzip__types.h
+depends_run port:pkgconfig \
+ port:xmlto
-depends_build bin:pkg-config:pkgconfig
+depends_lib port:zlib
-depends_lib lib:libz:zlib
+configure.args --enable-default-pkgconfigdir=${prefix}/lib/pkgconfig
+set docdir ${prefix}/share/doc/${name}-${version}
+
post-destroot {
- file delete -force ${destroot}${prefix}/lib/pkgconfig \
- ${destroot}${prefix}/share/aclocal
- xinstall -d -m 755 ${destroot}${prefix}/share/doc
- file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
+ xinstall -d ${destroot}${docdir}/html
+
+ xinstall -m 0644 -W ${worksrcpath} COPYING.LIB ChangeLog README TODO \
+ ${destroot}${docdir}
+
+ eval xinstall -m 0644 [glob -directory ${worksrcpath}/docs "*.{css,htm}"] \
+ ${destroot}${docdir}/html
+
+ # We replace every soelim stub with a soft link, as ".so" groff directives
+ # don't work with gzip'd manpages.
+
+ foreach {f} [glob -directory ${destroot}${prefix}/share/man/man3 *.3] {
+ set channel [open ${f}]
+
+ if {[regexp {^\.so (.+)$} [read -nonewline ${channel}] _ target]} {
+ # This manpage is a soelim stub.
+ ln -sf [file tail ${target}] ${f}
+ }
+
+ close ${channel}
+ }
}
+
+variant sdl description {Enable SDL support} {
+ depends_lib-append port:libsdl
+
+ configure.args-append --enable-sdl
+
+ post-destroot {
+ xinstall -m 0644 ${worksrcpath}/docs/README.SDL ${destroot}${docdir}
+ }
+}
+
+livecheck.name ${my_name}
+livecheck.distname ${my_name}-preview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080127/07f52371/attachment-0001.html
More information about the macports-changes
mailing list