Ticket #48545: Portfile.patch
File Portfile.patch, 2.0 KB (added by adfernandes (Andrew Fernandes), 9 years ago) |
---|
-
Portfile
3 3 4 4 PortSystem 1.0 5 5 PortGroup python 1.0 6 PortGroup github 1.0 6 7 7 8 name ansible 8 epoch 19 version 1.9.110 9 categories sysutils 11 supported_archs noarch12 10 11 # https://github.com/ansible/ansible/issues/11199 12 # 13 set git_date 20150812 14 set git_sha 8e30e3791e69ae6e2c38b964f7a4ea1ada1e3a44 15 16 checksums rmd160 b376de0f149618e93da3ce5bf63e3ca8c41fe13d \ 17 sha256 a173eba9e4ba3c0461ca05e112d6a20bbd9c3f296c099bb86d468c9c8525d59b 18 19 github.setup ${name} ${name} ${git_sha} 20 13 21 maintainers blair gmail.com:pedro.salgado 14 22 15 23 homepage https://github.com/ansible/ansible … … 21 29 or daemons to be installed on remote nodes. Extension modules can \ 22 30 be written in any language and are transferred to managed machines \ 23 31 automatically. 24 25 32 license GPL-3+ 26 33 27 34 platforms darwin 35 supported_archs noarch 28 36 29 master_sites http://releases.ansible.com/ansible \30 http://pypi.python.org/packages/source/a/ansible31 checksums rmd160 fe490e5339290fb7adb98338ff66a74beaccfb92 \32 sha256 a6f975d565723765a4d490ff40cede96833a745f38908def4950a0075f1973f533 34 37 python.default_version 27 35 38 depends_lib-append port:py${python.version}-httplib2 \ 36 39 port:py${python.version}-jinja2 \ … … 37 40 port:py${python.version}-paramiko \ 38 41 port:py${python.version}-yaml 39 42 43 fetch.type git 44 post-fetch { 45 system -W ${worksrcpath} "git submodule update --init" 46 } 47 40 48 patch { 41 49 fs-traverse f ${worksrcpath} { 42 if {[file isfile ${f}] } {50 if {[file isfile ${f}] && ![regexp {\.(ico|png|eot|ttf|woff)$} ${f} match] && ![regexp {\.git} ${f} match]} { 43 51 reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f} 44 52 reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f} 45 53 }