/[gentoo-x86]/dev-python/pycurl/pycurl-7.19.0-r1.ebuild
Gentoo

Contents of /dev-python/pycurl/pycurl-7.19.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Wed Aug 1 19:34:33 2012 UTC (2 years, 4 months ago) by ulm
Branch: MAIN
Changes since 1.2: +2 -2 lines
Add ~amd64-fbsd keyword, with permission from ryao.

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 marienz 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ulm 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-python/pycurl/pycurl-7.19.0-r1.ebuild,v 1.2 2012/06/14 17:33:31 marienz Exp $
4 marienz 1.1
5     EAPI="4"
6     PYTHON_DEPEND="2"
7     SUPPORT_PYTHON_ABIS="1"
8     # The selftests fail with pypy, and urlgrabber segfaults for me.
9     RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*"
10    
11     inherit distutils eutils
12    
13     DESCRIPTION="python binding for curl/libcurl"
14     HOMEPAGE="http://pycurl.sourceforge.net/ http://pypi.python.org/pypi/pycurl"
15     SRC_URI="http://pycurl.sourceforge.net/download/${P}.tar.gz"
16    
17     LICENSE="LGPL-2.1"
18     SLOT="0"
19 ulm 1.3 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
20 marienz 1.2 IUSE="curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl examples ssl"
21 marienz 1.1
22     # Depend on a curl with curl_ssl_* USE flags.
23     # libcurl must not be using an ssl backend we do not support.
24     # If the libcurl ssl backend changes pycurl should be recompiled.
25     # If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl
26     # does not need to initialize gcrypt threading and we do not need to
27     # explicitly link to libgcrypt.
28 marienz 1.2 DEPEND=">=net-misc/curl-7.25.0-r1[ssl=]
29     ssl? (
30     net-misc/curl[curl_ssl_gnutls=,curl_ssl_nss=,curl_ssl_openssl=,-curl_ssl_axtls,-curl_ssl_cyassl,-curl_ssl_polarssl]
31     curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0 )
32     )"
33 marienz 1.1 RDEPEND="${DEPEND}"
34    
35     PYTHON_MODNAME="curl"
36    
37     src_prepare() {
38     distutils_src_prepare
39     epatch "${FILESDIR}/${P}-linking-v2.patch"
40     }
41    
42     src_test() {
43     testing() {
44     PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" tests/test_internals.py -q
45     }
46     python_execute_function testing
47     }
48    
49     src_install() {
50     sed -e "/data_files=/d" -i setup.py || die "sed in setup.py failed"
51    
52     distutils_src_install
53    
54     dohtml -r doc/*
55    
56     if use examples; then
57     insinto /usr/share/doc/${PF}
58     doins -r examples tests
59     fi
60     }

  ViewVC Help
Powered by ViewVC 1.1.20