# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem        1.0
PortGroup         python25 1.0

name              py25-curl
version           7.19.0
categories        python net devel
platforms         darwin
maintainers       ram openmaintainer

description	      python interface to libcurl
long_description  Python module interface to the cURL library which is \
  a tool for transferring files with URL syntax, supporting many \
  protocols.

homepage          http://pycurl.sourceforge.net/
master_sites      ${homepage}/download
distname          pycurl-${version}

checksums         md5 919d58fe37e69fe87ce4534d8b6a1c7b \
                  sha1 3fb59eca1461331bb9e9e8d6fe3b23eda961a416 \
                  rmd160 dab547b3db67ed30cafb556a1a383f567064de49

depends_lib-append  port:curl

build.args        --curl-config=${prefix}/bin/curl-config

test.run          yes
test.target
test.env          PYTHONPATH=./build/lib*
test.cmd          ${python.bin} tests/test_internals.py tests/test_memleak.py

destroot.args     ${build.args}

post-destroot {
  system "cd ${destroot}${prefix}/share/doc && mv pycurl ${name}"
}

livecheck.type    regex
livecheck.url	    ${homepage}
livecheck.regex   PYCURL (\[0-9\\.\]+)
