[27940] trunk/dports/archivers/zip/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 16 05:36:21 PDT 2007


Revision: 27940
          http://trac.macosforge.org/projects/macports/changeset/27940
Author:   nox at macports.org
Date:     2007-08-16 05:36:21 -0700 (Thu, 16 Aug 2007)

Log Message:
-----------
zip:
 * Complete rewrite of the port.
 * Added universal support.
 * Added livecheck.
 * Added documentation installation.

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

Modified: trunk/dports/archivers/zip/Portfile
===================================================================
--- trunk/dports/archivers/zip/Portfile	2007-08-16 12:08:11 UTC (rev 27939)
+++ trunk/dports/archivers/zip/Portfile	2007-08-16 12:36:21 UTC (rev 27940)
@@ -1,30 +1,63 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem			1.0
 
-name              zip
-version           2.32
-categories        archivers
-platforms         darwin freebsd
-description       compression utility
-maintainers	  nomaintainer at macports.org
-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.
-homepage          http://www.info-zip.org/pub/infozip/Zip.html
-master_sites      ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/
-distname          ${name}232
-patchfiles        patch-Makefile.diff
-checksums         md5 8a4da4460386e324debe97f3b7fe4d96 \
-                  sha1 5bc562bf95d9aee0cb6625e6038898e1f191a4aa \
-                  rmd160 6b9326c8a60bc6bf08825e416140fd0ca8a6a7f1
-worksrcdir        ${name}-${version}
-use_configure     no
-build.target      
-build.args        -f unix/Makefile generic 
-destroot.args     -f unix/Makefile BINDIR=${destroot}${prefix}/bin \
-                        MANDIR=${destroot}${prefix}/share/man/man1
+name				zip
+version				2.32
+categories			archivers
+platforms			darwin freebsd
+description			compression utility
+maintainers			nomaintainer
+
+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.
+
+homepage			http://www.info-zip.org/pub/infozip/Zip.html
+master_sites		ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/
+distname			${name}[strsed ${version} {/\.//}]
+
+checksums			md5 8a4da4460386e324debe97f3b7fe4d96 \
+					sha1 5bc562bf95d9aee0cb6625e6038898e1f191a4aa \
+					rmd160 6b9326c8a60bc6bf08825e416140fd0ca8a6a7f1
+
+worksrcdir			${name}-${version}
+
+set args			"-f unix/Makefile"
+
+configure.cmd		${build.cmd}
+configure.dir		${worksrcpath}
+configure.pre_args	flags \
+					${args}
+
+build.target		generic
+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 CHANGES LICENSE README TODO WHATSNEW \
+		${destroot}${docdir}
+}
+
+variant universal {
+	configure.args	"LOCAL_ZIP=\"${configure.universal_cflags}\""
+
+	post-patch {
+		reinplace -E "s/(LFLAGS1=\")/\\1${configure.universal_ldflags}/" \
+			${worksrcpath}/unix/configure
+	}
+}
+
+livecheck.check	regex
+livecheck.url	${homepage}
+livecheck.regex	"Zip (\\d+(?:\\.\\d+)*)"
+

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


More information about the macports-changes mailing list