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 19952 +++ c/asc.c Thu Aug 5 03:16:02 20043 @@ -19,7 +19,6 @@4 HA ASC method5 ***********************************************************************/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 19952 +++ c/cpy.c Thu Aug 5 03:15:57 20043 @@ -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 19952 +++ c/hsc.c Thu Aug 5 03:15:53 20043 @@ -19,7 +19,6 @@4 HA HSC method5 ***********************************************************************/6 7 -#include <malloc.h>8 #include <stdlib.h>9 #include <stdio.h>10 #include "ha.h" -
Portfile
1 1 # $Id$ 2 2 3 PortSystem 1.0 3 PortSystem 1.0 4 4 5 name ha 5 6 version 0.999 7 revision 1 6 8 categories archivers sysutils 7 9 platforms darwin 8 description The "HA" archiver, based on arithmetic/Markov coder.10 description The \"HA\" archiver, based on arithmetic/Markov coder. 9 11 maintainers jc@crazic.ru 12 10 13 long_description ${description} 11 worksrcdir ha 12 extract.post_args | tar -xf - -C ha 14 13 15 distfiles ha0999.tgz 14 16 master_sites ftp://ftp.kiarchive.ru/pub/unix/arcers/ 15 checksums md5 77f3266a451712bec55d60df67f6148616 17 17 patchfiles patch-asc.c patch-cpy.c patch-hsc.c 18 checksums md5 77f3266a451712bec55d60df67f61486 \ 19 sha1 8dd106748619772f988ee0bce59937a4de1677ed \ 20 rmd160 41b52392267551f834b58e0a4b69b89e813c8bd6 21 22 extract.dir ${worksrcpath} 18 23 19 24 pre-extract { 20 system "mkdir ${worksrcpath}" 25 file mkdir ${worksrcpath} 21 26 } 22 27 23 configure {} 28 post-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 35 configure { 36 reinplace -E "/^CFLAGS/s|\$| [join ${configure.cflags} " "]|" ${worksrcpath}/makefile.nix 37 reinplace -E "/^LDFLAGS/s|\$| [join ${configure.ldflags} " "]|" ${worksrcpath}/makefile.nix 38 } 24 39 40 build.target 25 41 build.args -f makefile.nix 26 build.target {}27 42 28 destroot 29 xinstall -m 755 -d ${destroot}/${prefix}/bin43 destroot { 44 xinstall ${worksrcpath}/ha ${destroot}${prefix}/bin 30 45 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} 32 49 } 33 50 34 universal_variant no35