diff options
author | Patrick Lauer <patrick@gentoo.org> | 2009-01-08 23:11:21 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2009-01-08 23:11:21 +0000 |
commit | dc30be5e6b5677c7f977aa6b1ee2b28e5f213d43 (patch) | |
tree | 77de6d2303ca0bb2b3a5037e3b262d489f4d38b3 /dev-python/twisted | |
parent | Bump dependency on hibernate-script to 1.99. (diff) | |
download | historical-dc30be5e6b5677c7f977aa6b1ee2b28e5f213d43.tar.gz historical-dc30be5e6b5677c7f977aa6b1ee2b28e5f213d43.tar.bz2 historical-dc30be5e6b5677c7f977aa6b1ee2b28e5f213d43.zip |
remove old
Package-Manager: portage-2.2_rc20/cvs/Linux 2.6.28 x86_64
Diffstat (limited to 'dev-python/twisted')
-rw-r--r-- | dev-python/twisted/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/twisted/twisted-1.2.0.ebuild | 34 | ||||
-rw-r--r-- | dev-python/twisted/twisted-1.3.0.ebuild | 36 | ||||
-rw-r--r-- | dev-python/twisted/twisted-2.0.1.ebuild | 102 | ||||
-rw-r--r-- | dev-python/twisted/twisted-2.1.0.ebuild | 107 | ||||
-rw-r--r-- | dev-python/twisted/twisted-2.2.0.ebuild | 108 | ||||
-rw-r--r-- | dev-python/twisted/twisted-2.4.0.ebuild | 111 | ||||
-rw-r--r-- | dev-python/twisted/twisted-2.5.0.ebuild | 108 | ||||
-rw-r--r-- | dev-python/twisted/twisted-8.0.1.ebuild | 108 |
9 files changed, 7 insertions, 715 deletions
diff --git a/dev-python/twisted/ChangeLog b/dev-python/twisted/ChangeLog index 220955e15ec7..e3cffaf20a15 100644 --- a/dev-python/twisted/ChangeLog +++ b/dev-python/twisted/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/twisted # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v 1.100 2009/01/08 22:44:59 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v 1.101 2009/01/08 23:11:21 patrick Exp $ + + 08 Jan 2009; Patrick Lauer <patrick@gentoo.org> -twisted-1.2.0.ebuild, + -twisted-1.3.0.ebuild, -twisted-2.0.1.ebuild, -twisted-2.1.0.ebuild, + -twisted-2.2.0.ebuild, -twisted-2.4.0.ebuild, -twisted-2.5.0.ebuild, + -twisted-8.0.1.ebuild: + Remove old *twisted-8.2.0 (08 Jan 2009) diff --git a/dev-python/twisted/twisted-1.2.0.ebuild b/dev-python/twisted/twisted-1.2.0.ebuild deleted file mode 100644 index 22778e7bb62c..000000000000 --- a/dev-python/twisted/twisted-1.2.0.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-1.2.0.ebuild,v 1.15 2008/05/25 20:23:51 lordvan Exp $ - -inherit distutils - -DESCRIPTION="An asynchronous networking framework written in Python" -HOMEPAGE="http://www.twistedmatrix.com/" -SRC_URI="http://twisted.sourceforge.net/Twisted_NoDocs-${PV}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="x86 amd64 ppc alpha" -IUSE="gtk doc" - -DEPEND=">=dev-lang/python-2.2 - >=dev-python/pycrypto-1.9_alpha6 - dev-python/pyserial - dev-python/pyopenssl - gtk? ( >=dev-python/pygtk-1.99 ) - doc? ( =dev-python/twisted-docs-${PV} )" - -S="${WORKDIR}/Twisted-${PV}" - -src_install() { - distutils_src_install - - # use gtk2 if they so wish - if use gtk; then - sed -e 's/import manhole/import manhole2/' \ - -e 's/manhole\.run()/manhole2.run()/' \ - -i '${D}/usr/bin/manhole' - fi -} diff --git a/dev-python/twisted/twisted-1.3.0.ebuild b/dev-python/twisted/twisted-1.3.0.ebuild deleted file mode 100644 index 31ed8b33399e..000000000000 --- a/dev-python/twisted/twisted-1.3.0.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-1.3.0.ebuild,v 1.12 2008/05/25 20:23:51 lordvan Exp $ - -inherit distutils - -# for alphas,.. -MY_PV="${PV/_alpha/alpha}" -DESCRIPTION="An asynchronous networking framework written in Python" -HOMEPAGE="http://www.twistedmatrix.com/" -SRC_URI="http://twisted.sourceforge.net/Twisted_NoDocs-${MY_PV}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="alpha ~amd64 ia64 ~ppc ~sparc ~x86" -IUSE="gtk doc" - -DEPEND=">=dev-lang/python-2.2 - >=dev-python/pycrypto-1.9_alpha6 - dev-python/pyserial - dev-python/pyopenssl - gtk? ( >=dev-python/pygtk-1.99 ) - doc? ( =dev-python/twisted-docs-${PV} )" - -S=${WORKDIR}/Twisted-${MY_PV} - -src_install() { - distutils_src_install - - # use gtk2 if they so wish - if use gtk; then - sed -e 's/import manhole/import manhole2/' \ - -e 's/manhole\.run()/manhole2.run()/' \ - -i '${D}/usr/bin/manhole' - fi -} diff --git a/dev-python/twisted/twisted-2.0.1.ebuild b/dev-python/twisted/twisted-2.0.1.ebuild deleted file mode 100644 index 137102a85c10..000000000000 --- a/dev-python/twisted/twisted-2.0.1.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-2.0.1.ebuild,v 1.12 2008/05/25 20:23:51 lordvan 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 ppc 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 ) - !dev-python/twisted-docs" - -S="${WORKDIR}/${MY_P}" - -DOCS="ChangeLog CREDITS INSTALL NEWS README" - -src_unpack() { - unpack ${A} - cd "${S}" - # give a load-sensitive test a better chance of succeeding - epatch "${FILESDIR}/${P}-echo-less.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 - - PYTHONPATH=. "${T}"/tests/usr/bin/trial -R twisted || die "trial failed" -} diff --git a/dev-python/twisted/twisted-2.1.0.ebuild b/dev-python/twisted/twisted-2.1.0.ebuild deleted file mode 100644 index 9f8420796d46..000000000000 --- a/dev-python/twisted/twisted-2.1.0.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-2.1.0.ebuild,v 1.9 2008/05/25 20:23:51 lordvan 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 ) - !dev-python/twisted-docs" - -S="${WORKDIR}/${MY_P}" - -DOCS="CREDITS INSTALL NEWS README" - -src_unpack() { - unpack ${A} - cd "${S}" - # give a load-sensitive test a better chance of succeeding - epatch "${FILESDIR}/${P}-echo-less.patch" - epatch "${FILESDIR}/${P}-trial-tests.patch" - epatch "${FILESDIR}/${P}-trial-tests2.patch" - epatch "${FILESDIR}/${P}-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 - - PYTHONPATH=. "${T}"/tests/usr/bin/trial twisted || die "trial failed" - cd "${S}" - rm -rf "${T}/tests" -} diff --git a/dev-python/twisted/twisted-2.2.0.ebuild b/dev-python/twisted/twisted-2.2.0.ebuild deleted file mode 100644 index 86597e200be7..000000000000 --- a/dev-python/twisted/twisted-2.2.0.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2008 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.9 2008/05/25 20:23:51 lordvan 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 ~hppa ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" -IUSE="gtk serial crypt" - -DEPEND=">=dev-lang/python-2.3 - >=net-zope/zopeinterface-3.0.1 - serial? ( dev-python/pyserial ) - crypt? ( >=dev-python/pyopenssl-0.5.1 ) - gtk? ( >=dev-python/pygtk-1.99 ) - !dev-python/twisted-docs" - -S="${WORKDIR}/${MY_P}" - -DOCS="CREDITS INSTALL NEWS README" - -src_unpack() { - unpack ${A} - cd "${S}" - - # 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" -} - -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 - - PYTHONPATH=. "${T}"/tests/usr/bin/trial twisted || die "trial failed" - cd "${S}" - rm -rf "${T}/tests" -} diff --git a/dev-python/twisted/twisted-2.4.0.ebuild b/dev-python/twisted/twisted-2.4.0.ebuild deleted file mode 100644 index 54b974c18cfb..000000000000 --- a/dev-python/twisted/twisted-2.4.0.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-2.4.0.ebuild,v 1.12 2008/05/25 20:23:51 lordvan Exp $ - -inherit eutils distutils versionator - -MY_P=TwistedCore-${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 arm hppa ia64 ppc ppc64 s390 sh sparc x86" -IUSE="gtk serial crypt" - -DEPEND=">=dev-lang/python-2.3 - >=net-zope/zopeinterface-3.0.1 - serial? ( dev-python/pyserial ) - crypt? ( >=dev-python/pyopenssl-0.5.1 ) - gtk? ( >=dev-python/pygtk-1.99 ) - !dev-python/twisted-docs" - -S="${WORKDIR}/${MY_P}" - -DOCS="CREDITS INSTALL NEWS README" - -src_unpack() { - unpack ${A} - cd "${S}" - - # 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" - - # Remove a mostly-empty file with a syntax error ("???" placeholder) - rm twisted/test/stdio_test_halfclose.py -} - -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 - - PYTHONPATH=. "${T}"/tests/usr/bin/trial twisted || die "trial failed" - cd "${S}" - rm -rf "${T}/tests" -} diff --git a/dev-python/twisted/twisted-2.5.0.ebuild b/dev-python/twisted/twisted-2.5.0.ebuild deleted file mode 100644 index a5108f60043d..000000000000 --- a/dev-python/twisted/twisted-2.5.0.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-2.5.0.ebuild,v 1.3 2008/05/25 20:23:51 lordvan Exp $ - -inherit eutils distutils versionator - -MY_P=TwistedCore-${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 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="gtk serial crypt" - -DEPEND=">=dev-lang/python-2.3 - >=net-zope/zopeinterface-3.0.1 - serial? ( dev-python/pyserial ) - crypt? ( >=dev-python/pyopenssl-0.5.1 ) - gtk? ( >=dev-python/pygtk-1.99 ) - !dev-python/twisted-docs" - -S=${WORKDIR}/${MY_P} - -DOCS="CREDITS INSTALL NEWS README" - -src_unpack() { - unpack ${A} - cd "${S}" - - # 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" -} - -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 - - PYTHONPATH=. "${T}"/tests/usr/bin/trial twisted || die "trial failed" - cd "${S}" - rm -rf "${T}/tests" -} diff --git a/dev-python/twisted/twisted-8.0.1.ebuild b/dev-python/twisted/twisted-8.0.1.ebuild deleted file mode 100644 index f307434dd1f0..000000000000 --- a/dev-python/twisted/twisted-8.0.1.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-8.0.1.ebuild,v 1.2 2008/05/20 17:53:17 cardoe Exp $ - -inherit eutils distutils versionator - -MY_P=TwistedCore-${PV} - -DESCRIPTION="An asynchronous networking framework written in Python" -HOMEPAGE="http://www.twistedmatrix.com/" -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" -IUSE="gtk serial crypt" - -DEPEND=">=dev-lang/python-2.3 - >=net-zope/zopeinterface-3.0.1 - serial? ( dev-python/pyserial ) - crypt? ( >=dev-python/pyopenssl-0.5.1 ) - gtk? ( >=dev-python/pygtk-1.99 ) - !dev-python/twisted-docs" - -S=${WORKDIR}/${MY_P} - -DOCS="CREDITS NEWS README" - -src_unpack() { - unpack ${A} - cd "${S}" - - # 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" -} - -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 - - PYTHONPATH=. "${T}"/tests/usr/bin/trial twisted || die "trial failed" - cd "${S}" - rm -rf "${T}/tests" -} |