[28963] trunk/dports/archivers/ecm/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 12 12:39:40 PDT 2007


Revision: 28963
          http://trac.macosforge.org/projects/macports/changeset/28963
Author:   nox at macports.org
Date:     2007-09-12 12:39:40 -0700 (Wed, 12 Sep 2007)

Log Message:
-----------
ecm: Don't use {{{cd}}} anymore.

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

Modified: trunk/dports/archivers/ecm/Portfile
===================================================================
--- trunk/dports/archivers/ecm/Portfile	2007-09-12 19:37:52 UTC (rev 28962)
+++ trunk/dports/archivers/ecm/Portfile	2007-09-12 19:39:40 UTC (rev 28963)
@@ -29,27 +29,23 @@
     file mkdir ${worksrcpath}
 }
 
-# Dummy configure to enable universal variant
-configure {}
-
 build {
-    cd ${worksrcpath}
-
     foreach {bin} {ecm unecm} {
-        system "gcc [join ${configure.cflags} " "] ${bin}.c -o ${bin}"
+        system "cd ${worksrcpath} && \
+            gcc [join ${configure.cflags} " "] ${bin}.c -o ${bin}"
     }
 }
 
 destroot {
-    cd ${worksrcpath}
+    xinstall -W ${worksrcpath} ecm unecm ${destroot}${prefix}/bin
 
-    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}
+    eval xinstall -m 0644 [glob ${worksrcpath}/*.txt] ${destroot}${docdir}
 }
 
+variant universal {}
+
 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/20070912/4b518a00/attachment.html


More information about the macports-changes mailing list