diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pycurl |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pycurl')
-rw-r--r-- | dev-python/pycurl/Manifest | 5 | ||||
-rw-r--r-- | dev-python/pycurl/metadata.xml | 22 | ||||
-rw-r--r-- | dev-python/pycurl/pycurl-7.43.0.ebuild | 74 |
3 files changed, 101 insertions, 0 deletions
diff --git a/dev-python/pycurl/Manifest b/dev-python/pycurl/Manifest new file mode 100644 index 000000000000..42c7df324155 --- /dev/null +++ b/dev-python/pycurl/Manifest @@ -0,0 +1,5 @@ +DIST pycurl-7.43.0.tar.gz 182522 SHA256 aa975c19b79b6aa6c0518c0cc2ae33528900478f0b500531dbcdbf05beec584c SHA512 7442462c74c19964b9d72976e9b92bf68bb37debc1401bc399590bea42704065da13d6de710e795eeae79a4651b9a08841d50454243cb0994c7eb1c1bab233a5 WHIRLPOOL 640ef7669273bccdf72f0d98bd5f5c9d882f35ac507d2152f8ab1e2e680298ebe2691b4960713bb39b0a405ba8d0e9a03d69617c5150bb65581efaab99304185 +EBUILD pycurl-7.43.0.ebuild 2530 SHA256 cecdf764667194e7049ff9d7b6fa29735fafe5ca4a48a273b141c643b3dafc88 SHA512 ddaeea8d25f1ae448e99c0774b04a188031f5a05a7367269998fb6b9d0723f6aeebb3e910fc3df8a4d0451de95d1ace69d0543fb6f3d1f51cf8d1cfd326ef3b6 WHIRLPOOL 2c1c8149b2c84339e67cacfe9592595e61ed037dcfe5b063d81b0f6aa636e47718c1ef035d9bfc2871ac66a75b05e570c02e751445e3204f1e0f938e5e6dd4e9 +MISC ChangeLog 6180 SHA256 2d940d3fd52cec26cc04883a7db1bda12ccbf1cb2aba14f9354bec6d067e5251 SHA512 212e6cd7b29b0684ee88e8e740e3c7498fdc879e7cc61e0992d4f6931da6ab80eea888d02a6a6d6656199534b73808c22864236185863ecd9202f320ea8af135 WHIRLPOOL a3e633b9254aaaad3a89d6efce401c3d55b29ab2a8bb73ce3866d13d74e8f9f1791ea1486602f4c0b88792fde6b2b24d2a230613a01e82ae774cc4f8e98c9311 +MISC ChangeLog-2015 16059 SHA256 f0178ac97446c63a65ed8ea8bd91ba6dd5c0cce025266daa6f656f1991dbfeb3 SHA512 4bfde762cb3dd9dcef43a7bbf6190f5d64f79efbafa7e50e7e0a25ab485c29a53714eaeccd98f95eb4e2557b5705fd6cabb7b4e505419ff5aa18e5c1e6e72073 WHIRLPOOL ac212560e6a7cc9d5ddafdd122b7bbb3b3554e2d853eefe642edc2f30e601de55823552f2646a4abf6440e3a9c5bb709652911f8b980c997bf4d80dcf16d37e0 +MISC metadata.xml 1099 SHA256 c94e2805d24dea4d951d2e3b2897d7c5ec3838851a6f5a3b83f93095350e4237 SHA512 8f8b3a10d2f72aa67d1b5f7462ea62803d9150cab3d96792adbd65b379a45c074d68809b25d4a2b558bf28dae72e095c598bd0485fce4c5dafba0784de517a6c WHIRLPOOL d78e56c47e5aa648fc566c88b3bbb0c7c22cee467cfe27e5d322320995e0abbc2c92bc25c86c7fcb737564ddbacbcea3612ddc5e77fb0b0d78f2bdf808472e17 diff --git a/dev-python/pycurl/metadata.xml b/dev-python/pycurl/metadata.xml new file mode 100644 index 000000000000..7ba6d7c3aadd --- /dev/null +++ b/dev-python/pycurl/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription> +PycURL is a Python interface to libcurl. PycURL can be used to fetch +objects identified by a URL from a Python program, similar to the urllib +Python module. All the functionality provided by libcurl can used through +the pycurl interface. + </longdescription> + <longdescription lang="ja"> +PycURLはLibcurlへのパイソン・インターフェイスです。PycURLはPython言語モジュールの様に、Python言語プログラムからURLで指定されたオブジェクトをダウンロードするにも使えます。Libcurlで利用できる機能全てはPycURLインターフェイスを通して利用できます。 + </longdescription> + <upstream> + <remote-id type="github">pycurl/pycurl</remote-id> + <remote-id type="sourceforge">pycurl</remote-id> + <remote-id type="pypi">pycurl</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pycurl/pycurl-7.43.0.ebuild b/dev-python/pycurl/pycurl-7.43.0.ebuild new file mode 100644 index 000000000000..ff1de840b0f7 --- /dev/null +++ b/dev-python/pycurl/pycurl-7.43.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# The selftests fail with pypy, and urlgrabber segfaults for me. +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="python binding for curl/libcurl" +HOMEPAGE=" + https://github.com/pycurl/pycurl + https://pypi.python.org/pypi/pycurl + http://pycurl.io/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl examples ssl test" + +# Depend on a curl with curl_ssl_* USE flags. +# libcurl must not be using an ssl backend we do not support. +# If the libcurl ssl backend changes pycurl should be recompiled. +# If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl +# does not need to initialize gcrypt threading and we do not need to +# explicitly link to libgcrypt. +RDEPEND=" + >=net-misc/curl-7.25.0-r1[ssl=] + ssl? ( + net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)] + curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0 ) + )" + +# bottle-0.12.7: https://github.com/pycurl/pycurl/issues/180 +# bottle-0.12.7: https://github.com/defnull/bottle/commit/f35197e2a18de1672831a70a163fcfd38327a802 +DEPEND="${RDEPEND} + test? ( + dev-python/bottle[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/nose-show-skipped[${PYTHON_USEDEP}] + net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-),kerberos] + >=dev-python/bottle-0.12.7[${PYTHON_USEDEP}] + )" +# Needed for individual runs of testsuite by python impls. +DISTUTILS_IN_SOURCE_BUILD=1 + +python_prepare_all() { + sed -e "/setup_args\['data_files'\] = /d" -i setup.py || die + sed -e '/pyflakes/d' -i Makefile || die + distutils-r1_python_prepare_all +} + +python_configure_all() { + # Override faulty detection in setup.py, bug 510974. + export PYCURL_SSL_LIBRARY=${CURL_SSL/libressl/openssl} +} + +python_compile() { + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_test() { + emake -j1 do-test +} + +python_install_all() { + local HTML_DOCS=( doc/. ) + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install_all +} |