# $Id: Portfile 58334 2009-09-26 21:16:02Z blb@macports.org $

PortSystem          1.0
PortGroup           python25 1.0
name                py25-freebase
version             1.01
categories-append   devel
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.

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     4584647a334be3547704c0e8fdce69ea \
                    sha1    fd62d819bca96ee3daa43da0b7bd2c3eb3e80551 \
                    rmd160  4f5d937e8e35fc8a46f73a02d3355f6aee7d20f2

depends_lib-append  port:py25-simplejson

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} README \
      ${destroot}${prefix}/share/doc/${name}
   foreach binfile {fb_restore fb_save_base fb_save_type fcl} {
      move ${destroot}${prefix}/bin/${binfile} ${destroot}${prefix}/bin/${binfile}-${python.branch}
   }
}

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

