# -*- 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.4.0
revision            1

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  ed6466af87128c3cad268acfac9d1eada0a59d1d \
                    sha256  c8ee16c31848c19c174aed96185327ea139ca3d392fac7fa882ddf5687f8f533 \
                    size    4866588

python.versions     39 310 311 312 313

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

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

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