|
Revision 32996, 1.6 KB
(checked in by afb@…, 18 months ago)
|
|
make sure to handle slashes in configure.universal_ldflags
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name unzip |
|---|
| 6 | version 5.52 |
|---|
| 7 | maintainers nomaintainer |
|---|
| 8 | categories sysutils |
|---|
| 9 | platforms darwin freebsd |
|---|
| 10 | description Decompression compatible with pkunzip |
|---|
| 11 | |
|---|
| 12 | long_description \ |
|---|
| 13 | UnZip is an extraction utility for archives compressed in .zip \ |
|---|
| 14 | format (also called \"zipfiles\"). Although highly compatible both \ |
|---|
| 15 | with PKWARE's PKZIP and PKUNZIP utilities for MS-DOS and with Info-ZIP's \ |
|---|
| 16 | own Zip program, our primary objectives have been portability and \ |
|---|
| 17 | non-MSDOS functionality. |
|---|
| 18 | |
|---|
| 19 | homepage http://www.info-zip.org/pub/infozip/UnZip.html |
|---|
| 20 | master_sites ftp://ftp.info-zip.org/pub/infozip/src/ \ |
|---|
| 21 | http://www.mirrorservice.org/sites/ftp.info-zip.org/pub/infozip/src/ |
|---|
| 22 | distname ${name}[strsed ${version} {/\.//}] |
|---|
| 23 | |
|---|
| 24 | checksums md5 9d23919999d6eac9217d1f41472034a9 \ |
|---|
| 25 | sha1 1831bd59b9e607a69052f83b263384895e2d4a19 \ |
|---|
| 26 | rmd160 b749b0923bc4cceaa6f937aef688e9713a84328c |
|---|
| 27 | |
|---|
| 28 | extract.suffix .tgz |
|---|
| 29 | |
|---|
| 30 | worksrcdir ${name}-${version} |
|---|
| 31 | |
|---|
| 32 | set args "-f unix/Makefile" |
|---|
| 33 | |
|---|
| 34 | use_configure no |
|---|
| 35 | |
|---|
| 36 | build.target macosx |
|---|
| 37 | build.args ${args} |
|---|
| 38 | |
|---|
| 39 | destroot.args ${args} \ |
|---|
| 40 | BINDIR=${destroot}${prefix}/bin \ |
|---|
| 41 | MANDIR=${destroot}${prefix}/share/man/man1 |
|---|
| 42 | |
|---|
| 43 | post-destroot { |
|---|
| 44 | set docdir ${prefix}/share/doc/${name}-${version} |
|---|
| 45 | xinstall -d ${destroot}${docdir} |
|---|
| 46 | xinstall -m 0644 -W ${worksrcpath} BUGS LICENSE README ToDo \ |
|---|
| 47 | ${destroot}${docdir} |
|---|
| 48 | } |
|---|
| 49 | |
|---|
| 50 | variant universal { |
|---|
| 51 | build.args-append "LOCAL_UNZIP=\"${configure.universal_cflags}\"" |
|---|
| 52 | |
|---|
| 53 | post-patch { |
|---|
| 54 | reinplace -E "/-O3/s|(LF2=\")|\\1${configure.universal_ldflags}|" \ |
|---|
| 55 | ${worksrcpath}/unix/Makefile |
|---|
| 56 | } |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | livecheck.check regex |
|---|
| 60 | livecheck.url ${homepage} |
|---|
| 61 | livecheck.regex "UnZip (\\d+(?:\\.\\d+)*)" |
|---|
| 62 | |
|---|