Ticket #48545: Portfile.patch

File Portfile.patch, 2.0 KB (added by adfernandes (Andrew Fernandes), 9 years ago)
  • Portfile

     
    33
    44PortSystem      1.0
    55PortGroup       python 1.0
     6PortGroup       github 1.0
    67
    78name            ansible
    8 epoch           1
    9 version         1.9.1
    109categories      sysutils
    11 supported_archs noarch
    1210
     11# https://github.com/ansible/ansible/issues/11199
     12#
     13set git_date    20150812
     14set git_sha     8e30e3791e69ae6e2c38b964f7a4ea1ada1e3a44
     15
     16checksums       rmd160  b376de0f149618e93da3ce5bf63e3ca8c41fe13d \
     17                sha256  a173eba9e4ba3c0461ca05e112d6a20bbd9c3f296c099bb86d468c9c8525d59b
     18
     19github.setup    ${name} ${name} ${git_sha}
     20
    1321maintainers     blair gmail.com:pedro.salgado
    1422
    1523homepage        https://github.com/ansible/ansible
     
    2129    or daemons to be installed on remote nodes.  Extension modules can \
    2230    be written in any language and are transferred to managed machines \
    2331    automatically.
    24 
    2532license         GPL-3+
    2633
    2734platforms       darwin
     35supported_archs noarch
    2836
    29 master_sites    http://releases.ansible.com/ansible \
    30                 http://pypi.python.org/packages/source/a/ansible
    31 checksums       rmd160 fe490e5339290fb7adb98338ff66a74beaccfb92 \
    32                 sha256 a6f975d565723765a4d490ff40cede96833a745f38908def4950a0075f1973f5
    33 
    3437python.default_version  27
    3538depends_lib-append      port:py${python.version}-httplib2 \
    3639                        port:py${python.version}-jinja2 \
     
    3740                        port:py${python.version}-paramiko \
    3841                        port:py${python.version}-yaml
    3942
     43fetch.type      git
     44post-fetch {
     45    system -W ${worksrcpath} "git submodule update --init"
     46}
     47
    4048patch {
    4149    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]} {
    4351            reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f}
    4452            reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f}
    4553        }