New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

root/trunk/dports/archivers/unzip/Portfile

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
3PortSystem              1.0
4
5name                    unzip
6version                 5.52
7maintainers             nomaintainer
8categories              sysutils
9platforms               darwin freebsd
10description             Decompression compatible with pkunzip
11
12long_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
19homepage                http://www.info-zip.org/pub/infozip/UnZip.html
20master_sites    ftp://ftp.info-zip.org/pub/infozip/src/ \
21                                http://www.mirrorservice.org/sites/ftp.info-zip.org/pub/infozip/src/
22distname                ${name}[strsed ${version} {/\.//}]
23
24checksums               md5 9d23919999d6eac9217d1f41472034a9 \
25                                sha1 1831bd59b9e607a69052f83b263384895e2d4a19 \
26                                rmd160 b749b0923bc4cceaa6f937aef688e9713a84328c
27
28extract.suffix  .tgz
29
30worksrcdir              ${name}-${version}
31
32set args                "-f unix/Makefile"
33
34use_configure   no
35
36build.target    macosx
37build.args              ${args}
38
39destroot.args   ${args} \
40                                BINDIR=${destroot}${prefix}/bin \
41                                MANDIR=${destroot}${prefix}/share/man/man1
42
43post-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
50variant 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
59livecheck.check regex
60livecheck.url   ${homepage}
61livecheck.regex "UnZip (\\d+(?:\\.\\d+)*)"
62
Note: See TracBrowser for help on using the browser.