[27977] trunk/dports/archivers/gzrecover/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 16 17:17:58 PDT 2007


Revision: 27977
          http://trac.macosforge.org/projects/macports/changeset/27977
Author:   nox at macports.org
Date:     2007-08-16 17:17:58 -0700 (Thu, 16 Aug 2007)

Log Message:
-----------
gzrecover:
 * Updated to 0.5.
 * Added universal support.
 * Added manpage installation.
 * Added sha1 and rmd160 checksums and livecheck.

Modified Paths:
--------------
    trunk/dports/archivers/gzrecover/Portfile

Modified: trunk/dports/archivers/gzrecover/Portfile
===================================================================
--- trunk/dports/archivers/gzrecover/Portfile	2007-08-16 23:52:05 UTC (rev 27976)
+++ trunk/dports/archivers/gzrecover/Portfile	2007-08-17 00:17:58 UTC (rev 27977)
@@ -1,35 +1,59 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem		1.0
 
 name			gzrecover
-version			0.3
+set my_name		gzrt
+version			0.5
 categories		archivers
 platforms		darwin
-maintainers		nomaintainer at macports.org
+maintainers		nomaintainer
 description		attempts to extract bad gzip archives
-long_description	Gzrecover attempts to skip over bad data in a gzip \
-			archive. It will try to to skip over bad data and extract whatever \
-			files might be there.
 
+long_description \
+				Gzrecover attempts to skip over bad data in a gzip \
+				archive. It will try to to skip over bad data and extract whatever \
+				files might be there.
+
 homepage		http://www.urbanophile.com/arenn/hacking/gzrt/
 master_sites	${homepage}
-distname		gzrt-${version}
-checksums		md5 b54888d4b7a0f130dec89e477b091159
-patchfiles		patch-Makefile
+distname		${my_name}-${version}
 
-use_configure	no
+checksums		md5 91e9cbc1d92276742691dca89d6b8293 \
+				sha1 99f1320dc795da666cd17d331c359e5c2433c129 \
+				rmd160 e14e80de9b5e9abee8c68e6f2a9164c038b1d3a9
 
-build.target
-build.args		LDFLAGS=-L${prefix}/lib CFLAGS=-I${prefix}/include
+depends_lib		port:zlib
 
+post-patch {
+	foreach {var} {CFLAGS LDFLAGS} {
+		eval reinplace -E "\"/^${var}/s|\\\\+=|= \${${var}}|\"" ${worksrcpath}/Makefile
+	}
+}
+
+# Dummy configure to enable universal variant
+configure		{}
+
+set	CFLAGS		${configure.cflags}
+set LDFLAGS		${configure.ldflags}
+
 destroot {
-	xinstall -m 755 -d ${destroot}${prefix}/bin \
-		${destroot}${prefix}/share/doc/${name}
-	xinstall -m 755 ${worksrcpath}/gzrecover ${destroot}${prefix}/bin
-	xinstall -m 644 -W ${worksrcpath} ChangeLog README \
-		${destroot}${prefix}/share/doc/${name}
+	cd ${worksrcpath}
+
+	xinstall gzrecover ${destroot}${prefix}/bin
+	xinstall -m 0444 gzrecover.1 ${destroot}${prefix}/share/man/man1
+
+	set docdir ${prefix}/share/doc/${name}-${version}
+	xinstall -d ${destroot}${docdir}
+	xinstall -m 0644 ChangeLog README ${destroot}${docdir}
 }
 
-platform darwin 8 { build.args-append	CC=/usr/bin/gcc-4.0 }
+variant universal {
+	set CFLAGS	"${CFLAGS} ${configure.universal_cflags}"
+	set LDFLAGS	"${LDFLAGS} ${configure.universal_ldflags}"
+}
 
+livecheck.check	regex
+livecheck.url	${homepage}
+livecheck.regex	${my_name}-(\\d+(?:\\.\\d+)*)
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070816/0ea4b1cb/attachment.html


More information about the macports-changes mailing list