# -*- 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
categories-append net devel
maintainers {yan12125 @yan12125} 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.io/
master_sites https://dl.bintray.com/pycurl/pycurl
distname pycurl-${version}
checksums md5 89311d1b3bb42a5dbb88609fdbdee6de \
rmd160 d6f40fc0f1e3f69bead2c2b9daf71a7195635f2c \
sha256 0f0cdfc7a92d4f2a5c44226162434e34f7d6967d3af416a6f1448649c09a25a4 \
if {${name} ne ${subport}} {
port:py${python.version}-bottle \
port:py${python.version}-flaky \
port:py${python.version}-nose \
port:py${python.version}-pyflakes \
depends_lib-append port:curl
patch-allow-disable-tests.diff \
patch-fix-fake-curl.diff \
patch-no-nose-show-skipped.diff \
patch-allow-unknown-ssl-backend.diff
reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/tests/fake-curl/libcurl/Makefile
build.args --curl-config=${prefix}/bin/curl-config
file delete {*}[glob ${worksrcpath}/tests/fake-curl/libcurl/*.so]
# Required variants for curl: +http2+gss+sftp_scp
system -W ${worksrcpath} "extra_attrs=',\!http2,\!gssapi,\!ssh' make do-test PYTHON=${python.bin} NOSETESTS=nosetests-${python.branch} PYFLAKES=pyflakes-${python.branch}"
destroot.args ${build.args}