diff options
author | Justin Lecher <jlec@gentoo.org> | 2013-02-20 10:46:26 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2013-02-20 10:46:26 +0000 |
commit | 20f162da9e5bd168b8b0d30b39c4408748ae7d6f (patch) | |
tree | 6c3e62d532296da0bd827d9fa31b98795707f9a3 /net-im | |
parent | dev-python/notify-python: Move to new python eclasses (diff) | |
download | historical-20f162da9e5bd168b8b0d30b39c4408748ae7d6f.tar.gz historical-20f162da9e5bd168b8b0d30b39c4408748ae7d6f.tar.bz2 historical-20f162da9e5bd168b8b0d30b39c4408748ae7d6f.zip |
net-im/gajim: Update Patch, thanks Suloev Dmitry for the fix; move to new python eclasses
Package-Manager: portage-2.2.0_alpha163/cvs/Linux x86_64
Manifest-Sign-Key: 0x70EB7916
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/gajim/ChangeLog | 10 | ||||
-rw-r--r-- | net-im/gajim/Manifest | 14 | ||||
-rw-r--r-- | net-im/gajim/files/gajim-0.15.2-CVE-2012-5524.patch | 152 | ||||
-rw-r--r-- | net-im/gajim/gajim-0.15.2-r2.ebuild (renamed from net-im/gajim/gajim-0.15.2-r1.ebuild) | 2 | ||||
-rw-r--r-- | net-im/gajim/gajim-0.15.2-r3.ebuild | 119 |
5 files changed, 218 insertions, 79 deletions
diff --git a/net-im/gajim/ChangeLog b/net-im/gajim/ChangeLog index 5151983b1815..2d7cf494b76b 100644 --- a/net-im/gajim/ChangeLog +++ b/net-im/gajim/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-im/gajim # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/ChangeLog,v 1.162 2013/02/19 16:42:22 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/ChangeLog,v 1.163 2013/02/20 10:46:25 jlec Exp $ + +*gajim-0.15.2-r3 (20 Feb 2013) +*gajim-0.15.2-r2 (20 Feb 2013) + + 20 Feb 2013; Justin Lecher <jlec@gentoo.org> -gajim-0.15.2-r1.ebuild, + +gajim-0.15.2-r2.ebuild, +gajim-0.15.2-r3.ebuild, + files/gajim-0.15.2-CVE-2012-5524.patch: + Update Patch, thanks Suloev Dmitry for the fix; move to new python eclasses *gajim-0.15.2-r1 (19 Feb 2013) diff --git a/net-im/gajim/Manifest b/net-im/gajim/Manifest index e07e7b50a582..7f13c28c324d 100644 --- a/net-im/gajim/Manifest +++ b/net-im/gajim/Manifest @@ -8,17 +8,19 @@ AUX gajim-0.14.4-debian_patches_unicode.patch 3590 SHA256 b9a95103317d9ed543ecfe AUX gajim-0.15-SA48695-2.patch 4581 SHA256 76ea7870b1939282b18198927bfac5b299736ca77b0e0d8486d2ba375cfbe046 SHA512 8f735f6c97ab7292a02cdf810df4eda50e322f2ee69b076b46f55720215da013fd4f880fc995fada7e53b57dbea952f24191e95f06b7026db64cf743d259d37e WHIRLPOOL 615c735927626e73c26f7dcac077f5d8be5c99b5310f7b1168bf2b47c8c90736a7fb39bd5167a046d1f882ca3391e6e8cb22f63ddc0cddfef0b0295d57c784bd AUX gajim-0.15-SA48695.patch 862 SHA256 9d6c0bef13e7161465e6fda2ad7031c383011e66e24b7322ce19df387d79db6d SHA512 40a5c9c572c755050993191266287e11bbfa9ea2731c975d088c85c069391e79a6a982c13eb0c007ece036d216dc5a42d72b4ed128d95192864313a444ccb050 WHIRLPOOL 41d369123b06f6afc77ab70e8fd152b98e0202111bf1dc889b573783398f467ab40cd8c6cd47b18944b7258116270341ec051d367fda4803f589e71e7dce8c9e AUX gajim-0.15-plugin.patch 383 SHA256 6003e53ca42b3efda9f132fd9253e5577f128ae596ce458ac7c2ce5a29c1759d SHA512 a8bf05e69547cb62db119e1faeaff6a4cfc27a44e4b925921cb43f22b4970d19c08c97d00d5166d4d439dcf706e972f617d20ff58f040cfe28dc5cf6389e408f WHIRLPOOL 6a16b97758015c7e51f43df45614ccbae3d682f5c75270118ea06b780a9f10a2184650265ae1aa3e663dc06d7ed803f263b8054433a8b64552c3b71f8be938c7 -AUX gajim-0.15.2-CVE-2012-5524.patch 3910 SHA256 7573f16ac2aa4dfc0a4b27d6c8fb8c29cfac669a44c4de825f0a3c34a523aa3c SHA512 65298d8a0911fc5776190b4cfb8dc35be8466ee5aa73d632c975fa14a4e00fb56838b27be25f3cae7aa728ea45adc82830f383fa63668629b39240e3bb81f188 WHIRLPOOL 7871538338b57de613c951f9a783231ce49f2064addd6abfd3b97cddfb4a8585f8ea826adb05d0b83fc99f769009a14bc90bd874f542dab18c6fb40c30c13782 +AUX gajim-0.15.2-CVE-2012-5524.patch 4322 SHA256 921b5cfd1af603a99a134bc80404f3f531da0869dc0be90d68a364c59b733194 SHA512 260e352267eadd9cb062286565d2e507899b4bece1c24172193e676314473b38fc4811c651c287fdbe48768dbd608b3545ec1d7520d6a9366cfb9b96055d829d WHIRLPOOL 4da3b8be018c69a32058eec12648854dcbc17f4e838d57d48a8479f3b7f54875ab28330a1bba0e5fc947b681ace714c54a220e7da150c760e9f833589b6fcc72 DIST gajim-0.15.1.tar.bz2 4473442 SHA256 530e2fd6b2fb14b0582c8333cd59c751940037fd4c28c59ae643a4ddf0c31f92 SHA512 c929c4c115a189f0d3a302aa999e836d6f1d38e38ca9825fcc5eb8208c3880f39d4822512eedaf04b225c234c2f93b1b5328abb2c75ad9a08f05943420f153f2 WHIRLPOOL 72df6396ec007cfca17a99a4e313ca467dc8d7c640d2febfac1520d6b5ac78a1ff2e2ab582908cf8abf0c21931b75ad935cc0b8f98ab44dc98ca3df9be5ee60b DIST gajim-0.15.2.tar.bz2 4473077 SHA256 7e71ee82e44303992792644803c749cb89ecad7ec7547db4f9841fcbeec49940 SHA512 ea1e64de54bd15a5af40e3fdfcc46808467555e671a8a86708f22400f7a329290d9d921d9e3ae56e7f47b90842c49b4f8d432d0df4fed7471d457ed2092f552a WHIRLPOOL 0faec1b189d48d83beed5aaf89a1a9d6351e30fda5b86abc8c57ffaf6c867d1a6531318c30c66a0b280899cef584068c7a684286d0be78c118fa528f54f6afbf +DIST gajim-tests-0.15.2.tar.xz 22228 SHA256 9b972efa685ed854cfbaadb37f3fe5629fac65995100e20c3ca8294a4e0ee756 SHA512 0f5a6233be1db55e9cc7dab7f638d503b6ea71237c4039d43b8ff69421742c5c92034cdd40dd662f57a8a519e088b98b1c30040c30c3fec1546e10a4b41d301d WHIRLPOOL ddb53abd70533a60e62ae317864d5b396820373a9822f17f175c885dc9bd31f20ac1653ddc637e569141f3ab31283865114255095dd973ebf0826dd34ff8d3ca EBUILD gajim-0.15.1.ebuild 2212 SHA256 8c5f62f5f5914668cbb0571c5869b36e0826f32abf9e63788efd98097001cef5 SHA512 5267156c17448eec193d534f0f977cc7153e578e34416a427422389cda71eb02e49d990f715258e7a2f2f2731a525f39b2b70a00ac3c3939e1529d6c03729740 WHIRLPOOL 87a9a54bd5618717a8bfd2cf6c13b04db70aab25ed903ed6f16d5b461906d3ed19098784246d7923562a22f2d4b49fee2f53dc618019b8458f30dabd1495e757 -EBUILD gajim-0.15.2-r1.ebuild 2264 SHA256 f97d8f2248ffd9698206bb29fd2f33c2c89d4f4ccf7ad3cf861d186516ff1d4b SHA512 85667ca9694c611f9f6675ba1103f35e828b4fb10c7fe7856ef9bbc33fb3b03c6594952fcde085e86c9133493975ab6bb7d819ff54a3d06bb0ee9f329ce67baf WHIRLPOOL 19aedd1e94c1bff54a7d27411edeb200c7cc265ffc9e2f75b35263a5d00f0989f3c3e2e3f23f1fad4089b3132e1cd630df35dc5397fb0babf16c925bffc674c7 -MISC ChangeLog 23404 SHA256 8c860256aa41c7960ba45483679b6db817df3ca6b2dbd3f7ab5cd3aff4dfcbf5 SHA512 2923411c8110ca7ccc2b46ff2071305c8a8deaf659f5705dec7900ce9ba5f292d853ece90a5d461b107ca2edc2117b466bf4219cc7b93507a92cff1fa61fc4cb WHIRLPOOL 02d24992cf0cf47bf8b32d9e83fa1369a9b0a1a0b3f202ccae16d6650aafc567768d39b6d6e2f2a9bfce668d890179f0647f87a30ecddd555e8fd53a2e8bbb16 +EBUILD gajim-0.15.2-r2.ebuild 2264 SHA256 6930b2b532dc1d31025a8626996f6fc382d688a43c115a2c527524c1796a6f75 SHA512 3e5db4dc3ec0392592b6ad3541d52c270426ba1c166336b3e9bd408277ff0e0f51bb3e002b15f9ba98d57a588b68f9e0f0ecd5c85d965fc944e2f736d6c07d5b WHIRLPOOL 782be4c4d1687795813cc3c6d4cce75d79773a2adb28fdbf4da7ac6305add046146f03b2fd8243ff4657ef0390387667b118564270024c972e652715945125d5 +EBUILD gajim-0.15.2-r3.ebuild 2841 SHA256 8c5dd12221d4fc9eee3804f76d1997d8a144d1ce4bd63e7c530f709b6dbba84c SHA512 f55fd23245b0839faa8901495efb72cc9a925ca1fb2cb634a464f9ecc9af0eeeaa443a3148b7485dfc6e4b71c83646d2f637a34030b9991ff9642e54971a3912 WHIRLPOOL c1e706a28bbc58825fdf045d8e5984f7385f58ba45492a658166171ed1dcc41f8a1702109b92a26562a891f791d52db86f2e35a79df7fbfe9b6840fdf2ac75f5 +MISC ChangeLog 23712 SHA256 2b8260013a87ca58f73161608dfa12c23867e62e5d0cba3105b030a40ec4dcfc SHA512 7cd0a122f4af78f1119a8f73698b05ca743cf510d1f43655fc855ae9684ff528cdfbbb3c0f175aeeec9e9ca931d5d5c8ad87850ce6b3088d9e4201be9286676b WHIRLPOOL d9b2e5c87199b432d31933052e27a3323af2b1a1405b18fb09f16cb45a5d1309727527c070c8bcb82d7a850dc9a0163dc189ab284c3fe1dd7799cc007cbb1579 MISC metadata.xml 503 SHA256 781012e83e7e3d1480ed6413a58f8a294e3a1b4c4968b1217c9bf7b41cca3ae5 SHA512 cfc7f159daf5007962ea035289002df56575042d567aa36c495b95dcf7ca7bb931be622599537e9ea67c25b7cb75014acf38a13bda349218af7a5eb576ebb0a4 WHIRLPOOL 3ff97b378ffe5c79d63ba206dec6c346480c42aa4988bed662066efbf5599e0986c83cd1ade54bded8bb2e2ad0ab6ad6f18c791b59f11215c2a52c4503721cbb -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iEYEAREIAAYFAlEjq3AACgkQgAnW8HDreRY5SACfWIas95dbVJ8Grq3W8Kiot9ks -0b4AnjB4BOYlM5w3jCBZBDUmT4y/az/5 -=G+Qa +iEYEAREIAAYFAlEkqYIACgkQgAnW8HDreRbvzwCeJYSbL6TPGLD9IXVPo8I4CaB7 +gbwAnREi4J7sXO7GeOlQ108JL0gAovZW +=uegd -----END PGP SIGNATURE----- diff --git a/net-im/gajim/files/gajim-0.15.2-CVE-2012-5524.patch b/net-im/gajim/files/gajim-0.15.2-CVE-2012-5524.patch index 8cb0b976bcc4..5249ce80da54 100644 --- a/net-im/gajim/files/gajim-0.15.2-CVE-2012-5524.patch +++ b/net-im/gajim/files/gajim-0.15.2-CVE-2012-5524.patch @@ -1,71 +1,81 @@ -Index: src/common/connection.py
-===================================================================
---- src/common/connection.py (revision 14377)
-+++ src/common/connection.py (revision 14379)
-@@ -1312,19 +1312,22 @@
- errnum = con.Connection.ssl_errnum
- except AttributeError:
-- errnum = -1 # we don't have an errnum
-- if errnum > 0 and str(errnum) not in gajim.config.get_per('accounts',
-- self.name, 'ignore_ssl_errors').split():
-- text = _('The authenticity of the %s certificate could be invalid.'
-- ) % hostname
-- if errnum in ssl_error:
-- text += _('\nSSL Error: <b>%s</b>') % ssl_error[errnum]
-- else:
-- text += _('\nUnknown SSL error: %d') % errnum
-- gajim.nec.push_incoming_event(SSLErrorEvent(None, conn=self,
-- error_text=text, error_num=errnum,
-- cert=con.Connection.ssl_cert_pem,
-- fingerprint=con.Connection.ssl_fingerprint_sha1,
-- certificate=con.Connection.ssl_certificate))
-- return True
-+ errnum = [] # we don't have an errnum
-+ i = 0
-+ for er in errnum:
-+ if er > 0 and str(er) not in gajim.config.get_per('accounts',
-+ self.name, 'ignore_ssl_errors').split():
-+ text = _('The authenticity of the %s certificate could be '
-+ 'invalid.') % hostname
-+ if er in ssl_error:
-+ text += _('\nSSL Error: <b>%s</b>') % ssl_error[er]
-+ else:
-+ text += _('\nUnknown SSL error: %d') % er
-+ gajim.nec.push_incoming_event(SSLErrorEvent(None, conn=self,
-+ error_text=text, error_num=er,
-+ cert=con.Connection.ssl_cert_pem[i],
-+ fingerprint=con.Connection.ssl_fingerprint_sha1[i],
-+ certificate=con.Connection.ssl_certificate[i]))
-+ return True
-+ i += 1
- if hasattr(con.Connection, 'ssl_fingerprint_sha1'):
- saved_fingerprint = gajim.config.get_per('accounts', self.name,
-@@ -1332,12 +1335,15 @@
- if saved_fingerprint:
- # Check sha1 fingerprint
-- if con.Connection.ssl_fingerprint_sha1 != saved_fingerprint:
-+ if con.Connection.ssl_fingerprint_sha1[-1] != saved_fingerprint:
- gajim.nec.push_incoming_event(FingerprintErrorEvent(None,
-- conn=self, certificate=con.Connection.ssl_certificate,
-- new_fingerprint=con.Connection.ssl_fingerprint_sha1))
-+ conn=self,
-+ certificate=con.Connection.ssl_certificate,
-+ new_fingerprint=con.Connection.ssl_fingerprint_sha1[
-+ -1]))
- return True
- else:
- gajim.config.set_per('accounts', self.name,
-- 'ssl_fingerprint_sha1', con.Connection.ssl_fingerprint_sha1)
-+ 'ssl_fingerprint_sha1',
-+ con.Connection.ssl_fingerprint_sha1[-1])
- if not check_X509.check_certificate(con.Connection.ssl_certificate,
- hostname) and '100' not in gajim.config.get_per('accounts',
-@@ -1348,6 +1354,6 @@
- gajim.nec.push_incoming_event(SSLErrorEvent(None, conn=self,
- error_text=txt, error_num=100,
-- cert=con.Connection.ssl_cert_pem,
-- fingerprint=con.Connection.ssl_fingerprint_sha1,
-+ cert=con.Connection.ssl_cert_pem[-1],
-+ fingerprint=con.Connection.ssl_fingerprint_sha1[-1],
- certificate=con.Connection.ssl_certificate))
- return True
+ src/common/connection.py | 50 +++++++++++++++++++++++++++--------------------- + 1 file changed, 28 insertions(+), 22 deletions(-) + +diff --git a/src/common/connection.py b/src/common/connection.py +index 8240652..6d3037a 100644 +--- a/src/common/connection.py ++++ b/src/common/connection.py +@@ -1309,36 +1309,42 @@ class Connection(CommonConnection, ConnectionHandlers): + hostname = gajim.config.get_per('accounts', self.name, 'hostname') + self.connection = con + try: +- errnum = con.Connection.ssl_errnum ++ errnum = [con.Connection.ssl_errnum] + except AttributeError: +- errnum = -1 # we don't have an errnum +- if errnum > 0 and str(errnum) not in gajim.config.get_per('accounts', +- self.name, 'ignore_ssl_errors').split(): +- text = _('The authenticity of the %s certificate could be invalid.' +- ) % hostname +- if errnum in ssl_error: +- text += _('\nSSL Error: <b>%s</b>') % ssl_error[errnum] +- else: +- text += _('\nUnknown SSL error: %d') % errnum +- gajim.nec.push_incoming_event(SSLErrorEvent(None, conn=self, +- error_text=text, error_num=errnum, +- cert=con.Connection.ssl_cert_pem, +- fingerprint=con.Connection.ssl_fingerprint_sha1, +- certificate=con.Connection.ssl_certificate)) +- return True ++ errnum = [] # we don't have an errnum ++ i = 0 ++ for er in errnum: ++ if er > 0 and str(er) not in gajim.config.get_per('accounts', ++ self.name, 'ignore_ssl_errors').split(): ++ text = _('The authenticity of the %s certificate could be ' ++ 'invalid.') % hostname ++ if er in ssl_error: ++ text += _('\nSSL Error: <b>%s</b>') % ssl_error[er] ++ else: ++ text += _('\nUnknown SSL error: %d') % er ++ gajim.nec.push_incoming_event(SSLErrorEvent(None, conn=self, ++ error_text=text, error_num=er, ++ cert=con.Connection.ssl_cert_pem[i], ++ fingerprint=con.Connection.ssl_fingerprint_sha1[i], ++ certificate=con.Connection.ssl_certificate[i])) ++ return True ++ i += 1 + if hasattr(con.Connection, 'ssl_fingerprint_sha1'): + saved_fingerprint = gajim.config.get_per('accounts', self.name, + 'ssl_fingerprint_sha1') + if saved_fingerprint: + # Check sha1 fingerprint +- if con.Connection.ssl_fingerprint_sha1 != saved_fingerprint: ++ if con.Connection.ssl_fingerprint_sha1[-1] != saved_fingerprint: + gajim.nec.push_incoming_event(FingerprintErrorEvent(None, +- conn=self, certificate=con.Connection.ssl_certificate, +- new_fingerprint=con.Connection.ssl_fingerprint_sha1)) ++ conn=self, ++ certificate=con.Connection.ssl_certificate, ++ new_fingerprint=con.Connection.ssl_fingerprint_sha1[ ++ -1])) + return True + else: + gajim.config.set_per('accounts', self.name, +- 'ssl_fingerprint_sha1', con.Connection.ssl_fingerprint_sha1) ++ 'ssl_fingerprint_sha1', ++ con.Connection.ssl_fingerprint_sha1[-1]) + if not check_X509.check_certificate(con.Connection.ssl_certificate, + hostname) and '100' not in gajim.config.get_per('accounts', + self.name, 'ignore_ssl_errors').split(): +@@ -1347,8 +1353,8 @@ class Connection(CommonConnection, ConnectionHandlers): + hostname + gajim.nec.push_incoming_event(SSLErrorEvent(None, conn=self, + error_text=txt, error_num=100, +- cert=con.Connection.ssl_cert_pem, +- fingerprint=con.Connection.ssl_fingerprint_sha1, ++ cert=con.Connection.ssl_cert_pem[-1], ++ fingerprint=con.Connection.ssl_fingerprint_sha1[-1], + certificate=con.Connection.ssl_certificate)) + return True + diff --git a/net-im/gajim/gajim-0.15.2-r1.ebuild b/net-im/gajim/gajim-0.15.2-r2.ebuild index 30527d446c76..311cdf0d9c1f 100644 --- a/net-im/gajim/gajim-0.15.2-r1.ebuild +++ b/net-im/gajim/gajim-0.15.2-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/gajim-0.15.2-r1.ebuild,v 1.1 2013/02/19 16:42:22 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/gajim-0.15.2-r2.ebuild,v 1.1 2013/02/20 10:46:25 jlec Exp $ EAPI=4 diff --git a/net-im/gajim/gajim-0.15.2-r3.ebuild b/net-im/gajim/gajim-0.15.2-r3.ebuild new file mode 100644 index 000000000000..ccf46663b477 --- /dev/null +++ b/net-im/gajim/gajim-0.15.2-r3.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/gajim-0.15.2-r3.ebuild,v 1.1 2013/02/20 10:46:25 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 + +DESCRIPTION="Jabber client written in PyGTK" +HOMEPAGE="http://www.gajim.org/" +SRC_URI=" + http://www.gajim.org/downloads/$(get_version_component_range 1-2)/${P}.tar.bz2 + test? ( http://dev.gentoo.org/~jlec/distfiles/${PN}-tests-${PV}.tar.xz )" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="avahi crypt dbus gnome kde idle jingle libnotify networkmanager nls spell +srv test X xhtml" + +REQUIRED_USE=" + libnotify? ( dbus ) + avahi? ( dbus )" + +COMMON_DEPEND=" + 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[${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] ) + ) + gnome? ( + dev-python/libgnome-python + dev-python/gnome-keyring-python + dev-python/egg-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 + net-dns/bind-tools ) + ) + xhtml? ( dev-python/docutils )" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${P}-CVE-2012-5524.patch + ) + +src_prepare() { + echo "src/command_system/mapping.py" >> po/POTFILES.in + echo '#!/bin/sh' > config/py-compile + 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 "${ED}"/$(python_get_sitedir) + } + python_foreach_impl installation + + rm "${D}/usr/share/doc/${PF}/README.html" || die + dohtml README.html +} |