[29061] trunk/dports/archivers/ha
source_changes at macosforge.org
source_changes at macosforge.org
Fri Sep 14 05:43:01 PDT 2007
Revision: 29061
http://trac.macosforge.org/projects/macports/changeset/29061
Author: nox at macports.org
Date: 2007-09-14 05:43:01 -0700 (Fri, 14 Sep 2007)
Log 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.
Modified Paths:
--------------
trunk/dports/archivers/ha/Portfile
Removed Paths:
-------------
trunk/dports/archivers/ha/files/patch-asc.c
trunk/dports/archivers/ha/files/patch-cpy.c
trunk/dports/archivers/ha/files/patch-hsc.c
Modified: trunk/dports/archivers/ha/Portfile
===================================================================
--- trunk/dports/archivers/ha/Portfile 2007-09-14 12:40:56 UTC (rev 29060)
+++ trunk/dports/archivers/ha/Portfile 2007-09-14 12:43:01 UTC (rev 29061)
@@ -1,35 +1,50 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
+
name ha
version 0.999
+revision 1
categories archivers sysutils
platforms darwin
-description The "HA" archiver, based on arithmetic/Markov coder.
+description The \"HA\" archiver, based on arithmetic/Markov coder.
maintainers jc at crazic.ru
+
long_description ${description}
-worksrcdir ha
-extract.post_args | tar -xf - -C ha
+
distfiles ha0999.tgz
master_sites ftp://ftp.kiarchive.ru/pub/unix/arcers/
-checksums md5 77f3266a451712bec55d60df67f61486
-patchfiles patch-asc.c patch-cpy.c patch-hsc.c
+checksums md5 77f3266a451712bec55d60df67f61486 \
+ sha1 8dd106748619772f988ee0bce59937a4de1677ed \
+ rmd160 41b52392267551f834b58e0a4b69b89e813c8bd6
+extract.dir ${worksrcpath}
+
pre-extract {
- system "mkdir ${worksrcpath}"
+ file mkdir ${worksrcpath}
}
-configure {}
+post-patch {
+ reinplace -E "s|(malloc.h)|malloc/\\1|" \
+ ${worksrcpath}/c/hsc.c \
+ ${worksrcpath}/c/asc.c \
+ ${worksrcpath}/c/cpy.c
+}
+configure {
+ reinplace -E "/^CFLAGS/s|\$| [join ${configure.cflags} " "]|" ${worksrcpath}/makefile.nix
+ reinplace -E "/^LDFLAGS/s|\$| [join ${configure.ldflags} " "]|" ${worksrcpath}/makefile.nix
+}
+
+build.target
build.args -f makefile.nix
-build.target {}
-destroot {
- xinstall -m 755 -d ${destroot}/${prefix}/bin
+destroot {
+ xinstall ${worksrcpath}/ha ${destroot}${prefix}/bin
- file copy ${build.dir}/ha ${destroot}/${prefix}/bin
+ set docdir ${prefix}/share/doc/${name}-${version}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 0644 -W ${worksrcpath} copying readme ${destroot}${docdir}
}
-universal_variant no
-
Deleted: trunk/dports/archivers/ha/files/patch-asc.c
===================================================================
--- trunk/dports/archivers/ha/files/patch-asc.c 2007-09-14 12:40:56 UTC (rev 29060)
+++ trunk/dports/archivers/ha/files/patch-asc.c 2007-09-14 12:43:01 UTC (rev 29061)
@@ -1,10 +0,0 @@
---- c/asc.c-orig Thu Jan 12 09:51:34 1995
-+++ c/asc.c Thu Aug 5 03:16:02 2004
-@@ -19,7 +19,6 @@
- HA ASC method
- ***********************************************************************/
-
--#include <malloc.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include "ha.h"
Deleted: trunk/dports/archivers/ha/files/patch-cpy.c
===================================================================
--- trunk/dports/archivers/ha/files/patch-cpy.c 2007-09-14 12:40:56 UTC (rev 29060)
+++ trunk/dports/archivers/ha/files/patch-cpy.c 2007-09-14 12:43:01 UTC (rev 29061)
@@ -1,10 +0,0 @@
---- c/cpy.c-orig Thu Jan 12 09:51:30 1995
-+++ c/cpy.c Thu Aug 5 03:15:57 2004
-@@ -20,7 +20,6 @@
- ***********************************************************************/
-
- #include <stdio.h>
--#include <malloc.h>
- #include "ha.h"
- #include "cpy.h"
- #include "haio.h"
Deleted: trunk/dports/archivers/ha/files/patch-hsc.c
===================================================================
--- trunk/dports/archivers/ha/files/patch-hsc.c 2007-09-14 12:40:56 UTC (rev 29060)
+++ trunk/dports/archivers/ha/files/patch-hsc.c 2007-09-14 12:43:01 UTC (rev 29061)
@@ -1,10 +0,0 @@
---- c/hsc.c-orig Thu Jan 12 09:51:16 1995
-+++ c/hsc.c Thu Aug 5 03:15:53 2004
-@@ -19,7 +19,6 @@
- HA HSC method
- ***********************************************************************/
-
--#include <malloc.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include "ha.h"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070914/38f2033a/attachment.html
More information about the macports-changes
mailing list