# $Id: Portfile 67770 2010-05-18 02:01:42Z blb@macports.org $

PortSystem          1.0
PortGroup           python26 1.0
name                py26-freebase
epoch               1
version             1.0.6
categories-append   devel
maintainers         blb openmaintainer
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.

platforms           darwin

homepage            http://code.google.com/p/freebase-python/
master_sites        http://pypi.python.org/packages/source/f/freebase/
distname            freebase-${version}

checksums           md5     d3714cec12df13381690d1771953fe90 \
                    sha1    25b1c3e4811e8a602ac3342f365816a2b3eb5743 \
                    rmd160  6e6339461179436045fb2bb9d04d233c91ff7977

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
      ${destroot}${prefix}/share/examples/${name}
   xinstall -m 644 -W ${worksrcpath} COPYRIGHT README \
      ${destroot}${prefix}/share/doc/${name}
   eval file copy [glob ${worksrcpath}/examples/*] \
      ${destroot}${prefix}/share/examples/${name}
}

livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     {freebase-([.\d]+)\.tar\.gz}

