# -*- 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 r-project XML 3.99-0.17
revision            1
categories-append   devel textproc
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  5f877f8119ed09ee7928cbd90f9d40a632fc5cc7 \
                    sha256  6e233265ff69ff2f59f56fe4abc5af70e2cfa6d99aec6ad2afd2bf2c0d98a2d8 \
                    size    968686

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:libxml2

patchfiles          patch-configure.diff

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

build.args-append   --configure-args=--without-xmlsec

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

test.run            yes
