Files
2020-12-03 12:50:44 -08:00

64 lines
1.9 KiB
Tcl

# -*- 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
PortSystem 1.0
PortGroup github 1.0
PortGroup python 1.0
name py-curl
version 7.43.0.6
revision 0
categories-append net devel
platforms darwin
license {MIT LGPL}
maintainers nomaintainer
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.io/
checksums rmd160 4846e373c848930b2a0c17e6aa7d5e3ee2323a95 \
sha256 1c37a37f1ea5b422bb8b1b524f565ac927d23b7afad65ae13a7ebf7f65d7ab6c \
size 217856
python.versions 27 37 38 39
if {${name} ne ${subport}} {
if {${python.version} == 27} {
version 7.43.0.3
revision 1
checksums rmd160 6891ba8ee4d79fd5a10e824db47b9083309306b3 \
sha256 553047902a738cc2e6b1cd42783a9d0992e47086773be30027a71e1293493c39 \
size 208879
}
github.setup pycurl pycurl [string map {. _} ${version}] REL_
github.tarball_from archive
# github.setup sets the version, set it back
version [string map {_ .} ${github.version}]
worksrcdir ${github.project}-${git.branch}
depends_lib-append port:curl \
path:lib/libssl.dylib:openssl
pre-build {
system -W ${build.dir} "${python.bin} setup.py docstrings"
}
build.args --curl-config=${prefix}/bin/curl-config
destroot.args ${build.args}
livecheck.type none
} else {
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex PYCURL (\[0-9\.\]+)
livecheck.version ${version}
}