From: | "Dirkjan Ochtman (djc)" <djc@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/pyopenssl: ChangeLog pyopenssl-0.11.ebuild |
Date: | Tue, 02 Nov 2010 08:42:48 |
Message-Id: | 20101102084243.5681220051@flycatcher.gentoo.org |
1 | djc 10/11/02 08:42:43 |
2 | |
3 | Modified: ChangeLog |
4 | Added: pyopenssl-0.11.ebuild |
5 | Log: |
6 | Version bump pyOpenSSL to 0.11. |
7 | |
8 | (Portage version: 2.1.9.24/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.63 dev-python/pyopenssl/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopenssl/ChangeLog?rev=1.63&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopenssl/ChangeLog?rev=1.63&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopenssl/ChangeLog?r1=1.62&r2=1.63 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-python/pyopenssl/ChangeLog,v |
20 | retrieving revision 1.62 |
21 | retrieving revision 1.63 |
22 | diff -u -r1.62 -r1.63 |
23 | --- ChangeLog 28 Sep 2010 22:16:43 -0000 1.62 |
24 | +++ ChangeLog 2 Nov 2010 08:42:43 -0000 1.63 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for dev-python/pyopenssl |
27 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopenssl/ChangeLog,v 1.62 2010/09/28 22:16:43 arfrever Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopenssl/ChangeLog,v 1.63 2010/11/02 08:42:43 djc Exp $ |
30 | + |
31 | +*pyopenssl-0.11 (02 Nov 2010) |
32 | + |
33 | + 02 Nov 2010; Dirkjan Ochtman <djc@g.o> +pyopenssl-0.11.ebuild, |
34 | + +files/pyopenssl-0.11-openssl-1.patch: |
35 | + Version bump to 0.11. |
36 | |
37 | 28 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
38 | pyopenssl-0.10-r1.ebuild: |
39 | |
40 | |
41 | |
42 | 1.1 dev-python/pyopenssl/pyopenssl-0.11.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopenssl/pyopenssl-0.11.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopenssl/pyopenssl-0.11.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: pyopenssl-0.11.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2010 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/dev-python/pyopenssl/pyopenssl-0.11.ebuild,v 1.1 2010/11/02 08:42:43 djc Exp $ |
52 | |
53 | EAPI="3" |
54 | PYTHON_DEPEND="2" |
55 | SUPPORT_PYTHON_ABIS="1" |
56 | RESTRICT_PYTHON_ABIS="3.*" |
57 | |
58 | inherit distutils eutils |
59 | |
60 | MY_PN="pyOpenSSL" |
61 | MY_P="${MY_PN}-${PV}" |
62 | |
63 | DESCRIPTION="Python interface to the OpenSSL library" |
64 | HOMEPAGE="http://pyopenssl.sourceforge.net/ http://pypi.python.org/pypi/pyOpenSSL" |
65 | SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz |
66 | http://launchpad.net/${PN}/main/${PV}/+download/${MY_P}.tar.gz" |
67 | |
68 | LICENSE="LGPL-2.1" |
69 | SLOT="0" |
70 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" |
71 | IUSE="doc" |
72 | |
73 | RDEPEND=">=dev-libs/openssl-0.9.6g" |
74 | DEPEND="${RDEPEND} |
75 | doc? ( >=dev-tex/latex2html-2002.2 )" |
76 | |
77 | S="${WORKDIR}/${MY_P}" |
78 | |
79 | PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") |
80 | |
81 | PYTHON_MODNAME="OpenSSL" |
82 | |
83 | src_prepare() { |
84 | distutils_src_prepare |
85 | epatch "${FILESDIR}/${P}-openssl-1.patch" |
86 | |
87 | # Disable tests failing with OpenSSL >=1.0.0. |
88 | sed \ |
89 | -e "s/test_dump_privatekey/_&/" \ |
90 | -e "s/test_export_without_args/_&/" \ |
91 | -e "s/test_export_without_mac/_&/" \ |
92 | -e "s/test_friendly_name/_&/" \ |
93 | -e "s/test_load_pkcs12/_&/" \ |
94 | -e "s/test_various_empty_passphrases/_&/" \ |
95 | -e "s/test_zero_len_list_for_ca/_&/" \ |
96 | -e "s/test_subject_name_hash/_&/" \ |
97 | -i OpenSSL/test/test_crypto.py |
98 | sed -e "s/test_load_verify_directory/_&/" -i OpenSSL/test/test_ssl.py |
99 | } |
100 | |
101 | src_compile() { |
102 | distutils_src_compile |
103 | |
104 | if use doc; then |
105 | addwrite /var/cache/fonts |
106 | # This one seems to be unnecessary with a recent tetex, but |
107 | # according to bugs it was definitely necessary in the past, |
108 | # so leaving it in. |
109 | addwrite /usr/share/texmf/fonts/pk |
110 | |
111 | cd doc |
112 | make html ps dvi |
113 | fi |
114 | } |
115 | |
116 | src_test() { |
117 | test_package() { |
118 | pushd OpenSSL/test > /dev/null |
119 | |
120 | local return_status="0" test |
121 | for test in test_*.py; do |
122 | einfo "Running ${test}..." |
123 | if ! PYTHONPATH="$(ls -d ../../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" "${test}"; then |
124 | eerror "${test} failed with $(python_get_implementation) $(python_get_version)" |
125 | return_status="1" |
126 | fi |
127 | done |
128 | |
129 | popd > /dev/null |
130 | |
131 | return "${return_status}" |
132 | } |
133 | python_execute_function test_package |
134 | } |
135 | |
136 | src_install() { |
137 | distutils_src_install |
138 | |
139 | delete_tests() { |
140 | rm -fr "${ED}$(python_get_sitedir)/OpenSSL/test" |
141 | } |
142 | python_execute_function -q delete_tests |
143 | |
144 | if use doc; then |
145 | dohtml doc/html/* |
146 | dodoc doc/pyOpenSSL.* |
147 | fi |
148 | |
149 | # Install examples |
150 | docinto examples |
151 | dodoc examples/* |
152 | docinto examples/simple |
153 | dodoc examples/simple/* |
154 | } |