[102039] trunk/dports/sysutils/ansible/Portfile
blair at macports.org
blair at macports.org
Fri Jan 25 13:41:00 PST 2013
Revision: 102039
https://trac.macports.org/changeset/102039
Author: blair at macports.org
Date: 2013-01-25 13:40:59 -0800 (Fri, 25 Jan 2013)
Log Message:
-----------
ansible: set github.tarball_from and don't shell out to find.
Patch by: ryandesign
Modified Paths:
--------------
trunk/dports/sysutils/ansible/Portfile
Modified: trunk/dports/sysutils/ansible/Portfile
===================================================================
--- trunk/dports/sysutils/ansible/Portfile 2013-01-25 21:36:10 UTC (rev 102038)
+++ trunk/dports/sysutils/ansible/Portfile 2013-01-25 21:40:59 UTC (rev 102039)
@@ -5,7 +5,7 @@
PortGroup python 1.0
PortGroup github 1.0
-github.setup ansible ansible 0.9
+github.setup ansible ansible 0.9 v
categories sysutils
supported_archs noarch
@@ -25,7 +25,7 @@
platforms darwin
-master_sites https://github.com/ansible/ansible/downloads
+github.tarball_from downloads
checksums rmd160 f0505ccd0094bdb745271a0508eea023f803c976 \
sha256 fa673fd143b79db726ce4e9c2c281373bdc82631b22ab791700e7ec5c41b3809
@@ -35,9 +35,11 @@
port:py${python.version}-yaml
patch {
- foreach f [exec find ${worksrcpath} -type f] {
- reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f}
- reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f}
+ fs-traverse f ${worksrcpath} {
+ if {[file isfile ${f}]} {
+ reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f}
+ reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f}
+ }
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130125/61d40ef6/attachment.html>
More information about the macports-changes
mailing list