Ticket #58155: Portfile-p5-web-scraper.diff

File Portfile-p5-web-scraper.diff, 1.5 KB (added by hyperbole (hyperbole), 6 years ago)

Add a variant dependancy for p5-html-treebuilder-libxml

  • Portfile

    old new  
    44PortGroup           perl5 1.0
    55
    66perl5.branches      5.26 5.28
    7 perl5.setup         Web-Scraper 0.38
     7perl5.setup         Web-Scraper 0.38 ../by-authors/id/M/MI/MIYAGAWA
    88license             {Artistic-1 GPL}
    99maintainers         nomaintainer
    1010description         Web::Scraper - Web Scraping Toolkit using HTML and CSS Selectors or XPath expressions
     
    1515platforms           darwin
    1616
    1717checksums           rmd160  0bf2655fbc315800ab8dcc2ddf82ea65bcf40716 \
    18                     sha256  f95b6e5f8d7feebe116d05bf59a2b7cf1a51ed9d30bca80123430ec4567543bf
     18                    sha256  f95b6e5f8d7feebe116d05bf59a2b7cf1a51ed9d30bca80123430ec4567543bf \
     19                    size    25738
    1920
    2021if {${perl5.major} != ""} {
    2122    perl5.use_module_build
     
    2829                    port:p${perl5.major}-test-harness \
    2930                    port:p${perl5.major}-test-requires
    3031
    31      depends_lib-append \
     32    depends_lib-append \
    3233                    port:p${perl5.major}-html-parser \
    3334                    port:p${perl5.major}-html-selector-xpath \
    3435                    port:p${perl5.major}-html-tagset \
     
    4142                    port:p${perl5.major}-xml-xpathengine \
    4243                    port:p${perl5.major}-yaml
    4344
     45    variant libxml {
     46        depends_lib-append     port:p5-html-treebulder-libxml
     47    }
    4448
    4549    supported_archs noarch
    4650}