# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0
PortGroup       php 1.1

name            php-html_parse
version         1.0.0
revision        1
license         PHP
categories      php textproc devel
platforms       darwin
maintainers     ryandesign openmaintainer

php.branches    5.3 5.4 5.5 5.6
php.pecl        yes

description     HTML parser extension

long_description \
    HTML parser extension based on the ekhtml library.

checksums       md5     d19772cb926d775313af0fda207e2a90 \
                sha1    a287944c9d1e79bed2b9c180f2c76b99cda954ad \
                rmd160  6e476ca31f0d85eb70bf4f9ce194f7e811d58d4d

if {${name} ne ${subport}} {
    depends_lib-append  port:ekhtml
    
    patchfiles          patch-html_parse.c.diff
    
    configure.args      --with-ekhtml=${prefix}
    
    use_parallel_build  yes
    
    test.run            yes
    
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 ${worksrcpath}/CREDITS ${destroot}${docdir}
    }
}