[92999] trunk/dports/sysutils/yum-createrepo/Portfile
afb at macports.org
afb at macports.org
Sun May 13 13:26:53 PDT 2012
Revision: 92999
https://trac.macports.org/changeset/92999
Author: afb at macports.org
Date: 2012-05-13 13:26:52 -0700 (Sun, 13 May 2012)
Log Message:
-----------
yum-createrepo: upgrade to python25
Modified Paths:
--------------
trunk/dports/sysutils/yum-createrepo/Portfile
Modified: trunk/dports/sysutils/yum-createrepo/Portfile
===================================================================
--- trunk/dports/sysutils/yum-createrepo/Portfile 2012-05-13 20:25:54 UTC (rev 92998)
+++ trunk/dports/sysutils/yum-createrepo/Portfile 2012-05-13 20:26:52 UTC (rev 92999)
@@ -4,6 +4,7 @@
name yum-createrepo
version 0.9.8
+revision 1
categories sysutils
platforms darwin
maintainers afb
@@ -20,22 +21,36 @@
rmd160 aa6021d6cc3e01f8b7dde108a966210dd7480509
patchfiles patch-prefix.diff patch-sqlite.diff
-depends_run port:python24 port:yum
+depends_run port:python25 port:yum
# this should be depends_test:
-depends_build port:py-checker
+depends_build port:py25-checker
+set python.bin ${prefix}/bin/python2.5
+
patch {
foreach patch $patchfiles {
system "cd '${workpath}/${distname}' && \
- sed -e 's#@@PREFIX@@#${prefix}#g' -e 's#@@PYTHON@@#${prefix}/bin/python2.4#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
+ sed -e 's#@@PREFIX@@#${prefix}#g' -e 's#@@PYTHON@@#${python.bin}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
}
}
use_configure no
-build.args prefix=${prefix} PYTHON="${prefix}/bin/python2.4"
-destroot.args prefix=${prefix} PYTHON="${prefix}/bin/python2.4" INSTALL="/usr/bin/install -p" INSTALL_MODULES="/usr/bin/install -m 755"
+build.args prefix=${prefix} PYTHON="${python.bin}"
+destroot.args prefix=${prefix} PYTHON="${python.bin}" INSTALL="/usr/bin/install -p" INSTALL_MODULES="/usr/bin/install -m 755"
+variant python26 description "use python 2.6 instead of python 2.5" {
+ depends_run-delete port:python25
+ depends_run-append port:python26
+ depends_build-delete port:py25-checker
+ depends_build-append port:py26-checker
+ set python.bin ${prefix}/bin/python2.6
+ build.args-delete PYTHON="${prefix}/bin/python2.5"
+ build.args-append PYTHON="${prefix}/bin/python2.6"
+ destroot.args-delete PYTHON="${prefix}/bin/python2.5"
+ destroot.args-append PYTHON="${prefix}/bin/python2.6"
+}
+
test.run yes
test.target check
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120513/89c14b43/attachment-0001.html>
More information about the macports-changes
mailing list