[87061] trunk/dports/textproc/dumpasn1/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Nov 8 15:41:02 PST 2011


Revision: 87061
          http://trac.macports.org/changeset/87061
Author:   ryandesign at macports.org
Date:     2011-11-08 15:41:02 -0800 (Tue, 08 Nov 2011)
Log Message:
-----------
dumpasn1: update to 20110202; ensure we're UsingTheRightCompiler and arch flags; add universal variant; fix livecheck; see #31915 (maintainer timeout)

Modified Paths:
--------------
    trunk/dports/textproc/dumpasn1/Portfile

Modified: trunk/dports/textproc/dumpasn1/Portfile
===================================================================
--- trunk/dports/textproc/dumpasn1/Portfile	2011-11-08 23:34:57 UTC (rev 87060)
+++ trunk/dports/textproc/dumpasn1/Portfile	2011-11-08 23:41:02 UTC (rev 87061)
@@ -1,9 +1,11 @@
 # $Id$
 
 PortSystem 1.0
+
 name		dumpasn1
-version		20060622
+version		20110202
 categories	textproc security
+platforms	darwin
 maintainers	cjr
 description	an ASN.1 decoder and pretty-printer
 long_description	The dumpasn1 program decodes BER and DER-encoded \
@@ -11,25 +13,33 @@
 			many security-related objects.
 homepage	http://www.cs.auckland.ac.nz/~pgut001/
 master_sites	${homepage}
-distname	
+dist_subdir	${name}/${version}
 distfiles	dumpasn1.c dumpasn1.cfg
-checksums	dumpasn1.c md5 0855c6f21a9e2c7f984b1e48ce9c1f58 \
-		dumpasn1.cfg md5 ffb5d3c3f7b5216149dcc7bbf462408c
-platforms	darwin
-extract {
-	system "cp ${distpath}/dumpasn1.c ${worksrcpath}"
-	system "cp ${distpath}/dumpasn1.cfg ${worksrcpath}"
+
+checksums	dumpasn1.c \
+		rmd160  65fbc959dcf36729f29d2c81d148002e934d192a \
+		sha256  514e3b49adb0b2e49f8bcfc47c20c5f4202bc7e9f7b1e90bcd4d4cf592d469f4 \
+		dumpasn1.cfg \
+		rmd160  27c96f45ae762b202fe7ee5a3973d7e7447415ca \
+		sha256  b7c0ad5a4186fcef9b37d5a95419886e8ed16f0c69603f9725c4007026958241
+
+extract.only
+extract.mkdir	yes
+post-extract {
+	xinstall -m 644 -W ${distpath} dumpasn1.c dumpasn1.cfg ${worksrcpath}
 }
 
-configure	{}
-
-post-configure {
+post-patch {
 	reinplace "s|/etc/dumpasn1/|$prefix/etc/|g" \
 		"${worksrcpath}/dumpasn1.c"
 }
 
+use_configure	no
+
+variant universal {}
+
 build {
-	system "cc -o ${worksrcpath}/dumpasn1 ${worksrcpath}/dumpasn1.c"
+	system -W ${worksrcpath} "${configure.cc} [get_canonical_archflags] -o dumpasn1 dumpasn1.c"
 }
 
 destroot {
@@ -38,3 +48,6 @@
 	xinstall -c -m 0644 ${worksrcpath}/dumpasn1.cfg \
 		${destroot}${prefix}/etc/dumpasn1.cfg
 }
+
+livecheck.type	moddate
+livecheck.url	[lindex ${master_sites} 0][lindex ${distfiles} 0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111108/2f3ca795/attachment.html>


More information about the macports-changes mailing list