source: trunk/dports/archivers/ha/Portfile

Last change on this file was 94870, checked in by mww@…, 5 years ago

ha: add missing homepage, license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 94870 2012-07-01 21:39:37Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            ha
6version         0.999
7revision    1
8categories      archivers sysutils
9platforms       darwin
10license         GPL-2
11description     The \"HA\" archiver, based on arithmetic/Markov coder.
12maintainers     crazic.ru:jc
13homepage        ftp://ftp.kiarchive.ru/pub/unix/arcers/
14
15long_description ${description}
16
17distfiles       ha0999.tgz
18master_sites    ftp://ftp.kiarchive.ru/pub/unix/arcers/
19
20checksums   md5 77f3266a451712bec55d60df67f61486 \
21            sha1 8dd106748619772f988ee0bce59937a4de1677ed \
22            rmd160 41b52392267551f834b58e0a4b69b89e813c8bd6
23
24extract.dir ${worksrcpath}
25
26pre-extract     {
27    file mkdir ${worksrcpath}
28}
29
30post-patch {
31    reinplace -E "s|(malloc.h)|malloc/\\1|" \
32        ${worksrcpath}/c/hsc.c \
33        ${worksrcpath}/c/asc.c \
34        ${worksrcpath}/c/cpy.c
35}
36
37configure {
38    reinplace -E "/^CFLAGS/s|\$| [join ${configure.cflags} " "]|" ${worksrcpath}/makefile.nix
39    reinplace -E "/^LDFLAGS/s|\$| [join ${configure.ldflags} " "]|" ${worksrcpath}/makefile.nix
40}
41
42build.target
43build.args      -f makefile.nix
44
45destroot {
46    xinstall ${worksrcpath}/ha ${destroot}${prefix}/bin
47
48    set docdir ${prefix}/share/doc/${name}-${version}
49    xinstall -d ${destroot}${docdir}
50    xinstall -m 0644 -W ${worksrcpath} copying readme ${destroot}${docdir}
51}
52
Note: See TracBrowser for help on using the repository browser.