From: | "Dirkjan Ochtman (djc)" <djc@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/pyopenssl: pyopenssl-0.13.ebuild ChangeLog |
Date: | Mon, 05 Sep 2011 20:58:38 |
Message-Id: | 20110905205828.1ECC02004C@flycatcher.gentoo.org |
1 | djc 11/09/05 20:58:28 |
2 | |
3 | Modified: ChangeLog |
4 | Added: pyopenssl-0.13.ebuild |
5 | Log: |
6 | Version bump pyopenssl to 0.13. |
7 | |
8 | (Portage version: 2.1.10.13/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.84 dev-python/pyopenssl/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopenssl/ChangeLog?rev=1.84&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopenssl/ChangeLog?rev=1.84&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopenssl/ChangeLog?r1=1.83&r2=1.84 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-python/pyopenssl/ChangeLog,v |
20 | retrieving revision 1.83 |
21 | retrieving revision 1.84 |
22 | diff -u -r1.83 -r1.84 |
23 | --- ChangeLog 1 Sep 2011 18:57:27 -0000 1.83 |
24 | +++ ChangeLog 5 Sep 2011 20:58:27 -0000 1.84 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for dev-python/pyopenssl |
27 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopenssl/ChangeLog,v 1.83 2011/09/01 18:57:27 grobian Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopenssl/ChangeLog,v 1.84 2011/09/05 20:58:27 djc Exp $ |
30 | + |
31 | +*pyopenssl-0.13 (05 Sep 2011) |
32 | + |
33 | + 05 Sep 2011; Dirkjan Ochtman <djc@g.o> +pyopenssl-0.13.ebuild: |
34 | + Version bump to 0.13. |
35 | |
36 | 01 Sep 2011; Fabian Groffen <grobian@g.o> pyopenssl-0.12.ebuild: |
37 | Marked ~sparc-solaris and ~x86-interix |
38 | |
39 | |
40 | |
41 | 1.1 dev-python/pyopenssl/pyopenssl-0.13.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopenssl/pyopenssl-0.13.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopenssl/pyopenssl-0.13.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: pyopenssl-0.13.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2011 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/dev-python/pyopenssl/pyopenssl-0.13.ebuild,v 1.1 2011/09/05 20:58:27 djc Exp $ |
51 | |
52 | EAPI="3" |
53 | SUPPORT_PYTHON_ABIS="1" |
54 | RESTRICT_PYTHON_ABIS="*-jython" |
55 | |
56 | inherit distutils eutils |
57 | |
58 | MY_PN="pyOpenSSL" |
59 | MY_P="${MY_PN}-${PV}" |
60 | |
61 | DESCRIPTION="Python interface to the OpenSSL library" |
62 | HOMEPAGE="http://pyopenssl.sourceforge.net/ https://launchpad.net/pyopenssl http://pypi.python.org/pypi/pyOpenSSL" |
63 | SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
64 | |
65 | LICENSE="Apache-2.0" |
66 | SLOT="0" |
67 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris" |
68 | IUSE="doc" |
69 | |
70 | RDEPEND=">=dev-libs/openssl-0.9.6g" |
71 | DEPEND="${RDEPEND} |
72 | doc? ( |
73 | =dev-lang/python-2* |
74 | >=dev-tex/latex2html-2002.2 |
75 | )" |
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 | sed \ |
86 | -e "s/test_set_tlsext_host_name_wrong_args/_&/" \ |
87 | -i OpenSSL/test/test_ssl.py |
88 | sed -e "s/python/&2/" -i doc/Makefile |
89 | } |
90 | |
91 | src_compile() { |
92 | distutils_src_compile |
93 | |
94 | if use doc; then |
95 | addwrite /var/cache/fonts |
96 | |
97 | pushd doc > /dev/null |
98 | emake html ps dvi || die "Generation of documentation failed" |
99 | popd > /dev/null |
100 | fi |
101 | } |
102 | |
103 | src_test() { |
104 | test_package() { |
105 | pushd OpenSSL/test > /dev/null |
106 | |
107 | local return_status="0" test |
108 | for test in test_*.py; do |
109 | einfo "Running ${test}..." |
110 | if ! PYTHONPATH="$(ls -d ../../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" "${test}"; then |
111 | eerror "${test} failed with $(python_get_implementation) $(python_get_version)" |
112 | return_status="1" |
113 | fi |
114 | done |
115 | |
116 | popd > /dev/null |
117 | |
118 | return "${return_status}" |
119 | } |
120 | python_execute_function test_package |
121 | } |
122 | |
123 | src_install() { |
124 | distutils_src_install |
125 | |
126 | delete_tests() { |
127 | rm -fr "${ED}$(python_get_sitedir)/OpenSSL/test" |
128 | } |
129 | python_execute_function -q delete_tests |
130 | |
131 | if use doc; then |
132 | dohtml doc/html/* || die "dohtml failed" |
133 | dodoc doc/pyOpenSSL.* || die "dodoc failed" |
134 | fi |
135 | |
136 | # Install examples |
137 | insinto /usr/share/doc/${PF}/examples |
138 | doins -r examples/* || die "doins failed" |
139 | } |