# -*- 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 python    1.0

name                py-rdflib
version             7.1.4
revision            0

categories-append   textproc
license             BSD
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

description         Python library for working with RDF
long_description    RDFLib is a Python library for working with RDF, a \
                    simple yet powerful language for representing \
                    information. The library contains an RDF/XML \
                    parser/serializer, a TripleStore, an InformationStore \
                    and various store backends (InMemory, SleepyCat BTree, \
                    ZODB BTree).

checksums           rmd160  fcb1e58cc4b9b333f07c7218a8ed51538ed4e47b \
                    sha256  fed46e24f26a788e2ab8e445f7077f00edcf95abb73bcef4b86cefa8b62dd174 \
                    size    4692745

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    python.pep517_backend \
                    poetry

    depends_lib-append \
                    port:py${python.version}-html5lib \
                    port:py${python.version}-isodate \
                    port:py${python.version}-parsing \
                    port:py${python.version}-requests \
                    port:py${python.version}-six

    depends_test-append \
                    port:py${python.version}-networkx \
                    port:py${python.version}-nose \
                    port:py${python.version}-doctest-ignore-unicode

    test.run        yes
    test.cmd        ${python.bin} run_tests.py
    test.target

    post-destroot {
        xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 {*}[glob ${worksrcpath}/examples/*] \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
}
