source: trunk/dports/archivers/gzrecover/Portfile

Last change on this file was 85386, checked in by blb@…, 6 years ago

archivers/gzrecover: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 85386 2011-10-13 06:46:16Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            gzrecover
6set my_name     gzrt
7version         0.5
8categories      archivers
9platforms       darwin
10maintainers     nomaintainer
11license         GPL-2+
12description     attempts to extract bad gzip archives
13
14long_description \
15    Gzrecover attempts to skip over bad data in a gzip \
16    archive. It will try to to skip over bad data and extract whatever \
17    files might be there.
18
19homepage        http://www.urbanophile.com/arenn/hacking/gzrt/
20master_sites    ${homepage}
21distname        ${my_name}-${version}
22
23checksums       md5 91e9cbc1d92276742691dca89d6b8293 \
24                sha1 99f1320dc795da666cd17d331c359e5c2433c129 \
25                rmd160 e14e80de9b5e9abee8c68e6f2a9164c038b1d3a9
26
27depends_lib     port:zlib
28
29post-patch {
30    foreach {var} {CFLAGS LDFLAGS} {
31        eval reinplace -E "\"/^${var}/s|\\\\+=|= \${${var}}|\"" ${worksrcpath}/Makefile
32    }
33}
34
35use_configure   no
36
37set     CFLAGS      ${configure.cflags}
38set LDFLAGS     ${configure.ldflags}
39
40build.env       CC=${configure.cc}
41
42destroot {
43    xinstall ${worksrcpath}/gzrecover ${destroot}${prefix}/bin
44    xinstall -m 0444 ${worksrcpath}/gzrecover.1 ${destroot}${prefix}/share/man/man1
45
46    set docdir ${prefix}/share/doc/${name}-${version}
47    xinstall -d ${destroot}${docdir}
48    xinstall -m 0644 -W ${worksrcpath} ChangeLog README ${destroot}${docdir}
49}
50
51variant universal {
52    set CFLAGS  "${CFLAGS} ${configure.universal_cflags}"
53    set LDFLAGS "${LDFLAGS} ${configure.universal_ldflags}"
54}
55
56livecheck.type  regex
57livecheck.url   ${homepage}
58livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
59
Note: See TracBrowser for help on using the repository browser.