diff options
Diffstat (limited to 'dev-python/twisted')
-rw-r--r-- | dev-python/twisted/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/twisted/Manifest | 16 | ||||
-rw-r--r-- | dev-python/twisted/files/digest-twisted-2.2.0 | 3 | ||||
-rw-r--r-- | dev-python/twisted/twisted-2.2.0.ebuild | 102 |
4 files changed, 117 insertions, 11 deletions
diff --git a/dev-python/twisted/ChangeLog b/dev-python/twisted/ChangeLog index a3239d594ec3..e8f3754a60d6 100644 --- a/dev-python/twisted/ChangeLog +++ b/dev-python/twisted/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/twisted # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v 1.59 2006/02/06 03:04:29 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v 1.60 2006/02/13 23:08:28 marienz Exp $ + +*twisted-2.2.0 (13 Feb 2006) + + 13 Feb 2006; Marien Zwart <marienz@gentoo.org> +twisted-2.2.0.ebuild: + Version bump. 06 Feb 2006; Aron Griffis <agriffis@gentoo.org> twisted-1.3.0.ebuild: Mark 1.3.0 stable on alpha diff --git a/dev-python/twisted/Manifest b/dev-python/twisted/Manifest index aac44305beab..25346e89090a 100644 --- a/dev-python/twisted/Manifest +++ b/dev-python/twisted/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - MD5 9c4dad1c4d6b973a3b1bc60ced3df36e ChangeLog 11500 RMD160 2455e832561b325c3cd379c56b0916ab2647542b ChangeLog 11500 SHA256 850d2e8fda38d56c8265204779b8f9ba0cc8daa924fb8956317aee138580be7b ChangeLog 11500 @@ -16,6 +13,9 @@ SHA256 7c64aad689e66d0c5d2a61941ae747c7707eaec77d217d61877c3f9d31c7f300 files/di MD5 f31de6220dc1b05c4ae5e7d0e4bb06bc files/digest-twisted-2.1.0 247 RMD160 42077382825c92fc5e929bdb19a1452dfdf9318d files/digest-twisted-2.1.0 247 SHA256 176d9d35264027ca7dcf72b0d34df0ecaa03d577138f9ce1b73bd436ce657fa2 files/digest-twisted-2.1.0 247 +MD5 3fa954d81a62bdb393e7a56df82d513c files/digest-twisted-2.2.0 247 +RMD160 d90e86737213df3b14ee67c14de08479185469a7 files/digest-twisted-2.2.0 247 +SHA256 ca85a35f8effefe40c79dd999de29da5cb548ff2606677cd2b3d52f35e8e13dd files/digest-twisted-2.2.0 247 MD5 7ec438488427334851e2eb977e4d8073 files/twistd.conf 277 RMD160 c959b879d6f7358b647c71c3b514a4a6c8a49eef files/twistd.conf 277 SHA256 aa2ffa5b128973bc0c58a1251b8bbb56f6f890728bc902805ea2db7606416119 files/twistd.conf 277 @@ -46,10 +46,6 @@ SHA256 1ff2d9ba4f1b641ea22269c72801b72581ad35479808d6755aea2caac25a9638 twisted- MD5 594fb659773dc51c1f0c8b03a4f24e90 twisted-2.1.0.ebuild 3044 RMD160 aa9f70996d8c2b2797e7f80e643277b04ad4bbc9 twisted-2.1.0.ebuild 3044 SHA256 46ad17bb5d27d534e9b5d5d43c24c4840e6e987dac5fbee4d2547f497e87582a twisted-2.1.0.ebuild 3044 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2 (GNU/Linux) - -iD8DBQFD5rzGJrHF4yAQTrARAjs3AJ9v9YjLpmNMXB8UGi87O1bjTIvU3QCgmOxb -c/dHXJuMh/MwHuRk3ZcT/UY= -=9Tq1 ------END PGP SIGNATURE----- +MD5 0a8ec7b5137b6181d8f9d2a1d24f055c twisted-2.2.0.ebuild 2960 +RMD160 6b5ac6efc1bea61ac54d180d1b8371784b159b37 twisted-2.2.0.ebuild 2960 +SHA256 b8d1d58edf9157778ef33da2da26f5b890b1d4a5876561382e02aff4e6f8fb48 twisted-2.2.0.ebuild 2960 diff --git a/dev-python/twisted/files/digest-twisted-2.2.0 b/dev-python/twisted/files/digest-twisted-2.2.0 new file mode 100644 index 000000000000..12337b77cc2b --- /dev/null +++ b/dev-python/twisted/files/digest-twisted-2.2.0 @@ -0,0 +1,3 @@ +MD5 4a9305e69cdcf01a594c4fe1ea1efc05 Twisted-2.2.0.tar.bz2 1285316 +RMD160 c11353da93878721c8549a0594363b9d8ee38e12 Twisted-2.2.0.tar.bz2 1285316 +SHA256 537ec738c23ced2ec4a9b7f7124c2cd9bded1308331442ced0f3de7cd7562387 Twisted-2.2.0.tar.bz2 1285316 diff --git a/dev-python/twisted/twisted-2.2.0.ebuild b/dev-python/twisted/twisted-2.2.0.ebuild new file mode 100644 index 000000000000..84f4f8debe94 --- /dev/null +++ b/dev-python/twisted/twisted-2.2.0.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-2.2.0.ebuild,v 1.1 2006/02/13 23:08:28 marienz Exp $ + +inherit eutils distutils versionator + +MY_P=Twisted-${PV} + +DESCRIPTION="An asynchronous networking framework written in Python" +HOMEPAGE="http://www.twistedmatrix.com/" +SRC_URI="http://tmrc.mit.edu/mirror/twisted/Twisted/$(get_version_component_range 1-2)/${MY_P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sh ~sparc ~x86" +IUSE="gtk serial crypt" + +DEPEND=">=dev-lang/python-2.2 + >=net-zope/zopeinterface-3.0.1 + serial? ( dev-python/pyserial ) + crypt? ( >=dev-python/pyopenssl-0.5.1 ) + gtk? ( >=dev-python/pygtk-1.99 )" + +S="${WORKDIR}/${MY_P}" + +DOCS="CREDITS INSTALL NEWS README" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-2.1.0-zsh-head.patch" +} + +src_install() { + distutils_src_install + + # get rid of this to prevent collision-protect from killing us. it + # is regenerated in pkg_postinst. + rm "${D}/usr/$(get_libdir)"/python*/site-packages/twisted/plugins/dropin.cache + + # weird pattern to avoid installing the index.xhtml page + doman doc/man/*.? + insinto /usr/share/doc/${PF} + doins -r $(find doc -mindepth 1 -maxdepth 1 -not -name man) + + # workaround for a possible portage bug + mkdir -p "${D}/etc/conf.d/" + 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() { + python_version + local tpath="${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/twisted" + # we have to remove the cache or removed plugins won't be removed + # from the cache (http://twistedmatrix.com/bugs/issue926) + [[ -e "${tpath}/plugins/dropin.cache" ]] && rm -f "${tpath}/plugins/dropin.cache" + if [[ -e "${tpath}/plugin.py" ]]; then + # twisted is still installed, update. + # we have to use getPlugIns here for <=twisted-2.0.1 compatibility + einfo "Regenerating plugin cache" + python -c "from twisted.plugin import IPlugin, getPlugIns;list(getPlugIns(IPlugin))" + fi +} + +pkg_postinst() { + distutils_pkg_postinst + update_plugin_cache +} + +pkg_postrm() { + distutils_pkg_postrm + update_plugin_cache +} + +src_test() { + python_version + + if has_version ">=dev-lang/python-2.3"; then + "${python}" setup.py install --root="${T}/tests" --no-compile || die + else + "${python}" setup.py install --root="${T}/tests" || die + fi + + cd "${T}/tests/usr/$(get_libdir)/python${PYVER}/site-packages/" || die + + # prevent it from pulling in plugins from already installed + # twisted packages + rm twisted/plugins/__init__.py || die + + # an empty file doesn't work because the tests check for + # docstrings in all packages + echo "'''plugins stub'''" > twisted/plugins/__init__.py || die + + "${T}"/tests/usr/bin/trial twisted || die "trial failed" + cd "${S}" + rm -rf "${T}/tests" +} |