Changeset 97525


Ignore:
Timestamp:
Sep 8, 2012, 12:58:19 AM (8 years ago)
Author:
michaelld@…
Message:

py-urlgrabber : wrap body correctly to activate only when choosing a subport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-urlgrabber/Portfile

    r97524 r97525  
    2626                    rmd160  377196ddb01f6cd4903e063e8e9cba40a0f80fff
    2727
    28 depends_lib         port:py${python.version}-curl
     28if {$subport != $name} {
    2929
    30 post-patch {
    31     reinplace "s|/usr/bin/python|${python.bin}|g" ${worksrcpath}/scripts/urlgrabber
     30    depends_lib-append  port:py${python.version}-curl
     31
     32    post-patch {
     33        reinplace "s|/usr/bin/python|${python.bin}|g" ${worksrcpath}/scripts/urlgrabber
     34    }
    3235}
    3336
Note: See TracChangeset for help on using the changeset viewer.