[29064] trunk/dports/archivers/arc
source_changes at macosforge.org
source_changes at macosforge.org
Fri Sep 14 05:46:51 PDT 2007
Revision: 29064
http://trac.macosforge.org/projects/macports/changeset/29064
Author: nox at macports.org
Date: 2007-09-14 05:46:51 -0700 (Fri, 14 Sep 2007)
Log Message:
-----------
arc (closes #12676):
* Added universal support.
* Added standard doc installation.
* Fixed livecheck.
* Added sha1 and rmd160 checksums.
* destroot now uses xinstall instead of file copy.
Modified Paths:
--------------
trunk/dports/archivers/arc/Portfile
trunk/dports/archivers/arc/files/patch-Makefile
Modified: trunk/dports/archivers/arc/Portfile
===================================================================
--- trunk/dports/archivers/arc/Portfile 2007-09-14 12:45:46 UTC (rev 29063)
+++ trunk/dports/archivers/arc/Portfile 2007-09-14 12:46:51 UTC (rev 29064)
@@ -3,6 +3,7 @@
PortSystem 1.0
name arc
version 5.21o
+revision 1
categories archivers sysutils
description create and extract files from dos .arc archives
maintainers jc at crazic.ru
@@ -10,24 +11,36 @@
homepage http://arc.sourceforge.net/
master_sites sourceforge
extract.suffix .tgz
-checksums md5 3b30c739b42b2fe8ac4ec0a05f34f284
-use_configure no
+checksums md5 3b30c739b42b2fe8ac4ec0a05f34f284 \
+ sha1 4b803eae04976072fae88d4dbfc4b3e45796f8f3 \
+ rmd160 2897f62452f59efcb757cd5447d6d330df0cfdd1
patchfiles patch-Makefile patch-marc.c
-post-build {
- system "strip ${build.dir}/$name ${build.dir}/m$name"
+use_configure no
+
+set CFLAGS ${configure.cflags}
+
+if {[variant_isset universal]} {
+ set CFLAGS "${CFLAGS} ${configure.universal_cflags}"
}
-destroot {
- xinstall -m 755 -d ${destroot}/${prefix}/bin
- xinstall -m 755 -d ${destroot}/${prefix}/share/man/man1
+build.args "OPT=\"${CFLAGS}\""
- file copy ${worksrcpath}/$name ${destroot}/${prefix}/bin
- file copy ${worksrcpath}/m$name ${destroot}/${prefix}/bin
- file copy ${worksrcpath}/$name.1 ${destroot}/${prefix}/share/man/man1
+destroot {
+ cd ${worksrcpath}
+
+ xinstall ${name} m${name} ${destroot}${prefix}/bin
+ xinstall -m 0444 ${name}.1 ${destroot}${prefix}/share/man/man1
+
+ set docdir ${prefix}/share/doc/${name}-${version}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 0644 Arc[strsed ${version} {g/[^0-9]//}].doc Arcinfo COPYING LICENSE \
+ ${destroot}${docdir}
}
-universal_variant no
+variant universal {}
+livecheck.regex "<title>${name} ${name}-(\\d+(?:\\.\\d+)*\[a-z\]?) released.*</title>"
+
Modified: trunk/dports/archivers/arc/files/patch-Makefile
===================================================================
--- trunk/dports/archivers/arc/files/patch-Makefile 2007-09-14 12:45:46 UTC (rev 29063)
+++ trunk/dports/archivers/arc/files/patch-Makefile 2007-09-14 12:46:51 UTC (rev 29064)
@@ -1,6 +1,6 @@
---- Makefile.orig 2007-04-11 11:47:25.000000000 -0700
-+++ Makefile 2007-04-11 11:48:38.000000000 -0700
-@@ -35,17 +35,17 @@ PROG =
+--- Makefile.orig 2007-08-29 18:30:18.000000000 +0200
++++ Makefile 2007-08-29 18:31:01.000000000 +0200
+@@ -35,17 +35,16 @@
# On Solaris, use -DSYSV=1 -DNEED_ALPHASORT and set SYSVOBJ=scandir.o
# (See the Sysvarcstuf shar file)
#SYSTEM = -DGEMDOS=1 -fstrength-reduce -fomit-frame-pointer -finline-functions -fdefer-pop -mpcrel
@@ -10,24 +10,15 @@
+#SYSTEM = -DSYSV=1
-OPT = -O
-+OPT = -O2
# For MWC 3.0 on the Atari ST, use:
#CFLAGS = -VCOMPAC -VPEEP
CFLAGS = $(OPT) $(SYSTEM)
# GNU's gcc is very nice, if you've got it. Otherwise just cc.
- #CC = cgcc -mshort -mbaserel
+-#CC = cgcc -mshort -mbaserel
-CC = cc
+CC = gcc
++#CC = cc
# tmclock is only needed on Unix systems...
TMCLOCK = tmclock.o
-@@ -72,7 +72,7 @@ marc$(PROG): $(MOBJ) $(TMCLOCK)
- $(CC) $(OPT) -o marc$(PROG) $(MOBJ) $(TMCLOCK) $(LIBS)
-
- clean:
-- -rm *.o arc$(PROG) marc$(PROG)
-+ -rm -f *.o arc$(PROG) marc$(PROG)
-
- arc.o: $(SRCDIR)arc.c $(HEADER)
- $(CC) $(CFLAGS) -c $(SRCDIR)arc.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070914/f19396e1/attachment.html
More information about the macports-changes
mailing list