# -*- 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.5.0
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).

homepage            https://github.com/RDFLib/rdflib

checksums           rmd160  70fb91a7b23a0c6a7dc88d3a7541e1c92e7a4e5e \
                    sha256  663083443908b1830e567350d72e74d9948b310f827966358d76eebdc92bf592 \
                    size    4903859

python.versions     310 311 312 313 314

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

    depends_lib-append \
                    port:py${python.version}-parsing

    if {${python.version} < 311} {
        depends_lib-append \
                    port:py${python.version}-isodate
    }

    test.run        yes

    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
    }
}
