[27941] trunk/dports/archivers/unzip/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 16 06:33:58 PDT 2007
Revision: 27941
http://trac.macosforge.org/projects/macports/changeset/27941
Author: nox at macports.org
Date: 2007-08-16 06:33:58 -0700 (Thu, 16 Aug 2007)
Log Message:
-----------
unzip:
* Complete rewrite of the port.
* Added universal support.
* Added livecheck.
* Added documentation installation.
* Cleaned master_sites.
Modified Paths:
--------------
trunk/dports/archivers/unzip/Portfile
Modified: trunk/dports/archivers/unzip/Portfile
===================================================================
--- trunk/dports/archivers/unzip/Portfile 2007-08-16 12:36:21 UTC (rev 27940)
+++ trunk/dports/archivers/unzip/Portfile 2007-08-16 13:33:58 UTC (rev 27941)
@@ -1,34 +1,64 @@
# $Id$
-PortSystem 1.0
-name unzip
-version 5.52
-maintainers nomaintainer at macports.org
-categories sysutils
-platforms darwin freebsd
-master_sites \
- http://www.mirror.ac.uk/sites/ftp.info-zip.org/pub/infozip/src/ \
- ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/ \
- http://sunsite.cnlab-switch.ch/ftp/mirror/infozip/src/ \
- ftp://sunsite.cnlab-switch.ch/mirror/infozip/src/ \
- ftp://ftp.info-zip.org/pub/infozip/src/
+PortSystem 1.0
-checksums md5 9d23919999d6eac9217d1f41472034a9
-homepage http://www.info-zip.org/pub/infozip/UnZip.html
-description Decompression compatible with pkunzip
-distname ${name}552
-worksrcdir ${name}-${version}
-use_configure no
-build.target
-build.args -f unix/Makefile macosx MANDIR=${destroot}${prefix}/share/man/man1
-destroot.args -f unix/Makefile install BINDIR=${destroot}${prefix}/bin \
- MANDIR=${destroot}${prefix}/share/man/man1
+name unzip
+version 5.52
+maintainers nomaintainer
+categories sysutils
+platforms darwin freebsd
+description Decompression compatible with pkunzip
long_description \
-Zip is different from gzip in that it allows packing multiple files into a \
-single archive (without the assistance of tar). It is compatible with pkzip, \
-pkunzip, and other Windows zip utilities. \
- \
-This utility is necessary to install several packages in a pure Darwin \
-installation, as Darwin does not come with zip/unzip. \
+ UnZip is an extraction utility for archives compressed in .zip \
+ format (also called \"zipfiles\"). Although highly compatible both \
+ with PKWARE's PKZIP and PKUNZIP utilities for MS-DOS and with Info-ZIP's \
+ own Zip program, our primary objectives have been portability and \
+ non-MSDOS functionality.
+homepage http://www.info-zip.org/pub/infozip/UnZip.html
+master_sites http://ftp.info-zip.org/pub/infozip/src/ \
+ ftp://ftp.info-zip.org/pub/infozip/src/ \
+ http://www.mirrorservice.org/sites/ftp.info-zip.org/pub/infozip/src/
+distname ${name}[strsed ${version} {/\.//}]
+
+checksums md5 9d23919999d6eac9217d1f41472034a9 \
+ sha1 1831bd59b9e607a69052f83b263384895e2d4a19 \
+ rmd160 b749b0923bc4cceaa6f937aef688e9713a84328c
+
+extract.suffix .tgz
+
+worksrcdir ${name}-${version}
+
+set args "-f unix/Makefile"
+
+# Dummy configure to enable universal variant
+configure {}
+
+build.target macosx
+build.args ${args}
+
+destroot.args ${args} \
+ BINDIR=${destroot}${prefix}/bin \
+ MANDIR=${destroot}${prefix}/share/man/man1
+
+post-destroot {
+ set docdir ${prefix}/share/doc/${name}-${version}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 0644 -W ${worksrcpath} BUGS LICENSE README ToDo \
+ ${destroot}${docdir}
+}
+
+variant universal {
+ build.args-append "LOCAL_UNZIP=\"${configure.universal_cflags}\""
+
+ post-patch {
+ reinplace -E "/-O3/s/(LF2=\")/\\1${configure.universal_ldflags}/" \
+ ${worksrcpath}/unix/Makefile
+ }
+}
+
+livecheck.check regex
+livecheck.url ${homepage}
+livecheck.regex "UnZip (\\d+(?:\\.\\d+)*)"
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070816/c9844731/attachment.html
More information about the macports-changes
mailing list