# -*- 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-freebase
epoch               1
version             1.0.8
revision            1
categories-append   devel
platforms           darwin
license             BSD
maintainers         nomaintainer

description         Python interface to freebase.com API
long_description    Freebase.com has an open API that can be used to \
                    access and update structured data. The RESTful \
                    http-based API is completely documented at \
                    Freebase.com along with some simple examples. This \
                    library provides a python interface to that API.
homepage            https://developers.google.com/freebase

supported_archs     noarch

master_sites        pypi:f/freebase/
distname            freebase-${version}
checksums           md5     f873f6f53668b4df66c8b844c716acf5 \
                    sha1    9f0e398d4f1e21126d5949ccf2bc8172d10065c0 \
                    rmd160  f7ec4ba8c1918c60852724ff79e72e36800658e8

python.versions     27

if {${name} ne ${subport}} {
    post-destroot {
        xinstall -m 0755 -d \
                ${destroot}${prefix}/share/doc/${subport} \
                ${destroot}${prefix}/share/examples/${subport}
        xinstall -m 0644 -W ${worksrcpath} COPYRIGHT README \
                ${destroot}${prefix}/share/doc/${subport}
        copy {*}[glob ${worksrcpath}/examples/*] \
                ${destroot}${prefix}/share/examples/${subport}
   }

   livecheck.type   none
}
