source: trunk/dports/python/py-curl/Portfile

Last change on this file was 138329, checked in by devans@…, 2 years ago

py-curl: increment revision to remove references to libidn after r138124.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- 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
2# $Id: Portfile 138329 2015-07-05 20:44:12Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-curl
8version             7.19.0
9revision            1
10categories-append   net devel
11platforms           darwin
12license             {MIT LGPL}
13maintainers         nomaintainer
14
15description         python interface to libcurl
16long_description    Python module interface to the cURL library which \
17                    is a tool for transferring files with URL syntax, \
18                    supporting many protocols.
19homepage            http://pycurl.sourceforge.net/
20
21master_sites        ${homepage}/download
22distname            pycurl-${version}
23checksums           md5     919d58fe37e69fe87ce4534d8b6a1c7b \
24                    sha1    3fb59eca1461331bb9e9e8d6fe3b23eda961a416 \
25                    rmd160  dab547b3db67ed30cafb556a1a383f567064de49
26
27python.versions     26 27
28
29if {${name} ne ${subport}} {
30    depends_lib-append  port:curl
31
32    build.args      --curl-config=${prefix}/bin/curl-config
33
34    test.run        yes
35    test.target
36    test.env        PYTHONPATH=./build/lib*
37    test.cmd        ${python.bin} tests/test_internals.py tests/test_memleak.py
38
39    destroot.args   ${build.args}
40
41    if {${python.version} <= 25} {
42        post-destroot {
43            file delete -force ${destroot}${prefix}/share/doc/${subport}
44            file rename ${destroot}${prefix}/share/doc/pycurl \
45                ${destroot}${prefix}/share/doc/${subport}
46        }
47    }
48
49    livecheck.type  none
50} else {
51    livecheck.type  regex
52    livecheck.url   ${homepage}
53    livecheck.regex PYCURL (\[0-9\.\]+)
54}
Note: See TracBrowser for help on using the repository browser.