source: trunk/dports/archivers/ha/Portfile @ 29061

Last change on this file since 29061 was 29061, checked in by nox@…, 12 years ago

ha (closes #12673):

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