diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-07-09 19:54:25 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-07-09 19:54:25 +0000 |
commit | 970dd3ac35f690cab68e527e53c4f00750e957ad (patch) | |
tree | 25c162299ae5680d0539748898b6c7011ce57174 /dev-python/twisted | |
parent | Version bump, fixes #318799 and #325671 (diff) | |
download | historical-970dd3ac35f690cab68e527e53c4f00750e957ad.tar.gz historical-970dd3ac35f690cab68e527e53c4f00750e957ad.tar.bz2 historical-970dd3ac35f690cab68e527e53c4f00750e957ad.zip |
Version bump.
Package-Manager: portage-HEAD/cvs/Linux x86_64
Diffstat (limited to 'dev-python/twisted')
-rw-r--r-- | dev-python/twisted/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/twisted/Manifest | 4 | ||||
-rw-r--r-- | dev-python/twisted/twisted-10.1.0.ebuild | 123 |
3 files changed, 133 insertions, 2 deletions
diff --git a/dev-python/twisted/ChangeLog b/dev-python/twisted/ChangeLog index 2c7024138ef5..faad3533509d 100644 --- a/dev-python/twisted/ChangeLog +++ b/dev-python/twisted/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/twisted # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v 1.128 2010/04/23 08:48:42 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v 1.129 2010/07/09 19:54:25 arfrever Exp $ + +*twisted-10.1.0 (09 Jul 2010) + + 09 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +twisted-10.1.0.ebuild: + Version bump. 23 Apr 2010; Fabian Groffen <grobian@gentoo.org> twisted-10.0.0.ebuild: Fix src_test for Prefix, thanks Dan Wallis in bug #316739 diff --git a/dev-python/twisted/Manifest b/dev-python/twisted/Manifest index f45c4f91a97f..581616d366b1 100644 --- a/dev-python/twisted/Manifest +++ b/dev-python/twisted/Manifest @@ -5,10 +5,12 @@ AUX twisted-2.1.0-zsh-head.patch 592 RMD160 1fc8e7f8de64055e3801b442b4f666aef567 AUX twisted-8.2.0_tests.patch 10675 RMD160 6dd9a5fe60d9fb0eadccca93353d8ea8fe9f6970 SHA1 0a9a906463c0dfe88b01048dd0f689fa3abbee4c SHA256 5a13a4bc28b325a216198fe412d8916f89149c888c2b60f1be051d4d7c9dcd4b AUX twisted-9.0.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch 419 RMD160 b3a00d9cbb94332c1b20c96e342679b8c165c2e9 SHA1 9ee00b607d0ebd9f54867c95cbc321c47129e272 SHA256 f8e35bfeb14010ddd2c372fc5a9ae2ce0c72aa67bd452b2ccd12368f31c28818 DIST TwistedCore-10.0.0.tar.bz2 1278918 RMD160 8d0e3e12fa6f8a10c674c503cfa29eb39a6be25b SHA1 c6fe0f57819d40c1b635b18e87bb93846b5cbb31 SHA256 e0bd3d1d2fd582392ca05363f9d4ec5bee21f4cb375df40c61ddfd21755d2786 +DIST TwistedCore-10.1.0.tar.bz2 1338502 RMD160 64bccb548fcf29b74d0b0b531200db41769b843b SHA1 472a85f8f262bb46978d1249a115dd919fd754df SHA256 0df2eae62d85432e52c6bd2605b3998ef83b7b84f2bcb14e1ef5510187e76089 DIST TwistedCore-8.2.0.tar.bz2 1205654 RMD160 7162be0d4f131e2e8379ba4330b0ff8978a6530c SHA1 0c4f24c661316a650ed1493d2c6a9ace6c10fd27 SHA256 481e8ea4b05b482aa1396ca3ad09fac6086acddfd57eed7bb63e1385717adde4 DIST TwistedCore-9.0.0.tar.bz2 1270053 RMD160 c71864bf174d4eaabfa1df2b579d6598ae8fe1a7 SHA1 6966ce9f481fccc6a8abfeec144314ba70e29b1c SHA256 6e71eeecf5c4fa5fd4ae1b2a3f907da69d62897eda02d23135ccf0ea36a2958e EBUILD twisted-10.0.0.ebuild 3869 RMD160 24db167466ce216dbb76d0eb57f8d920842a61fe SHA1 2f0520bc5d34bdd04ccf9e5aa820ff9241a92d97 SHA256 007161cd8112dd1c9b6e49ccdbae614a621fdc3014cdd99b8b71331ada3e0ca5 +EBUILD twisted-10.1.0.ebuild 4125 RMD160 e0110ee226293b114cfc6453d23a8b190cf41d30 SHA1 d629dcb806ec6dcbe8ab5c9f8d3b594e46c4d07f SHA256 604e92b4c827b5fe63f0a65f4255bc24f8e38580861fba2edd6c646b946f10c8 EBUILD twisted-8.2.0-r2.ebuild 3534 RMD160 58c82cff4e179255cb9dfe69474a07a32fd77fbd SHA1 17d422a1da003d43f5f31bc1850420381d1430a8 SHA256 74df451cccec426eededa1fc731173ad90a2ff331e616dc3d220a8caaba24498 EBUILD twisted-9.0.0-r1.ebuild 3843 RMD160 9b8b196f0cddee361fed867fd802248e89a656f5 SHA1 ddaeb9b9c7800d758c8b7420c965c6cfc5d5e639 SHA256 e947a7923d906e0fe8a47d3f9d07aa9a64a194032557d5d80fe52df872fe6d52 -MISC ChangeLog 21291 RMD160 9a43b4b0561f0132b735d184915c216ac755276f SHA1 cf103ac5d3f5fefacdacf7da23f5cb6220380594 SHA256 1f9cf1a2a8d163701a6b24d2efecbcbf32b3cbbdc8079ee34a4f42d22fc782b8 +MISC ChangeLog 21439 RMD160 a33ea92529337381ebfeb7e171ca9fc40c0e2144 SHA1 0effbf7f502dac2e0fd578883364e1e756c9287c SHA256 d83863b9888b764e12ef6ece9fc9badc69891b30e588fa1cc3d65d0e50567f34 MISC metadata.xml 516 RMD160 3603e0b110b1486ed5c02ec37ccee6712e2098c8 SHA1 3fe53dc137c9bd5437e8f6fb1d397491f5e9281e SHA256 702ffca7fc318ecb382067e3bccf620bebd7da614430ea82de24445b9f75524c diff --git a/dev-python/twisted/twisted-10.1.0.ebuild b/dev-python/twisted/twisted-10.1.0.ebuild new file mode 100644 index 000000000000..9f60670704c2 --- /dev/null +++ b/dev-python/twisted/twisted-10.1.0.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-10.1.0.ebuild,v 1.1 2010/07/09 19:54:25 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils eutils versionator + +MY_P="TwistedCore-${PV}" + +DESCRIPTION="An asynchronous networking framework written in Python" +HOMEPAGE="http://www.twistedmatrix.com/ http://pypi.python.org/pypi/Twisted" +SRC_URI="http://tmrc.mit.edu/mirror/${PN}/Core/$(get_version_component_range 1-2)/${MY_P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="crypt gtk serial" + +DEPEND=">=net-zope/zope-interface-3.0.1 + crypt? ( >=dev-python/pyopenssl-0.5.1 ) + gtk? ( >=dev-python/pygtk-1.99 ) + serial? ( dev-python/pyserial )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +DOCS="CREDITS NEWS README" + +src_prepare(){ + distutils_src_prepare + + # Give a load-sensitive test a better chance of succeeding. + epatch "${FILESDIR}/${PN}-2.1.0-echo-less.patch" + + # Pass valid arguments to "head" in the zsh completion function. + epatch "${FILESDIR}/${PN}-2.1.0-zsh-head.patch" + + # Respect TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE variable. + epatch "${FILESDIR}/${PN}-9.0.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch" +} + +src_test() { + testing() { + local return_status="0" + "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --root="${T}/tests" --no-compile || die "Installation of tests failed with $(python_get_implementation) $(python_get_version)" + + pushd "${T}/tests${EPREFIX}$(python_get_sitedir)" > /dev/null || die + + # Skip broken tests. + sed -e "s/test_buildAllTarballs/_&/" -i twisted/python/test/test_release.py || die "sed failed" + + # Prevent it from pulling in plugins from already installed twisted packages. + rm -f twisted/plugins/__init__.py + + # An empty file doesn't work because the tests check for doc strings in all packages. + echo "'''plugins stub'''" > twisted/plugins/__init__.py || die + + if ! PYTHONPATH="." "${T}/tests${EPREFIX}/usr/bin/trial" twisted; then + if [[ -n "${TWISTED_DEBUG_TESTS}" ]]; then + die "Tests failed with $(python_get_implementation) $(python_get_version)" + else + return_status="1" + fi + fi + + popd > /dev/null || die + rm -fr "${T}/tests" + return "${return_status}" + } + python_execute_function testing +} + +src_install() { + distutils_src_install + + python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/trial" + + postinstallational_preparation() { + touch "${ED}$(python_get_sitedir)/Twisted-${PV}-py$(python_get_version).egg-info" + + # Delete dropin.cache to avoid collisions. + # dropin.cache is regenerated in pkg_postinst(). + rm -f "${ED}$(python_get_sitedir)/twisted/plugins/dropin.cache" + } + python_execute_function -q postinstallational_preparation + + # Don't install index.xhtml page. + doman doc/man/*.? + insinto /usr/share/doc/${PF} + doins -r $(find doc -mindepth 1 -maxdepth 1 -not -name man) + + newconfd "${FILESDIR}/twistd.conf" twistd + newinitd "${FILESDIR}/twistd.init" twistd + + # zsh completion + insinto /usr/share/zsh/site-functions + doins twisted/python/_twisted_zsh_stub +} + +update_plugin_cache() { + rm -f "${EROOT%/}$(python_get_sitedir)/twisted/plugins/dropin.cache" + + # Update dropin.cache only when Twisted is still installed. + if [[ -f "${EROOT%/}$(python_get_sitedir)/twisted/plugin.py" ]]; then + einfo "Regeneration of Twisted plugin cache with $(python_get_implementation) $(python_get_version)" + # http://twistedmatrix.com/documents/current/core/howto/plugin.html + "$(PYTHON)" -c "import sys; sys.path.insert(0, '${EROOT%/}$(python_get_sitedir)'); from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))" + fi +} + +pkg_postinst() { + distutils_pkg_postinst + python_execute_function -q update_plugin_cache +} + +pkg_postrm() { + distutils_pkg_postrm + python_execute_function -q update_plugin_cache +} |