# -*- 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
# $Id: Portfile 119035 2014-04-15 18:45:42Z macsforever2000@macports.org $

PortSystem          1.0
PortGroup python    1.0
PortGroup github    1.0

github.setup        RDFLib rdflib 4.1.1
name                py-rdflib

categories-append   textproc
license             BSD
platforms           darwin
maintainers         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://code.google.com/p/rdflib/
distname            rdflib-${version}

checksums           md5     8fed08d5eba84334da9834bf8491b122 \
                    rmd160  af030ab3b1405fa3b46098107a2c5561c80f8b1d \
                    sha256  54b17ab073daefd02a7173d85cb7ea915010d05a1fb2351956e1ccca644228c1

python.versions     25 26 27 32 33

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

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

    post-destroot {
        xinstall -m 644 -W ${worksrcpath} CHANGELOG.md LICENSE \
            README.md ${destroot}${prefix}/share/doc/${subport}
        eval xinstall -m 644 [glob ${worksrcpath}/examples/*] \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
    livecheck.type  none
} else {
    livecheck.type  googlecode
}
