# $Id: Portfile 76953 2011-03-15 03:47:33Z blb@macports.org $

PortSystem          1.0
PortGroup           python26 1.0
name                py26-freebase
epoch               1
version             1.0.8
categories-append   devel
license             BSD
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     f873f6f53668b4df66c8b844c716acf5 \
                    sha1    9f0e398d4f1e21126d5949ccf2bc8172d10065c0 \
                    rmd160  f7ec4ba8c1918c60852724ff79e72e36800658e8

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}

