Bump
authorPatrick Lauer <patrick@gentoo.org>
Wed, 17 Mar 2010 10:42:19 +0000 (10:42 +0000)
committerPatrick Lauer <patrick@gentoo.org>
Wed, 17 Mar 2010 10:42:19 +0000 (10:42 +0000)
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64

18 files changed:
dev-python/twisted-conch/ChangeLog
dev-python/twisted-conch/twisted-conch-10.0.0.ebuild [new file with mode: 0644]
dev-python/twisted-lore/ChangeLog
dev-python/twisted-lore/twisted-lore-10.0.0.ebuild [new file with mode: 0644]
dev-python/twisted-mail/ChangeLog
dev-python/twisted-mail/twisted-mail-10.0.0.ebuild [new file with mode: 0644]
dev-python/twisted-names/ChangeLog
dev-python/twisted-names/twisted-names-10.0.0.ebuild [new file with mode: 0644]
dev-python/twisted-news/ChangeLog
dev-python/twisted-news/twisted-news-10.0.0.ebuild [new file with mode: 0644]
dev-python/twisted-runner/ChangeLog
dev-python/twisted-runner/twisted-runner-10.0.0.ebuild [new file with mode: 0644]
dev-python/twisted-web/ChangeLog
dev-python/twisted-web/twisted-web-10.0.0.ebuild [new file with mode: 0644]
dev-python/twisted-words/ChangeLog
dev-python/twisted-words/twisted-words-10.0.0.ebuild [new file with mode: 0644]
dev-python/twisted/ChangeLog
dev-python/twisted/twisted-10.0.0.ebuild [new file with mode: 0644]

index f88c6c8953ca92a2e5d5801dd18efcdcd04c9c9c..62ac6f962231659c9dc04c3998427e939ed94aef 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-python/twisted-conch
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-conch/ChangeLog,v 1.54 2010/02/13 17:42:31 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-conch/ChangeLog,v 1.55 2010/03/17 10:39:45 patrick Exp $
+
+*twisted-conch-10.0.0 (17 Mar 2010)
+
+  17 Mar 2010; Patrick Lauer <patrick@gentoo.org>
+  +twisted-conch-10.0.0.ebuild:
+  Bump
 
   13 Feb 2010; Raúl Porcel <armin76@gentoo.org> twisted-conch-9.0.0.ebuild:
   alpha/arm/ia64/s390/sh/sparc stable wrt #300702
diff --git a/dev-python/twisted-conch/twisted-conch-10.0.0.ebuild b/dev-python/twisted-conch/twisted-conch-10.0.0.ebuild
new file mode 100644 (file)
index 0000000..fcd3bcb
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-conch/twisted-conch-10.0.0.ebuild,v 1.1 2010/03/17 10:39:45 patrick Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+MY_PACKAGE="Conch"
+
+inherit twisted versionator
+
+DESCRIPTION="Twisted SSHv2 implementation"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+DEPEND="=dev-python/twisted-$(get_version_component_range 1-2)*
+       >=dev-python/pycrypto-1.9_alpha6"
+RDEPEND="${DEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
+
+PYTHON_MODNAME="twisted/conch twisted/plugins"
+
+src_prepare() {
+       distutils_src_prepare
+       # These tests sometimes fail with "reason 11, desc: disconnected by user".
+       sed -e "s/test_extendedAttributes/_&/" -i twisted/conch/test/test_cftp.py || die "sed failed"
+       sed -e "s/test_exec/_&/" -i twisted/conch/test/test_conch.py || die "sed failed"
+}
index c2d84a42df45c187a4fed0387a7ab9d9048d4f62..715e44ee0c45bae815c8a1ef827f2ea4f2738ab1 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-python/twisted-lore
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-lore/ChangeLog,v 1.39 2010/02/13 17:45:14 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-lore/ChangeLog,v 1.40 2010/03/17 10:40:07 patrick Exp $
+
+*twisted-lore-10.0.0 (17 Mar 2010)
+
+  17 Mar 2010; Patrick Lauer <patrick@gentoo.org>
+  +twisted-lore-10.0.0.ebuild:
+  Bump
 
   13 Feb 2010; Raúl Porcel <armin76@gentoo.org> twisted-lore-9.0.0.ebuild:
   alpha/ia64/sparc stable wrt #300702
diff --git a/dev-python/twisted-lore/twisted-lore-10.0.0.ebuild b/dev-python/twisted-lore/twisted-lore-10.0.0.ebuild
new file mode 100644 (file)
index 0000000..861eb40
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-lore/twisted-lore-10.0.0.ebuild,v 1.1 2010/03/17 10:40:07 patrick Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+MY_PACKAGE="Lore"
+
+inherit twisted versionator
+
+DESCRIPTION="Twisted documentation system"
+
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DEPEND="=dev-python/twisted-$(get_version_component_range 1-2)*
+       dev-python/twisted-web"
+RDEPEND="${DEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
+
+PYTHON_MODNAME="twisted/lore twisted/plugins"
index c3faacf664f55890b20d1c6b2ab90c98ecbcab81..3fbf291f9e00b6264e321b0af0abc0ab70c0286d 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-python/twisted-mail
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-mail/ChangeLog,v 1.46 2010/02/13 17:44:36 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-mail/ChangeLog,v 1.47 2010/03/17 10:40:28 patrick Exp $
+
+*twisted-mail-10.0.0 (17 Mar 2010)
+
+  17 Mar 2010; Patrick Lauer <patrick@gentoo.org>
+  +twisted-mail-10.0.0.ebuild:
+  Bump
 
   13 Feb 2010; Raúl Porcel <armin76@gentoo.org> twisted-mail-9.0.0.ebuild:
   alpha/arm/ia64/s390/sh/sparc stable wrt #300702
diff --git a/dev-python/twisted-mail/twisted-mail-10.0.0.ebuild b/dev-python/twisted-mail/twisted-mail-10.0.0.ebuild
new file mode 100644 (file)
index 0000000..830399d
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-mail/twisted-mail-10.0.0.ebuild,v 1.1 2010/03/17 10:40:28 patrick Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+MY_PACKAGE="Mail"
+
+inherit twisted versionator
+
+DESCRIPTION="A Twisted Mail library, server and client"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="=dev-python/twisted-$(get_version_component_range 1-2)*
+       >=dev-python/twisted-names-0.2.0"
+RDEPEND="${DEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
+
+PYTHON_MODNAME="twisted/mail twisted/plugins"
index 5c0314a2fd87ae9923fe442e577da7ff91136128..62bfac99915e23d04e8a89e88f35fca53a6ba903 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-python/twisted-names
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-names/ChangeLog,v 1.44 2010/02/13 17:41:50 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-names/ChangeLog,v 1.45 2010/03/17 10:40:50 patrick Exp $
+
+*twisted-names-10.0.0 (17 Mar 2010)
+
+  17 Mar 2010; Patrick Lauer <patrick@gentoo.org>
+  +twisted-names-10.0.0.ebuild:
+  Bump
 
   13 Feb 2010; Raúl Porcel <armin76@gentoo.org> twisted-names-9.0.0.ebuild:
   alpha/arm/ia64/s390/sh/sparc stable wrt #300702
diff --git a/dev-python/twisted-names/twisted-names-10.0.0.ebuild b/dev-python/twisted-names/twisted-names-10.0.0.ebuild
new file mode 100644 (file)
index 0000000..9681d68
--- /dev/null
@@ -0,0 +1,20 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-names/twisted-names-10.0.0.ebuild,v 1.1 2010/03/17 10:40:50 patrick Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+MY_PACKAGE="Names"
+
+inherit twisted versionator
+
+DESCRIPTION="A Twisted DNS implementation"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="=dev-python/twisted-$(get_version_component_range 1-2)*"
+RDEPEND="${DEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
+
+PYTHON_MODNAME="twisted/names twisted/plugins"
index 7940073225f8a21964453620f3465efef6eb27b0..0ef109de47cc95e858b623c6feb3877b8bffb0cb 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-python/twisted-news
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-news/ChangeLog,v 1.37 2010/02/13 17:47:21 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-news/ChangeLog,v 1.38 2010/03/17 10:41:12 patrick Exp $
+
+*twisted-news-10.0.0 (17 Mar 2010)
+
+  17 Mar 2010; Patrick Lauer <patrick@gentoo.org>
+  +twisted-news-10.0.0.ebuild:
+  Bump
 
   13 Feb 2010; Raúl Porcel <armin76@gentoo.org> twisted-news-9.0.0.ebuild:
   alpha/ia64/sparc stable wrt #300702
diff --git a/dev-python/twisted-news/twisted-news-10.0.0.ebuild b/dev-python/twisted-news/twisted-news-10.0.0.ebuild
new file mode 100644 (file)
index 0000000..646bae5
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-news/twisted-news-10.0.0.ebuild,v 1.1 2010/03/17 10:41:12 patrick Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+MY_PACKAGE="News"
+
+inherit twisted versionator
+
+DESCRIPTION="Twisted News is an NNTP server and programming library."
+
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DEPEND="=dev-python/twisted-$(get_version_component_range 1-2)*
+       dev-python/twisted-mail"
+RDEPEND="${DEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
+
+PYTHON_MODNAME="twisted/news twisted/plugins"
index 62be0e23651ed69233d1434676fe222cc4cf871e..ac109b3739eaf94b3734ac688673c7c08f664136 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-python/twisted-runner
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-runner/ChangeLog,v 1.36 2010/02/13 17:43:07 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-runner/ChangeLog,v 1.37 2010/03/17 10:41:34 patrick Exp $
+
+*twisted-runner-10.0.0 (17 Mar 2010)
+
+  17 Mar 2010; Patrick Lauer <patrick@gentoo.org>
+  +twisted-runner-10.0.0.ebuild:
+  Bump
 
   13 Feb 2010; Raúl Porcel <armin76@gentoo.org>
   twisted-runner-9.0.0.ebuild:
diff --git a/dev-python/twisted-runner/twisted-runner-10.0.0.ebuild b/dev-python/twisted-runner/twisted-runner-10.0.0.ebuild
new file mode 100644 (file)
index 0000000..15e521d
--- /dev/null
@@ -0,0 +1,22 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-runner/twisted-runner-10.0.0.ebuild,v 1.1 2010/03/17 10:41:34 patrick Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+MY_PACKAGE="Runner"
+
+inherit twisted versionator
+
+DESCRIPTION="Twisted Runner is a process management library and inetd replacement."
+
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DEPEND="=dev-python/twisted-$(get_version_component_range 1)*"
+RDEPEND="${DEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
+
+PROVIDE="virtual/inetd"
+
+PYTHON_MODNAME="twisted/runner"
index 19a3df264b131c7b92de82126a6b8fd9a9ceb4af..2f5750b7c0daccce4efb713f8097a5a43b523751 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-python/twisted-web
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-web/ChangeLog,v 1.54 2010/02/13 17:40:21 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-web/ChangeLog,v 1.55 2010/03/17 10:41:56 patrick Exp $
+
+*twisted-web-10.0.0 (17 Mar 2010)
+
+  17 Mar 2010; Patrick Lauer <patrick@gentoo.org>
+  +twisted-web-10.0.0.ebuild:
+  Bump
 
   13 Feb 2010; Raúl Porcel <armin76@gentoo.org> twisted-web-9.0.0.ebuild:
   alpha/arm/ia64/s390/sh/sparc stable wrt #300702
diff --git a/dev-python/twisted-web/twisted-web-10.0.0.ebuild b/dev-python/twisted-web/twisted-web-10.0.0.ebuild
new file mode 100644 (file)
index 0000000..dde82a6
--- /dev/null
@@ -0,0 +1,26 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-web/twisted-web-10.0.0.ebuild,v 1.1 2010/03/17 10:41:56 patrick Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+MY_PACKAGE="Web"
+
+inherit eutils twisted versionator
+
+DESCRIPTION="Twisted web server, programmable in Python"
+
+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 ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="soap"
+
+DEPEND="=dev-python/twisted-$(get_version_component_range 1-2)*
+       soap? ( dev-python/soappy )"
+RDEPEND="${DEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
+
+PYTHON_MODNAME="twisted/plugins twisted/web"
+
+src_prepare() {
+       distutils_src_prepare
+       epatch "${FILESDIR}/${PN}-0.5.0-root-skip.patch"
+}
index 5fb6294b69043e285e42c0b7774f789e5b79b614..bf417f0c9778ec79dd26d86c0ca1bcdb73a47d6f 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-python/twisted-words
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-words/ChangeLog,v 1.47 2010/02/13 17:46:43 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-words/ChangeLog,v 1.48 2010/03/17 10:42:19 patrick Exp $
+
+*twisted-words-10.0.0 (17 Mar 2010)
+
+  17 Mar 2010; Patrick Lauer <patrick@gentoo.org>
+  +twisted-words-10.0.0.ebuild:
+  Bump
 
   13 Feb 2010; Raúl Porcel <armin76@gentoo.org> twisted-words-9.0.0.ebuild:
   alpha/arm/ia64/s390/sh/sparc stable wrt #300702
diff --git a/dev-python/twisted-words/twisted-words-10.0.0.ebuild b/dev-python/twisted-words/twisted-words-10.0.0.ebuild
new file mode 100644 (file)
index 0000000..6b8de55
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-words/twisted-words-10.0.0.ebuild,v 1.1 2010/03/17 10:42:19 patrick Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+MY_PACKAGE="Words"
+
+inherit twisted
+
+DESCRIPTION="Twisted Words contains Instant Messaging implementations."
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+DEPEND="=dev-python/twisted-$(get_version_component_range 1)*
+       =dev-python/twisted-web-$(get_version_component_range 1)*"
+RDEPEND="${DEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
+
+PYTHON_MODNAME="twisted/plugins twisted/words"
+
+src_install() {
+       twisted_src_install
+
+       # Remove the "im" script, because we do not depend on the required pygtk.
+       rm -fr "${D}"usr/{bin,share/man}
+}
index 201ed19dc4b3ef08824413c283aff20f5cdf34b3..17edd0948fa22e01a1e4eb5e24f871bf5d760c46 100644 (file)
@@ -1,6 +1,11 @@
 # 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.126 2010/02/13 17:38:50 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v 1.127 2010/03/17 10:39:23 patrick Exp $
+
+*twisted-10.0.0 (17 Mar 2010)
+
+  17 Mar 2010; Patrick Lauer <patrick@gentoo.org> +twisted-10.0.0.ebuild:
+  Bump
 
   13 Feb 2010; Raúl Porcel <armin76@gentoo.org> twisted-9.0.0-r1.ebuild:
   alpha/arm/ia64/s390/sh/sparc stable wrt #300702
diff --git a/dev-python/twisted/twisted-10.0.0.ebuild b/dev-python/twisted/twisted-10.0.0.ebuild
new file mode 100644 (file)
index 0000000..40f26c4
--- /dev/null
@@ -0,0 +1,120 @@
+# 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.0.0.ebuild,v 1.1 2010/03/17 10:39:23 patrick Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit eutils distutils 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
+       serial? ( dev-python/pyserial )
+       crypt? ( >=dev-python/pyopenssl-0.5.1 )
+       gtk? ( >=dev-python/pygtk-1.99 )
+       !dev-python/twisted-docs"
+RDEPEND="${DEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="CREDITS NEWS README"
+
+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}/twisted-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 ${PYTHON_ABI}"
+
+               pushd "${T}/tests$(python_get_sitedir)" > /dev/null || die
+
+               # Skip broken tests.
+               rm -f twisted/python/test/test_release.py
+
+               # 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
+               # docstrings in all packages
+               echo "'''plugins stub'''" > twisted/plugins/__init__.py || die
+
+               if ! PYTHONPATH="." "${T}/tests/usr/bin/trial" twisted; then
+                       if [[ -n "${TWISTED_DEBUG_TESTS}" ]]; then
+                               die "Tests failed with Python ${PYTHON_ABI}"
+                       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 "${D%/}${EPREFIX}/usr/bin/trial"
+
+       create_twisted_egg-info() {
+               touch "${D%/}${EPREFIX}/$(python_get_sitedir)/Twisted-${PV}-py${PYTHON_ABI}.egg-info"
+       }
+       python_execute_function create_twisted_egg-info
+
+       # Delete dropin.cache to avoid collisions.
+       # dropin.cache is regenerated in pkg_postinst().
+       rm -f "${D%/}${EPREFIX}/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)
+
+       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() {
+       # Update dropin.cache only when Twisted is still installed.
+       if [[ -f "${ROOT%/}${EPREFIX}$(python_get_sitedir)/twisted/plugin.py" ]]; then
+               einfo "Regenerating plugin cache with Python ${PYTHON_ABI}"
+               # http://twistedmatrix.com/documents/current/core/howto/plugin.html
+               "$(PYTHON)" -c "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
+}