Ticket #12673: ha-doc-universal.diff

File ha-doc-universal.diff, 3.2 KB (added by nox@…, 17 years ago)
  • files/patch-asc.c

     
    1 --- c/asc.c-orig        Thu Jan 12 09:51:34 1995
    2 +++ c/asc.c     Thu Aug  5 03:16:02 2004
    3 @@ -19,7 +19,6 @@
    4         HA ASC method
    5  ***********************************************************************/
    6  
    7 -#include <malloc.h>
    8  #include <stdlib.h>
    9  #include <stdio.h>
    10  #include "ha.h"
  • files/patch-cpy.c

     
    1 --- c/cpy.c-orig        Thu Jan 12 09:51:30 1995
    2 +++ c/cpy.c     Thu Aug  5 03:15:57 2004
    3 @@ -20,7 +20,6 @@
    4  ***********************************************************************/
    5  
    6  #include <stdio.h>
    7 -#include <malloc.h>
    8  #include "ha.h"
    9  #include "cpy.h"
    10  #include "haio.h"
  • files/patch-hsc.c

     
    1 --- c/hsc.c-orig        Thu Jan 12 09:51:16 1995
    2 +++ c/hsc.c     Thu Aug  5 03:15:53 2004
    3 @@ -19,7 +19,6 @@
    4         HA HSC method
    5  ***********************************************************************/
    6  
    7 -#include <malloc.h>
    8  #include <stdlib.h>
    9  #include <stdio.h>
    10  #include "ha.h"
  • Portfile

     
    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       {}
     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}
    2439
     40build.target
    2541build.args      -f makefile.nix
    26 build.target    {}
    2742
    28 destroot        {
    29         xinstall -m 755 -d ${destroot}/${prefix}/bin
     43destroot {
     44    xinstall ${worksrcpath}/ha ${destroot}${prefix}/bin
    3045
    31         file copy ${build.dir}/ha ${destroot}/${prefix}/bin
     46    set docdir ${prefix}/share/doc/${name}-${version}
     47    xinstall -d ${destroot}${docdir}
     48    xinstall -m 0644 -W ${worksrcpath} copying readme ${destroot}${docdir}
    3249}
    3350
    34 universal_variant no
    35