# -*- 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
github.setup RDFLib rdflib 4.2.2
categories-append textproc
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, \
checksums rmd160 320af9a70140edd415d46e821c9de21d69f88ec4 \
sha256 46db7d1844c03771559320cdbcf20074fb20b8b4643c7b0ac1b36da339f9788b
if {${name} ne ${subport}} {
depends_lib-append port:py${python.version}-setuptools
depends_run-append port:py${python.version}-isodate \
port:py${python.version}-html5lib
# Python 3+ needs more commands to test
if {${python.version} == 27} {
depends_test-append port:py${python.version}-nose
test.cmd nosetests-${python.branch}
test.env PYTHONPATH=${worksrcpath}/build/lib
xinstall -m 644 -W ${worksrcpath} CHANGELOG.md LICENSE \
README.md ${destroot}${prefix}/share/doc/${subport}
xinstall -m 644 {*}[glob ${worksrcpath}/examples/*] \
${destroot}${prefix}/share/doc/${subport}/examples