[88902] trunk/dports/python/py-urlwatch/Portfile
dports at macports.org
dports at macports.org
Sat Jan 14 15:51:13 PST 2012
Revision: 88902
http://trac.macports.org/changeset/88902
Author: dports at macports.org
Date: 2012-01-14 15:51:13 -0800 (Sat, 14 Jan 2012)
Log Message:
-----------
py-urlwatch: move dependencies and pre-configure block to subports
only
(fixes use of ${python.version} in stub port; see #32840)
Modified Paths:
--------------
trunk/dports/python/py-urlwatch/Portfile
Modified: trunk/dports/python/py-urlwatch/Portfile
===================================================================
--- trunk/dports/python/py-urlwatch/Portfile 2012-01-14 23:49:59 UTC (rev 88901)
+++ trunk/dports/python/py-urlwatch/Portfile 2012-01-14 23:51:13 UTC (rev 88902)
@@ -18,7 +18,6 @@
homepage http://thpinfo.com/2008/urlwatch/
master_sites ${homepage}
distname urlwatch-${version}
-depends_lib port:py${python.version}-distribute
checksums md5 6bff9dab50fe4c45521d0b8e36d604a5 \
sha1 17c84d0d215e9d6cd1d5b165b7a8fdac1a0f246c \
@@ -27,10 +26,13 @@
livecheck.url ${homepage}
livecheck.regex "Current version: (\\d+(?:\\.\\d+)*)"
-depends_lib port:py${python.version}-futures
+if {$subport != $name} {
+ depends_build-append port:py${python.version}-distribute
+ depends_lib-append port:py${python.version}-futures
-pre-configure {
- if {${python.version}==32 || ${python.version}==31} {
- system "cd ${worksrcpath} && ${worksrcpath}/convert-to-python3.sh"
+ pre-configure {
+ if {${python.version}==32 || ${python.version}==31} {
+ system "cd ${worksrcpath} && ${worksrcpath}/convert-to-python3.sh"
+ }
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120114/f1ab9a53/attachment.html>
More information about the macports-changes
mailing list