Changeset 29061


Ignore:
Timestamp:
Sep 14, 2007, 12:43:01 PM (12 years ago)
Author:
nox@…
Message:

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.
Location:
trunk/dports/archivers/ha
Files:
3 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/archivers/ha/Portfile

    r27978 r29061  
    11# $Id$
    22
    3 PortSystem 1.0
     3PortSystem      1.0
     4
    45name            ha
    56version         0.999
     7revision    1
    68categories      archivers sysutils
    79platforms       darwin
    8 description     The "HA" archiver, based on arithmetic/Markov coder.
     10description     The \"HA\" archiver, based on arithmetic/Markov coder.
    911maintainers     jc@crazic.ru
     12
    1013long_description ${description}
    11 worksrcdir      ha
    12 extract.post_args | tar -xf - -C ha
     14
    1315distfiles       ha0999.tgz
    1416master_sites    ftp://ftp.kiarchive.ru/pub/unix/arcers/
    15 checksums       md5 77f3266a451712bec55d60df67f61486
    1617
    17 patchfiles      patch-asc.c patch-cpy.c patch-hsc.c
     18checksums   md5 77f3266a451712bec55d60df67f61486 \
     19            sha1 8dd106748619772f988ee0bce59937a4de1677ed \
     20            rmd160 41b52392267551f834b58e0a4b69b89e813c8bd6
     21
     22extract.dir ${worksrcpath}
    1823
    1924pre-extract     {
    20         system "mkdir ${worksrcpath}"
     25    file mkdir ${worksrcpath}
    2126}
    2227
    23 configure       {}
    24 
    25 build.args      -f makefile.nix
    26 build.target    {}
    27 
    28 destroot        {
    29         xinstall -m 755 -d ${destroot}/${prefix}/bin
    30 
    31         file copy ${build.dir}/ha ${destroot}/${prefix}/bin
     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
    3233}
    3334
    34 universal_variant no
     35configure {
     36    reinplace -E "/^CFLAGS/s|\$| [join ${configure.cflags} " "]|" ${worksrcpath}/makefile.nix
     37    reinplace -E "/^LDFLAGS/s|\$| [join ${configure.ldflags} " "]|" ${worksrcpath}/makefile.nix
     38}
    3539
     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 TracChangeset for help on using the changeset viewer.