source: trunk/dports/archivers/zoo/Portfile

Last change on this file was 136552, checked in by ryandesign@…, 2 years ago

zoo: use expand operator instead of eval

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 136552 2015-05-21 19:14:29Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            zoo
6version         2.10pl1
7revision        1
8categories      archivers
9platforms       darwin
10maintainers     nomaintainer
11description     Manipulate archives of files in compressed form
12
13long_description \
14    Zoo is used to create and maintain collections of files in \
15    compressed form. It uses a Lempel-Ziv compression algorithm that \
16    gives space savings in the range of 20% to 80% depending on the \
17    type of file data. Zoo can store and selectively extract multiple \
18    generations of the same file. Data can be recovered from damaged \
19    archives by skipping the damaged portion and locating undamaged \
20    data with the help of fiz(1).
21
22homepage        http://en.wikipedia.org/wiki/Zoo_(file_format)
23master_sites    ftp://ftp.kiarchive.ru/pub/unix/arcers/
24
25checksums       md5 70a0a785ecc8f7f747be1421e495d837 \
26                sha1 c02d96148ee57df01596d0c8d07a3e327b821600 \
27                rmd160 971d388b8cb29def1e4e31011463563e91c3d700
28
29extract.mkdir   yes
30
31patchfiles      makefile.patch
32
33configure {
34    reinplace -E "/BSD4_3/s|(CFLAGS=\")|LDFLAGS=\"[join ${configure.ldflags} " "]\" \
35        \\1[join ${configure.cflags} " "] |" \
36        ${worksrcpath}/makefile
37}
38
39build.target        bsd
40build.args          CC="${configure.cc} [get_canonical_archflags]"
41
42destroot.target     inst_prod
43destroot.destdir    DESTDIR=${destroot}${prefix}/bin
44
45post-destroot {
46    xinstall ${worksrcpath}/fiz ${destroot}${prefix}/bin
47
48    xinstall -m 0444 {*}[glob ${worksrcpath}/*.1] ${destroot}${prefix}/share/man/man1
49
50    set docdir ${prefix}/share/doc/${name}
51    xinstall -d ${destroot}${docdir}
52    xinstall -m 0644 ${worksrcpath}/Copyright ${destroot}${docdir}
53}
Note: See TracBrowser for help on using the repository browser.