# $Id: Portfile 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-rdflib
version			2.4.2
categories-append	textproc
license			BSD
platforms		darwin
maintainers		mnick eikeon.com:eikeon openmaintainer
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		http://rdflib.net/
master_sites	${homepage}
distname		rdflib-${version}
checksums		md5    921390cacfebf97384bd5ac33c38d327 \
				sha1   95d72c3db0b2c6b71048aa7ab36f6a7da35a2aee \
				rmd160 2f6d93cc0eaef3d6d3c32fc85039faea78438c49

python.versions	24 25 26

if {$subport != $name} {
    depends_lib-append	port:py${python.version}-setuptools

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

    post-destroot {
        xinstall -m 644 -W ${worksrcpath} CHANGELOG LICENSE \
            README ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 ${worksrcpath}/examples/example.py \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
    livecheck.type	none
} else {
    livecheck.type regex
    livecheck.regex <p>Get the latest vere?sion <a href=\"http://rdflib.net/rdflib-(.*).tar.gz\">
}
