Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/twisted: ChangeLog twisted-9.0.0.ebuild
Date: Mon, 30 Nov 2009 01:29:38
Message-Id: E1NEv56-0001Zm-0l@stork.gentoo.org
1 arfrever 09/11/30 01:29:36
2
3 Modified: ChangeLog
4 Added: twisted-9.0.0.ebuild
5 Log:
6 Version bump (bug #294924).
7 (Portage version: 14920-svn/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.116 dev-python/twisted/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/ChangeLog?rev=1.116&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/ChangeLog?rev=1.116&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/ChangeLog?r1=1.115&r2=1.116
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v
19 retrieving revision 1.115
20 retrieving revision 1.116
21 diff -u -r1.115 -r1.116
22 --- ChangeLog 29 Nov 2009 13:06:47 -0000 1.115
23 +++ ChangeLog 30 Nov 2009 01:29:35 -0000 1.116
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-python/twisted
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v 1.115 2009/11/29 13:06:47 volkmar Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v 1.116 2009/11/30 01:29:35 arfrever Exp $
29 +
30 +*twisted-9.0.0 (30 Nov 2009)
31 +
32 + 30 Nov 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
33 + +twisted-9.0.0.ebuild:
34 + Version bump (bug #294924).
35
36 29 Nov 2009; Mounir Lamouri <volkmar@g.o> twisted-8.2.0-r2.ebuild:
37 Stable for ppc, bug 289680
38
39
40
41 1.1 dev-python/twisted/twisted-9.0.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/twisted-9.0.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/twisted-9.0.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: twisted-9.0.0.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-9.0.0.ebuild,v 1.1 2009/11/30 01:29:35 arfrever Exp $
51
52 EAPI="2"
53 SUPPORT_PYTHON_ABIS="1"
54
55 inherit distutils versionator
56
57 MY_P="TwistedCore-${PV}"
58
59 DESCRIPTION="An asynchronous networking framework written in Python"
60 HOMEPAGE="http://www.twistedmatrix.com/ http://pypi.python.org/pypi/Twisted"
61 SRC_URI="http://tmrc.mit.edu/mirror/${PN}/Core/$(get_version_component_range 1-2)/${MY_P}.tar.bz2"
62
63 LICENSE="MIT"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
66 IUSE="crypt gtk serial"
67
68 DEPEND=">=net-zope/zope-interface-3.0.1
69 serial? ( dev-python/pyserial )
70 crypt? ( >=dev-python/pyopenssl-0.5.1 )
71 gtk? ( >=dev-python/pygtk-1.99 )
72 !dev-python/twisted-docs"
73 RDEPEND="${DEPEND}"
74
75 RESTRICT_PYTHON_ABIS="3*"
76
77 S="${WORKDIR}/${MY_P}"
78
79 DOCS="CREDITS NEWS README"
80
81 src_prepare(){
82 # Give a load-sensitive test a better chance of succeeding.
83 epatch "${FILESDIR}/${PN}-2.1.0-echo-less.patch"
84
85 # Pass valid arguments to "head" in the zsh completion function.
86 epatch "${FILESDIR}/${PN}-2.1.0-zsh-head.patch"
87 }
88
89 src_test() {
90 testing() {
91 "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --root="${T}/tests" --no-compile || die "Installation of tests failed with Python ${PYTHON_ABI}"
92
93 pushd "${T}/tests$(python_get_sitedir)" > /dev/null || die
94
95 # Skip broken tests.
96 rm -f twisted/python/test/test_release.py
97
98 # Prevent it from pulling in plugins from already installed twisted packages.
99 rm -f twisted/plugins/__init__.py
100
101 # An empty file doesn't work because the tests check for
102 # docstrings in all packages
103 echo "'''plugins stub'''" > twisted/plugins/__init__.py || die
104
105 PYTHONPATH=. "${T}/tests/usr/bin/trial" twisted || die "trial failed with Python ${PYTHON_ABI}"
106
107 popd > /dev/null || die
108 rm -fr "${T}/tests"
109 }
110 python_execute_function testing
111 }
112
113 src_install() {
114 distutils_src_install
115
116 # get rid of this to prevent collision-protect from killing us. it
117 # is regenerated in pkg_postinst.
118 rm -f "${D}/usr/$(get_libdir)"/python*/site-packages/twisted/plugins/dropin.cache
119
120 # weird pattern to avoid installing the index.xhtml page
121 doman doc/man/*.?
122 insinto /usr/share/doc/${PF}
123 doins -r $(find doc -mindepth 1 -maxdepth 1 -not -name man)
124
125 newconfd "${FILESDIR}/twistd.conf" twistd
126 newinitd "${FILESDIR}/twistd.init" twistd
127
128 # zsh completion
129 insinto /usr/share/zsh/site-functions/
130 doins twisted/python/_twisted_zsh_stub
131 }
132
133 update_plugin_cache() {
134 local tpath="${ROOT}$(python_get_sitedir)/twisted"
135 # we have to remove the cache or removed plugins won't be removed
136 # from the cache (http://twistedmatrix.com/bugs/issue926)
137 [[ -e "${tpath}/plugins/dropin.cache" ]] && rm -f "${tpath}/plugins/dropin.cache"
138 if [[ -e "${tpath}/plugin.py" ]]; then
139 # twisted is still installed, update.
140 # we have to use getPlugIns here for <=twisted-2.0.1 compatibility
141 einfo "Regenerating plugin cache"
142 "$(PYTHON)" -c "from twisted.plugin import IPlugin, getPlugIns;list(getPlugIns(IPlugin))"
143 fi
144 }
145
146 pkg_postinst() {
147 distutils_pkg_postinst
148 python_execute_function update_plugin_cache
149 }
150
151 pkg_postrm() {
152 distutils_pkg_postrm
153 python_execute_function update_plugin_cache
154 }