Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycurl/
Date: Tue, 03 Nov 2015 10:25:13
Message-Id: 1446546280.53adeabf00399dbfe3fe41cef04490d93cb8268f.jlec@gentoo
1 commit: 53adeabf00399dbfe3fe41cef04490d93cb8268f
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 3 10:20:35 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 3 10:24:40 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53adeabf
7
8 dev-python/pycurl: Verison Bump
9
10 Package-Manager: portage-2.2.23
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/pycurl/Manifest | 1 +
14 dev-python/pycurl/pycurl-7.19.5.2.ebuild | 70 ++++++++++++++++++++++++++++++++
15 2 files changed, 71 insertions(+)
16
17 diff --git a/dev-python/pycurl/Manifest b/dev-python/pycurl/Manifest
18 index 28e772b..a83c1e0 100644
19 --- a/dev-python/pycurl/Manifest
20 +++ b/dev-python/pycurl/Manifest
21 @@ -1,2 +1,3 @@
22 DIST pycurl-7.19.3.1.tar.gz 116687 SHA256 c0d673fe99a9de07239eabe77c798f1b043f60c02afaec1430ceaf59d7501a4f SHA512 65ccb07638c663bc2a723664f1ade50f08eafa70bbcdc492cc99362a91873f453b63336a6b393d9f6591308f1450dadc64ce729b29990f37b170dda0eae0b23f WHIRLPOOL bf25bbb959e30140a261b9bede2e1a3675ec99c8f6c36f8afc8ca73288aa7f7cea6fa1d28385ca808872b251a676aebf8d77d203aed60619dab8852cac17b296
23 DIST pycurl-7.19.5.1.tar.gz 142140 SHA256 6e9770f80459757f73bd71af82fbb29cd398b38388cdf1beab31ea91a331bc6c SHA512 89a474d7285cb040099dc6107a238f326dcb22cdb2c2325139f0d7ebea56f0860869d20b6e8e3bb43882048a261a8ff5734c7fc3e790fde8a96de3fffd04894f WHIRLPOOL 87eac50707acb4d764941e334a490d1c72c28433e8ff72caa7811f23d3f8ab2c6949a25ba8edd0cdacb27e498e60e728745c787a05853f1428ede8d91294a5cc
24 +DIST pycurl-7.19.5.2.tar.gz 153347 SHA256 98cc821555d152977fac99b6e5cb0f759275aabdf14e4928890c6fcc944ab736 SHA512 4f7b8fe59ce9a5597def6356c6af3b23c2fed52e2de022c048d70cd6d3f6e384b0cce8007c656703416284c20d159a0fcb953817e2780ef324ce521349e7041a WHIRLPOOL a42851c36c807349df6c9e33f6e6f0ef8924878d58e9209bfc8d0bdea16c41f81445ac4bc2c75efaea0c77af297149850120ac4d5413fc2622703ef4c3c351c1
25
26 diff --git a/dev-python/pycurl/pycurl-7.19.5.2.ebuild b/dev-python/pycurl/pycurl-7.19.5.2.ebuild
27 new file mode 100644
28 index 0000000..9bc9ff8
29 --- /dev/null
30 +++ b/dev-python/pycurl/pycurl-7.19.5.2.ebuild
31 @@ -0,0 +1,70 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +# The selftests fail with pypy, and urlgrabber segfaults for me.
39 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="python binding for curl/libcurl"
44 +HOMEPAGE="https://github.com/pycurl/pycurl https://pypi.python.org/pypi/pycurl"
45 +SRC_URI="http://pycurl.sourceforge.net/download/${P}.tar.gz"
46 +
47 +LICENSE="LGPL-2.1"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
50 +IUSE="curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl examples ssl test"
51 +
52 +# Depend on a curl with curl_ssl_* USE flags.
53 +# libcurl must not be using an ssl backend we do not support.
54 +# If the libcurl ssl backend changes pycurl should be recompiled.
55 +# If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl
56 +# does not need to initialize gcrypt threading and we do not need to
57 +# explicitly link to libgcrypt.
58 +RDEPEND="
59 + >=net-misc/curl-7.25.0-r1[ssl=]
60 + ssl? (
61 + net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-),-curl_ssl_polarssl(-)]
62 + curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0 )
63 + )"
64 +
65 +# bottle-0.12.7: https://github.com/pycurl/pycurl/issues/180
66 +# bottle-0.12.7: https://github.com/defnull/bottle/commit/f35197e2a18de1672831a70a163fcfd38327a802
67 +DEPEND="${RDEPEND}
68 + test? (
69 + dev-python/nose[${PYTHON_USEDEP}]
70 + >=dev-python/bottle-0.12.7[${PYTHON_USEDEP}]
71 + )"
72 +# Needed for individual runs of testsuite by python impls.
73 +DISTUTILS_IN_SOURCE_BUILD=1
74 +
75 +# https://github.com/pycurl/pycurl/issues/299
76 +RESTRICT=test
77 +
78 +python_prepare_all() {
79 + sed -e "/setup_args\['data_files'\] = /d" -i setup.py || die
80 + distutils-r1_python_prepare_all
81 +}
82 +
83 +python_configure_all() {
84 + # Override faulty detection in setup.py, bug 510974.
85 + export PYCURL_SSL_LIBRARY=${CURL_SSL/libressl/openssl}
86 +}
87 +
88 +python_compile() {
89 + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
90 + distutils-r1_python_compile
91 +}
92 +
93 +python_test() {
94 + emake -j1 do-test
95 +}
96 +
97 +python_install_all() {
98 + local HTML_DOCS=( doc/. )
99 + use examples && local EXAMPLES=( examples/. )
100 + distutils-r1_python_install_all
101 +}