summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2014-03-06 10:26:54 +0000
committerJustin Lecher <jlec@gentoo.org>2014-03-06 10:26:54 +0000
commitaed05cf637d3b756c0918fe181e1eb9fe0ca0d8f (patch)
tree750a261050d6e07041b9f7541e58e4860830fbfe /net-im
parentStable for ppc64, wrt bug #502602 (diff)
downloadhistorical-aed05cf637d3b756c0918fe181e1eb9fe0ca0d8f.tar.gz
historical-aed05cf637d3b756c0918fe181e1eb9fe0ca0d8f.tar.bz2
historical-aed05cf637d3b756c0918fe181e1eb9fe0ca0d8f.zip
net-im/gajim: Backport fixes for latest pyopenssl, #503190
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0xB9D4F231BD1558AB!
Diffstat (limited to 'net-im')
-rw-r--r--net-im/gajim/ChangeLog9
-rw-r--r--net-im/gajim/Manifest25
-rw-r--r--net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-1.patch40
-rw-r--r--net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-2.patch40
-rw-r--r--net-im/gajim/gajim-0.16_beta2-r1.ebuild127
5 files changed, 235 insertions, 6 deletions
diff --git a/net-im/gajim/ChangeLog b/net-im/gajim/ChangeLog
index 260198556202..dd02f513875a 100644
--- a/net-im/gajim/ChangeLog
+++ b/net-im/gajim/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-im/gajim
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/ChangeLog,v 1.192 2014/02/19 01:12:27 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/ChangeLog,v 1.193 2014/03/06 10:26:53 jlec Exp $
+
+*gajim-0.16_beta2-r1 (06 Mar 2014)
+
+ 06 Mar 2014; Justin Lecher <jlec@gentoo.org> +gajim-0.16_beta2-r1.ebuild,
+ +files/gajim-0.16_beta2-pyopenssl-backport-1.patch,
+ +files/gajim-0.16_beta2-pyopenssl-backport-2.patch:
+ Backport fixes for latest pyopenssl, #503190
19 Feb 2014; Jeroen Roovers <jer@gentoo.org> gajim-0.15.3-r1.ebuild,
gajim-0.15.4.ebuild, gajim-0.16_beta1.ebuild, gajim-0.16_beta2.ebuild:
diff --git a/net-im/gajim/Manifest b/net-im/gajim/Manifest
index 31a9ce5c02a0..ef9e34b8ce04 100644
--- a/net-im/gajim/Manifest
+++ b/net-im/gajim/Manifest
@@ -1,5 +1,5 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
+Hash: SHA512
AUX 0.14-python-version.patch 316 SHA256 b4aba8ebc6241442f9eb1c335ba22c2eb5a3b3a24533cb2f944f3f812e06b687 SHA512 e7fc69f87b3106e171bc8c9db786217e1c903c5e82d2b60035f00203e32b17f73be17e64f1d013afd32ce280c53c32af2c46a6c9f33d25e9cf52db6dfb7ece3e WHIRLPOOL 107ac113d5ae3645155ba9eb1e215eb0d9750e2e440976ab0a3da28da1526b408eb37eeafe74e3a0a1bae79a1af5af724fe2ec9a6d7a044392d0b236479efc92
AUX 0.14.1-testing.patch 237 SHA256 128da6d0a8ae48132df78f9027dc5ef5d8167e561fe12b1d774c628a5fc33638 SHA512 8c6df58972e22886599f99e1b9d59b088a155dcf1c5ccdff9002d8fd4a12a9ec2d38dc62f30f191342190200c0aebb60a19f2cbf1b2073449ad61bdd0adff6d5 WHIRLPOOL 5fc62c7beadb6c2bd39d2c966ab7bfd9ef857d799f0c06d80a9cece681f8d9bfc19657c8a7463d9743bff61708a8795e01b55d28a794b7d5a812670fa8430f70
@@ -11,6 +11,8 @@ AUX gajim-0.15-plugin.patch 383 SHA256 6003e53ca42b3efda9f132fd9253e5577f128ae59
AUX gajim-0.15.2-CVE-2012-5524.patch 2607 SHA256 9641f4497008fc965522d9114712fe4be5d7cbaec289c74dc038d93a5ee7ce92 SHA512 7751060ecc45b54a2ba00c9fd7e26e36324a6f5095be791ed222a4b75b130eb76fe15448fe98184599e26f23f3bd1e84c93154c3c042ea03606db736e5bbd6d1 WHIRLPOOL 2bb832e01e2963d0941ba3bc4531cc25ea11b9a757950d565dc3c810f271a2f8112a91cb543b90891dc8ae9c3e94543652f3f065e004216870f3a2a1a5b6f758
AUX gajim-0.15.3-roster.patch 1450 SHA256 ffbbbfbc6198fff03a566d69f2e6872898dd87df6598dea380e1642e34aba768 SHA512 4b229b8ee655856b24205cd2a23f86ff32212d869abef07abf6b410f30ad11fc84f9d6d4222cde6c58e761cc11f1cbf2787f088198e8310683334543723d944a WHIRLPOOL a00d5abf54a86543c2e2af35d441dc3aa0c38e0e569677128cd20da1f778aa445f487668d2f9bdfe0f558190cf27786bbc7fa2c807b10273c38975ebd6e8a293
AUX gajim-0.15.3-starttls.patch 502 SHA256 24a7d4c15be003daa8a10f26730eec27ce75c0e8d0d727c5f5d8c1b7f7305be6 SHA512 5ac3b926d971eb37898a241af7e2b77189ed7874a144d3bb9955ed09f7c1e6f5373e04f94dbaac337903622ebc5825428018e3c2843cafd3e8ba9e50c0bba0f5 WHIRLPOOL 3e84c618d56e19750062e752f67ada26c260b51cc4f2bb749ec5516b5e53be18b1d4627c174ad35ac084f19bc1bad6b2d4bbec6124b40d4fc24d87398770fd7d
+AUX gajim-0.16_beta2-pyopenssl-backport-1.patch 1623 SHA256 47991437de8e6f105533360a6bba8c1f35b5175e811941ff83b956e5c8970eae SHA512 771087b9eb695d07d89d5f9f6a80fa576ffbbacdd11d5b480c77e6f4a619c1e59d32ef5f5b99c69bdc45b748689d2ad0b73b21675df4b0728f60fabda5cbcb8f WHIRLPOOL 6285da2a8cdc7dc38e902fc3bf4445ab5cfc68afdc2e8a51ea2be9771ad24763f9a31a1a6212dcd3faf1b690c644829c0801526509e05b9a88920ee07efdf7e3
+AUX gajim-0.16_beta2-pyopenssl-backport-2.patch 1758 SHA256 f0cf25a15a908e28eacbd569a5198d2994d20bc5642bc519c17dc04efc8158fb SHA512 29980e307b969e717bfdc2b1263fec6c4a56fef947bc70a36ebdf21e229d7ae85a043f1499fcdcde7bff1050cc33938613b1a4fa4c694605c651413ffa3cffcf WHIRLPOOL 03e5359ca4f47c09f89c07eb6d7b5ad0b7af4651391a217c5220bb8b0de12eed27042c20ffb713c8c7e2b59a155d2a1de3676c60e3360aaaed9e589fc01cb05c
DIST gajim-0.15.3.tar.bz2 4473787 SHA256 4848e98b25b523e28014528a8b89289bf987d5ce9419dd78ccff74a35aa583f4 SHA512 2315a281945b31a0fcfea0892fcdea72b79b4b85f75f4a810fb2d1530585c3325648562d546c3aa26e36f3153da1c96bc7123b255fca691e8d22e02a457b5049 WHIRLPOOL e5efed228b4c9704c00deb0fd68e6601a69a04ca7e18ee9348e729609eb87bf034f5fe23259b50806b7a6002f5155765562772077cfc4c8f430a7a9599e6800a
DIST gajim-0.15.4.tar.bz2 4473874 SHA256 27acfecf40e2da55e8f7ec5d653acaf0914376f2d42766af27963c008bee4dc0 SHA512 f1f316aa11531dc37f97b2d06fd3e3e4a4d9187de0e0b3fa468283e88e16ee6372d6c49c57dd7bd8b51809e7d3130aee88a178bb64bf29349b27450224c0840e WHIRLPOOL a12c467f7a62f097c2ec64c31f8d336f5d7c7851d36716dffcb1998d1895de385a6b567931abe94eef2e53418122e3a482e3200650893cc1cbd4b0f1fc9db238
DIST gajim-0.16-beta1.tar.bz2 4617116 SHA256 c51746c5456b03b95dbea9a56d961b447b1c75d603979314355df360265b6cb2 SHA512 ce2317f460b3bf1bef91f0c29bc4da715c0c59680f59a2367f0ee6b93d160e47917bb28beaac0f7c02d51868d2040e8c7ed2447b509ca05eb4429d3eaf4b857a WHIRLPOOL f70c26a1337a306ffdf616edf06cc10e94a8442df14b2cf1b65827182960937dfe37a510a702cb1942298818e82cbd1abd79ac7c180826eca82e132abcb4229d
@@ -18,13 +20,26 @@ DIST gajim-0.16-beta2.tar.bz2 4648729 SHA256 2c88b7682b41d25cac7ccbe71a22be8968d
EBUILD gajim-0.15.3-r1.ebuild 2897 SHA256 4bc276b5e46403712aeb95b4f9a0a1dbddf4aa1c24e15fa7df3788e7df5a6f7d SHA512 9f9bfee597b498710c0b64035b5222881d829827bfca5d022052ce46fd8e814e9a81952249bd3e6abe6288c52ea97f4ef71e303712c0b89d0a1ac8d7118fe8a7 WHIRLPOOL c94cf61e62bb5ab0c0fb3eb7d3daea2e2a7210b6da10bc4733bc5d65b804773296c0d73f9bcb2ae57975e04a245f1ffb145d1a00a853f49673a97d8fb615a837
EBUILD gajim-0.15.4.ebuild 2935 SHA256 dbdcc70bcca38b13c210e8ced601fd5ef592f532dbac18a447cbeaeabf398391 SHA512 cbfc57685e0367bd946d15c907854fa293bdda096eef1f8328596a535dba64a20023da5451303055c5f4c984ae69d0381ee1abed1f344a6920ecb1db032cb5d5 WHIRLPOOL 96d490d373d685f245f483d7772ce25f9f4365f6887e98f03d0c88645f3cb48c2aa8a00ab6b4d951e9d27c972b340a84bf1fa9508f1043d9e033c6a7762d6961
EBUILD gajim-0.16_beta1.ebuild 2899 SHA256 c9fefc4346d51f0506639d25a70d6d8a1eb23a129f7c71015df72ecf11efda85 SHA512 1a3f8a4a389bf8534c499be50b1e6af92822292d205d932de773e695a346ec8101e21186d3f3ec43af1682e29eba48ab4487c8c234ae31c6bfe962a57742e11e WHIRLPOOL 2e02476815b8f7f2023af7018b396c69300e58cd78d6a019863041e6ae3e2f744bb42d4a897fe678afa300ac9f41e530fa15197f7518e5c9e2b9bbe1776b223f
+EBUILD gajim-0.16_beta2-r1.ebuild 3007 SHA256 315d106bde11d37b548a10eef682cc2e818bedb6f1108818af0a654d19fc507f SHA512 73adf89846d8dcab00bd6acf0a99cdd276815ef5d84984bdb674b2feeb74ef307bdbe711ae8a70b60f4e5dc0c42eac04552394c11086a6d309b9e9355ebdb13e WHIRLPOOL 06b4c24bcd6277cb82cf2ef490807d45e13ee2fbbeef7c3201cca52a8d1e95b1171ff21531108c4c43d6018539210f4f614733146367ac56829183736ea64d7f
EBUILD gajim-0.16_beta2.ebuild 2894 SHA256 dc0108cd6a80ad91e8b846d37dca0b3df7963bbdfad53b82ae3805d91b7efdf3 SHA512 f5c3ba8ff611141053b85b5bdb97b252d05943275832a0a2fe705ef94c977d4467a9910d3a13d4be418747f27985567e36ea7977aed87ab9cdae997d7ce38516 WHIRLPOOL c6f9b23b4065ba73d8ae83e07ad1d428b0b8481ab5c12d85a1f615fe217b91fb42fc4b433e35e5df75c23bec2bdcd834caf8c179111b6a721d30de915ed0d2b7
-MISC ChangeLog 27752 SHA256 9364fc2ddb398b838aedb9dd384d854597f3e5cb019b350e81dcfe953605f936 SHA512 3206d62b508792c42b24b2b7fbee12f306fa2b457e71069cc8a8eec07177e010428013b06aa11230aff350f90f22c0ea118f964393be3a6689903c6c0a1f4940 WHIRLPOOL ecf88a506e85d886d90784292352ac04810e80225e94ac4c2f977e8ba3289e3a4bd6ae8bbf738345adc3c2c0b0a509edf90dbcd2711d045223ef3323df0514b4
+MISC ChangeLog 28021 SHA256 2ed8b435352c896c5f2f72368cc8a5901d505fa6f8fc6ffad18d857ce82543a1 SHA512 5d67f5bb0a5088b54282cd5bacb07e5db90ab583becac8b8a1d00e9027fa6dd23dc2df4e30fb6ea78bb040a7b7afbce2f2ec06f9895b1bb2414455db6f2dd6f1 WHIRLPOOL a452a3df32fd833526250cdf121372a0580a4379485286bf5464195e189b0b389548181ba2c1cf7fb0d80329ea27c49f4087c788fcfdb285ef46b42f3b8c4e7a
MISC metadata.xml 503 SHA256 781012e83e7e3d1480ed6413a58f8a294e3a1b4c4968b1217c9bf7b41cca3ae5 SHA512 cfc7f159daf5007962ea035289002df56575042d567aa36c495b95dcf7ca7bb931be622599537e9ea67c25b7cb75014acf38a13bda349218af7a5eb576ebb0a4 WHIRLPOOL 3ff97b378ffe5c79d63ba206dec6c346480c42aa4988bed662066efbf5599e0986c83cd1ade54bded8bb2e2ad0ab6ad6f18c791b59f11215c2a52c4503721cbb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iEYEAREIAAYFAlMEBP4ACgkQVWmRsqeSphN4FwCeNt/rmCIo2PHx23M6VrsbBjCN
-a6AAn09Kh1tRYhv7Ch/Fae92LCRAdDJg
-=h0DW
+iQJ8BAEBCgBmBQJTGE1pXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyQ0JDQjFGMzBDQ0UxMjFGNENDNDgxMDdC
+OUQ0RjIzMUJEMTU1OEFCAAoJELnU8jG9FVirO/4P/1oNocJsj1RBe5mtck55BQrX
+ipVwOB2Y85M8bguPPFXZ1wzNKrvK8Jh76EwI+iCHRx+v8AvsGWeYQ7v00X9FHSZ6
+ApWVZBZhasgtSzVuuxPVxGhdXCP1jXKstYxEVjTdBajU67Emf4kMZYQppeSu8EtD
+YU7MSrfCXqS6edSS/+njweO5srMiPWuWd+i8150roR8nAhiBeEi79Rd4tAJ5172S
+yx9C6GOF3q7QbQMmP/aBDv3Ds5ALuj1L2ZhfxtDih67/QoWhaURyrH9trsQLjHGx
+6aaF8zDPclRjKZlb994IQJ5Dvi3aQ9bmMoEfELtdJMHfWfXE6cZLYmaMzNy7PsSV
+CebMZxp8A/rt41FV7l/g2DZEWu+ZscJU6p1FUQ5bstLnELyQELLzftmWt9Fh1zJM
+GPa1pELw9isfAiywI7+B7mpSpS5LeSiVLVllek2fAR7P2YjzjU2MMoW85jlc4t8V
+BKpyQFK9OimDLUssDHkVw/qEZkUD8QFncdF5iZMsNWZMRoD5AYG80akRCefzLkpO
+DVGWQ0PJTBLNWW67J/Zsap967v1KMxW6QO49icgkaxxjbF4HqO1kwsewVFK+oRJh
+InJ5tJOulUOLhCiHHVyXQdziZVMOitp8mQ7JYmA1IyaxIkjjGzXfB+oERDU5uOU9
+UiMCVfjv1QCEiSmAn+fs
+=gNMm
-----END PGP SIGNATURE-----
diff --git a/net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-1.patch b/net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-1.patch
new file mode 100644
index 000000000000..576c8b394424
--- /dev/null
+++ b/net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-1.patch
@@ -0,0 +1,40 @@
+Index: src/common/crypto.py
+===================================================================
+--- src/common/crypto.py (revision 15157)
++++ src/common/crypto.py (revision 15338)
+@@ -88,5 +88,5 @@
+
+ for s in sources:
+- OpenSSL.rand.add(str(s), 0.01)
++ OpenSSL.rand.add(str(s), 1)
+
+ # On Windows add the current contents of the screen to the PRNG state.
+Index: src/common/jingle_xtls.py
+===================================================================
+--- src/common/jingle_xtls.py (revision 15334)
++++ src/common/jingle_xtls.py (revision 15338)
+@@ -120,5 +120,5 @@
+ try:
+ with open(dh_params_name, "r") as dh_params_file:
+- ctx.load_tmp_dh(dh_params_name)
++ ctx.load_tmp_dh(str(dh_params_name))
+ except IOError as err:
+ log.warn('Unable to load DH parameter file: %s. You should generate it '
+@@ -130,5 +130,5 @@
+ try:
+ with open(default_dh_params_name, "r") as default_dh_params_file:
+- ctx.load_tmp_dh(default_dh_params_name)
++ ctx.load_tmp_dh(str(default_dh_params_name))
+ except IOError as err:
+ log.error('Unable to load default DH parameter file: %s , %s'
+Index: src/gajim.py
+===================================================================
+--- src/gajim.py (revision 15332)
++++ src/gajim.py (revision 15338)
+@@ -311,5 +311,5 @@
+ PYOPENSSL_PRNG_PRESENT = True
+ # Seed from file
+- OpenSSL.rand.load_file(RNG_SEED)
++ OpenSSL.rand.load_file(str(RNG_SEED))
+ crypto.add_entropy_sources_OpenSSL()
+ except ImportError:
diff --git a/net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-2.patch b/net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-2.patch
new file mode 100644
index 000000000000..e3375c3f836b
--- /dev/null
+++ b/net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-2.patch
@@ -0,0 +1,40 @@
+Index: src/common/crypto.py
+===================================================================
+--- src/common/crypto.py (revision 15338)
++++ src/common/crypto.py (revision 15339)
+@@ -99,14 +99,14 @@
+ for d in dirs:
+ if os.access(d, os.R_OK):
+- for filename in os.listdir(d):
+- OpenSSL.rand.add(filename, 0)
+- try:
+- with open(d + os.sep + filename, "r") as fp:
+- # Limit the ammount of read bytes, in case a memory
+- # file was opened
+- OpenSSL.rand.add(str(fp.read(5000)), 0.01)
+- except:
+- # Ignore all read and access errors
+- pass
++ for filename in os.listdir(d):
++ OpenSSL.rand.add(filename, 0)
++ try:
++ with open(d + os.sep + filename, "r") as fp:
++ # Limit the ammount of read bytes, in case a memory
++ # file was opened
++ OpenSSL.rand.add(str(fp.read(5000)), 1)
++ except IOError:
++ # Ignore all read and access errors
++ pass
+
+ PYOPENSSL_PRNG_PRESENT = False
+Index: src/gajim.py
+===================================================================
+--- src/gajim.py (revision 15338)
++++ src/gajim.py (revision 15339)
+@@ -464,5 +464,5 @@
+ # Save the entropy from OpenSSL PRNG
+ if PYOPENSSL_PRNG_PRESENT:
+- OpenSSL.rand.write_file(RNG_SEED)
++ OpenSSL.rand.write_file(str(RNG_SEED))
+ # delete pid file on normal exit
+ if os.path.exists(pid_filename):
diff --git a/net-im/gajim/gajim-0.16_beta2-r1.ebuild b/net-im/gajim/gajim-0.16_beta2-r1.ebuild
new file mode 100644
index 000000000000..f4e5d68f4488
--- /dev/null
+++ b/net-im/gajim/gajim-0.16_beta2-r1.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/gajim-0.16_beta2-r1.ebuild,v 1.1 2014/03/06 10:26:53 jlec Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_7} )
+PYTHON_REQ_USE="sqlite,xml"
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils python-r1 versionator
+
+MY_PV=${PV/_/-}
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Jabber client written in PyGTK"
+HOMEPAGE="http://www.gajim.org/"
+SRC_URI="
+ http://www.gajim.org/downloads/$(get_version_component_range 1-2)/${MY_P}.tar.bz2"
+# test? ( http://dev.gentoo.org/~jlec/distfiles/${PN}-tests-${PV}.tar.xz )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="avahi crypt dbus gnome gnome-keyring kde idle jingle libnotify networkmanager nls spell +srv test X xhtml"
+
+REQUIRED_USE="
+ ${PYTHON_REQUIRED_USE}
+ libnotify? ( dbus )
+ avahi? ( dbus )
+ gnome? ( gnome-keyring )"
+
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ x11-libs/gtk+:2"
+DEPEND="${COMMON_DEPEND}
+ >=dev-util/intltool-0.40.1
+ virtual/pkgconfig
+ >=sys-devel/gettext-0.17-r1"
+RDEPEND="${COMMON_DEPEND}
+ dev-python/pyasn1[${PYTHON_USEDEP}]
+ >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
+ >=dev-python/python-nbxmpp-0.3[${PYTHON_USEDEP}]
+ crypt? (
+ app-crypt/gnupg
+ dev-python/pycrypto[${PYTHON_USEDEP}]
+ )
+ dbus? (
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-libs/dbus-glib
+ libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )
+ avahi? ( net-dns/avahi[dbus,gtk,python,${PYTHON_USEDEP}] )
+ )
+ gnome? (
+ dev-python/libgnome-python
+ dev-python/egg-python
+ )
+ gnome-keyring? ( dev-python/gnome-keyring-python )
+ idle? ( x11-libs/libXScrnSaver )
+ jingle? ( net-libs/farstream:0.1[python] )
+ kde? ( kde-base/kwallet )
+ networkmanager? (
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ net-misc/networkmanager
+ )
+ spell? ( app-text/gtkspell:2 )
+ srv? (
+ || (
+ dev-python/libasyncns-python[${PYTHON_USEDEP}]
+ net-dns/bind-tools )
+ )
+ xhtml? ( dev-python/docutils[${PYTHON_USEDEP}] )"
+
+RESTRICT="test"
+
+S="${WORKDIR}"/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-pyopenssl-backport-1.patch
+ "${FILESDIR}"/${P}-pyopenssl-backport-2.patch
+)
+
+src_prepare() {
+ autotools-utils_src_prepare
+ python_copy_sources
+}
+
+src_configure() {
+ configuration() {
+ local myeconfargs=(
+ $(use_enable nls)
+ $(use_with X x)
+ --docdir="/usr/share/doc/${PF}"
+ --libdir="$(python_get_sitedir)"
+ --enable-site-packages
+ )
+ run_in_build_dir autotools-utils_src_configure
+ }
+ python_foreach_impl configuration
+}
+
+src_compile() {
+ compilation() {
+ run_in_build_dir autotools-utils_src_compile
+ }
+ python_foreach_impl compilation
+}
+
+src_test() {
+ testing() {
+ run_in_build_dir ${PYTHON} test/runtests.py --verbose 3 || die
+ }
+ python_foreach_impl testing
+}
+
+src_install() {
+ installation() {
+ run_in_build_dir autotools-utils_src_install
+ python_optimize
+ }
+ python_foreach_impl installation
+
+ rm "${ED}/usr/share/doc/${PF}/README.html" || die
+ dohtml README.html
+}