[28074] trunk/dports/archivers/ecm
source_changes at macosforge.org
source_changes at macosforge.org
Sun Aug 19 12:17:39 PDT 2007
Revision: 28074
http://trac.macosforge.org/projects/macports/changeset/28074
Author: nox at macports.org
Date: 2007-08-19 12:17:39 -0700 (Sun, 19 Aug 2007)
Log Message:
-----------
ecm:
* Added universal support.
* Added sha1 and rmd160 checksums and livecheck.
* Removed makefile, build process is now in the portfile itself.
Modified Paths:
--------------
trunk/dports/archivers/ecm/Portfile
Removed Paths:
-------------
trunk/dports/archivers/ecm/files/
Modified: trunk/dports/archivers/ecm/Portfile
===================================================================
--- trunk/dports/archivers/ecm/Portfile 2007-08-19 18:42:56 UTC (rev 28073)
+++ trunk/dports/archivers/ecm/Portfile 2007-08-19 19:17:39 UTC (rev 28074)
@@ -1,33 +1,56 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
name ecm
version 1.0
categories archivers
platforms darwin
-maintainers nomaintainer at macports.org
+maintainers nomaintainer
description CD image file error code modeler
-long_description ECM (Error Code Modeler) lets you prepare CD image files - \
- such as BIN, CDI, NRG, CCD, or similar - so that they'll compress \
- far better.
+long_description \
+ ECM (Error Code Modeler) lets you prepare CD image files - \
+ such as BIN, CDI, NRG, CCD, or similar - so that they'll compress \
+ far better.
+
homepage http://www.neillcorlett.com/ecm/
-master_sites ${homepage}
+master_sites http://www.neillcorlett.com/downloads/
distname ecm100
-checksums md5 debcc0772cea7e8b1ae2562a38788fb6
use_zip yes
+checksums md5 debcc0772cea7e8b1ae2562a38788fb6 \
+ sha1 ec8884b547bebee69fa3d2901dbd076f9a84c2ce \
+ rmd160 04110dd50d7609e0337e71ab7587fb3d0d05eefb
+
+extract.dir ${worksrcpath}
+
pre-extract {
file mkdir ${worksrcpath}
- file copy ${filespath}/Makefile ${worksrcpath}
}
-extract.dir ${worksrcpath}
-use_configure no
+# Dummy configure to enable universal variant
+configure {}
-destroot.destdir prefix=${destroot}${prefix}
+build {
+ cd ${worksrcpath}
-platform darwin 8 {
- build.args CC=/usr/bin/gcc-4.0
+ foreach {bin} {ecm unecm} {
+ system "gcc [join ${configure.cflags} " "] ${bin}.c -o ${bin}"
+ }
}
+
+destroot {
+ cd ${worksrcpath}
+
+ xinstall ecm unecm ${destroot}${prefix}/bin
+
+ set docdir ${prefix}/share/doc/${name}-${version}
+ xinstall -d ${destroot}${docdir}
+ eval xinstall -m 0644 [glob *.txt] ${destroot}${docdir}
+}
+
+livecheck.check regex
+livecheck.url ${homepage}
+livecheck.regex "ECM v(\\d+(?:\\.\\d+)*)"
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070819/dafde533/attachment.html
More information about the macports-changes
mailing list