[91841] trunk/dports/sysutils/zeroinstall-injector/Portfile
afb at macports.org
afb at macports.org
Wed Apr 11 12:53:26 PDT 2012
Revision: 91841
https://trac.macports.org/changeset/91841
Author: afb at macports.org
Date: 2012-04-11 12:53:26 -0700 (Wed, 11 Apr 2012)
Log Message:
-----------
zeroinstall-injector: wrap variables in blocks instead (ryan)
Modified Paths:
--------------
trunk/dports/sysutils/zeroinstall-injector/Portfile
Modified: trunk/dports/sysutils/zeroinstall-injector/Portfile
===================================================================
--- trunk/dports/sysutils/zeroinstall-injector/Portfile 2012-04-11 19:41:37 UTC (rev 91840)
+++ trunk/dports/sysutils/zeroinstall-injector/Portfile 2012-04-11 19:53:26 UTC (rev 91841)
@@ -37,10 +37,6 @@
set python.branch 2.6
set python.bin ${prefix}/bin/python${python.branch}
-
-build.cmd ${python.bin} setup.py
-destroot.cmd ${python.bin} setup.py
-test.cmd ${python.bin}
}
variant python27 conflicts python26 description "use python 2.7" {
@@ -49,10 +45,6 @@
set python.branch 2.7
set python.bin ${prefix}/bin/python${python.branch}
-
-build.cmd ${python.bin} setup.py
-destroot.cmd ${python.bin} setup.py
-test.cmd ${python.bin}
}
if {![variant_isset python27]} {
@@ -67,11 +59,15 @@
use_configure no
supported_archs noarch
+pre-build {
build.cmd ${python.bin} setup.py
build.target build
+}
+pre-destroot {
destroot.cmd ${python.bin} setup.py
destroot.destdir --prefix=${prefix} --skip-build --root=${destroot}
+}
post-destroot {
reinplace "s|/usr/bin/env python|${python.bin}|" \
@@ -83,10 +79,12 @@
${destroot}[exec ${python.bin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"]
}
+pre-test {
test.run yes
test.cmd ${python.bin}
test.dir ${worksrcpath}/tests
test.target testall.py
+}
livecheck.name zero-install
livecheck.distname injector
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120411/f33d1355/attachment-0001.html>
More information about the macports-changes
mailing list