source: trunk/dports/archivers/dzip/Portfile @ 57375

Last change on this file since 57375 was 57375, checked in by ryandesign@…, 9 years ago

Change deprecated livecheck.check to livecheck.type
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            dzip
6version         2.9
7categories      archivers
8platforms       darwin
9maintainers     nomaintainer
10description     file compression tool
11
12long_description \
13    Dzip is a program for file compression. Its advantage \
14    over more popular compression software is in the size of the \
15    program, easily fitting on a floppy disk. Dzip's original purpose \
16    was to compress demo recordings of the id software game Quake.
17
18homepage        http://speeddemosarchive.com/dzip/
19master_sites    ${homepage}
20distname        dz[strsed ${version} {/\.//}]src
21use_zip         yes
22
23checksums       md5 b02d69c7c6ee491380d77f26c6f5a6e0 \
24                sha1 64e7b0d07c55aaa22bbcf04066135b5a9968e5ee \
25                rmd160 4719785c312a577eb7b1aacad43a24b6fd8a4ed2
26
27extract.mkdir   yes
28post-extract {
29    # Convert DOS to UNIX line endings so we can patch
30    reinplace "s|\r||g" ${worksrcpath}/Makefile.linux
31}
32
33patchfiles      patch-Makefile.linux.diff
34
35use_configure   no
36
37build.target    ${name}
38build.args      -f Makefile.linux
39build.env       CC=${configure.cc}
40
41destroot {
42    xinstall ${worksrcpath}/dzip ${destroot}${prefix}/bin
43
44    set docdir ${prefix}/share/doc/${name}-${version}
45    xinstall -d ${destroot}${docdir}
46    xinstall -m 0644 ${worksrcpath}/Readme ${destroot}${docdir}
47}
48
49variant universal {
50    build.args-append "LDFLAGS=\"${configure.universal_ldflags}\""
51
52    post-patch {
53        reinplace -E "s|^(CFLAGS.*)\r\$|\\1 ${configure.universal_cflags}|" ${worksrcpath}/Makefile.linux
54    }
55}
56
57livecheck.type  regex
58livecheck.url   ${homepage}download.html
59livecheck.regex v(\\d+(?:\\.\\d+)*)
60
Note: See TracBrowser for help on using the repository browser.