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

PortSystem          1.0
PortGroup           R 1.0

R.setup             cran cran XML 3.99-0.16.1
revision            1
categories-append   devel
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             BSD
description         Tools for parsing and generating XML within R and S-Plus
long_description    {*}${description}
homepage            https://www.omegahat.net/RSXML
checksums           rmd160  af2d2449c275816e1201044da5fd41d666d6f05e \
                    sha256  a30ae3a3e0d559a2b84b118aa185ef9c42adcf644bf042569f6d192762d2eec4 \
                    size    971985

depends_build-append \
                    port:pkgconfig
depends_lib-append  path:lib/pkgconfig/icu-uc.pc:icu \
                    port:libxml2

patchfiles          patch-cc.diff

post-patch {
    reinplace "s,@CC@,${configure.cc}," ${worksrcpath}/configure
}

depends_test-append port:R-bitops \
                    port:R-RCurl

test.run            yes
