[139408] trunk/dports/sysutils/ansible/Portfile
adfernandes at macports.org
adfernandes at macports.org
Sun Aug 16 08:54:19 PDT 2015
Revision: 139408
https://trac.macports.org/changeset/139408
Author: adfernandes at macports.org
Date: 2015-08-16 08:54:19 -0700 (Sun, 16 Aug 2015)
Log Message:
-----------
ansible: update to 1.9.2, include git submodules, close #48545
Modified Paths:
--------------
trunk/dports/sysutils/ansible/Portfile
Modified: trunk/dports/sysutils/ansible/Portfile
===================================================================
--- trunk/dports/sysutils/ansible/Portfile 2015-08-16 08:42:55 UTC (rev 139407)
+++ trunk/dports/sysutils/ansible/Portfile 2015-08-16 15:54:19 UTC (rev 139408)
@@ -3,15 +3,18 @@
PortSystem 1.0
PortGroup python 1.0
+PortGroup github 1.0
name ansible
+version 1.9.2
epoch 1
-version 1.9.2
categories sysutils
-supported_archs noarch
-maintainers blair gmail.com:pedro.salgado
+github.setup ${name} ${name} v${version}-${epoch}
+fetch.type git
+maintainers adfernandes blair gmail.com:pedro.salgado
+
homepage https://github.com/ansible/ansible
description SSH-based configuration management and deployment system
long_description \
@@ -21,25 +24,25 @@
or daemons to be installed on remote nodes. Extension modules can \
be written in any language and are transferred to managed machines \
automatically.
-
license GPL-3+
platforms darwin
+supported_archs noarch
-master_sites http://releases.ansible.com/ansible \
- http://pypi.python.org/packages/source/a/ansible
-checksums rmd160 71f8634c3f6cd7e07538f3813531ce6f087fa29b \
- sha256 c25ef4738b08fdfb3094247c012f3fd1b29972acbd37f988070b2a85f5fbee00
-
python.default_version 27
depends_lib-append port:py${python.version}-httplib2 \
port:py${python.version}-jinja2 \
port:py${python.version}-paramiko \
port:py${python.version}-yaml
+post-fetch {
+ # fetch submodules (https://github.com/ansible/ansible/issues/11199)
+ system -W ${worksrcpath} "git submodule update --init"
+}
+
patch {
fs-traverse f ${worksrcpath} {
- if {[file isfile ${f}]} {
+ if {[file isfile ${f}] && ![regexp {\.(ico|png|eot|ttf|woff)$} ${f} match] && ![regexp {\.git} ${f} match] && ![regexp {v2/test/test.yml} ${f} match]} {
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: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150816/445b1e19/attachment.html>
More information about the macports-changes
mailing list