Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/twisted: twisted-11.1.0.ebuild ChangeLog
Date: Tue, 27 Dec 2011 06:39:45
Message-Id: 20111227063932.879462004B@flycatcher.gentoo.org
1 floppym 11/12/27 06:39:32
2
3 Modified: ChangeLog
4 Added: twisted-11.1.0.ebuild
5 Log:
6 Version bump for bug 395825 by Ian Delaney. Bits and pieces by Arfrever.
7
8 (Portage version: 2.2.0_alpha83/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.150 dev-python/twisted/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted/ChangeLog?rev=1.150&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted/ChangeLog?rev=1.150&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted/ChangeLog?r1=1.149&r2=1.150
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v
20 retrieving revision 1.149
21 retrieving revision 1.150
22 diff -u -r1.149 -r1.150
23 --- ChangeLog 17 Jul 2011 10:57:03 -0000 1.149
24 +++ ChangeLog 27 Dec 2011 06:39:32 -0000 1.150
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/twisted
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v 1.149 2011/07/17 10:57:03 xarthisius Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v 1.150 2011/12/27 06:39:32 floppym Exp $
30 +
31 +*twisted-11.1.0 (27 Dec 2011)
32 +
33 + 27 Dec 2011; Mike Gilbert <floppym@g.o> +twisted-11.1.0.ebuild:
34 + Version bump for bug 395825 by Ian Delaney. Bits and pieces by Arfrever.
35
36 17 Jul 2011; Kacper Kowalik <xarthisius@g.o> twisted-11.0.0.ebuild:
37 ppc64 stable wrt #366131
38
39
40
41 1.1 dev-python/twisted/twisted-11.1.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted/twisted-11.1.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted/twisted-11.1.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: twisted-11.1.0.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-11.1.0.ebuild,v 1.1 2011/12/27 06:39:32 floppym Exp $
51
52 EAPI="4"
53 PYTHON_DEPEND="2"
54 SUPPORT_PYTHON_ABIS="1"
55 RESTRICT_PYTHON_ABIS="3.* *-jython"
56 MY_PACKAGE="Core"
57
58 inherit eutils twisted versionator
59
60 DESCRIPTION="An asynchronous networking framework written in Python"
61
62 LICENSE="MIT"
63 SLOT="0"
64 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"
65 IUSE="crypt gtk serial"
66
67 DEPEND="net-zope/zope-interface
68 crypt? ( >=dev-python/pyopenssl-0.10 )
69 gtk? ( dev-python/pygtk:2 )
70 serial? ( dev-python/pyserial )"
71 RDEPEND="${DEPEND}"
72
73 DOCS="CREDITS NEWS README"
74
75 src_prepare(){
76 distutils_src_prepare
77
78 # Give a load-sensitive test a better chance of succeeding.
79 epatch "${FILESDIR}/${PN}-2.1.0-echo-less.patch"
80
81 # Respect TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE variable.
82 epatch "${FILESDIR}/${PN}-9.0.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch"
83
84 if [[ "${EUID}" -eq 0 ]]; then
85 # Disable tests failing with root permissions.
86 sed \
87 -e "s/test_newPluginsOnReadOnlyPath/_&/" \
88 -e "s/test_deployedMode/_&/" \
89 -i twisted/test/test_plugin.py
90 fi
91 }
92
93 src_test() {
94 testing() {
95 local exit_status="0"
96 "$(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)"
97
98 pushd "${T}/tests${EPREFIX}$(python_get_sitedir)" > /dev/null || die
99
100 # Skip broken tests.
101 sed -e "s/test_buildAllTarballs/_&/" -i twisted/python/test/test_release.py || die "sed failed"
102
103 # http://twistedmatrix.com/trac/ticket/5375
104 sed -e "/class ZshIntegrationTestCase/,/^$/d" -i twisted/scripts/test/test_scripts.py || die "sed failed"
105
106 # Prevent it from pulling in plugins from already installed twisted packages.
107 rm -f twisted/plugins/__init__.py
108
109 # An empty file doesn't work because the tests check for doc strings in all packages.
110 echo "'''plugins stub'''" > twisted/plugins/__init__.py || die
111
112 if ! PYTHONPATH="." "${T}/tests${EPREFIX}/usr/bin/trial" twisted; then
113 if [[ -n "${TWISTED_DEBUG_TESTS}" ]]; then
114 die "Tests failed with $(python_get_implementation) $(python_get_version)"
115 else
116 exit_status="1"
117 fi
118 fi
119
120 popd > /dev/null || die
121 rm -fr "${T}/tests"
122 return "${exit_status}"
123 }
124 python_execute_function testing
125 }
126
127 src_install() {
128 distutils_src_install
129 python_clean_installation_image
130
131 python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/trial"
132
133 postinstallational_preparation() {
134 touch "${ED}$(python_get_sitedir)/Twisted-${PV}-py$(python_get_version).egg-info"
135
136 # Delete dropin.cache to avoid collisions.
137 # dropin.cache is regenerated in pkg_postinst().
138 rm -f "${ED}$(python_get_sitedir)/twisted/plugins/dropin.cache"
139 }
140 python_execute_function -q postinstallational_preparation
141
142 # Don't install index.xhtml page.
143 doman doc/man/*.?
144 insinto /usr/share/doc/${PF}
145 doins -r $(find doc -mindepth 1 -maxdepth 1 -not -name man)
146
147 newconfd "${FILESDIR}/twistd.conf" twistd
148 newinitd "${FILESDIR}/twistd.init" twistd
149 }