public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-python/twisted: twisted-10.0.0.ebuild ChangeLog
@ 2010-03-17 10:39 Patrick Lauer (patrick)
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick Lauer (patrick) @ 2010-03-17 10:39 UTC (permalink / raw
  To: gentoo-commits

patrick     10/03/17 10:39:24

  Modified:             ChangeLog
  Added:                twisted-10.0.0.ebuild
  Log:
  Bump
  (Portage version: 2.2_rc67/cvs/Linux x86_64)

Revision  Changes    Path
1.127                dev-python/twisted/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/ChangeLog?rev=1.127&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/ChangeLog?rev=1.127&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/ChangeLog?r1=1.126&r2=1.127

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -r1.126 -r1.127
--- ChangeLog	13 Feb 2010 17:38:50 -0000	1.126
+++ ChangeLog	17 Mar 2010 10:39:23 -0000	1.127
@@ -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



1.1                  dev-python/twisted/twisted-10.0.0.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/twisted-10.0.0.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/twisted-10.0.0.ebuild?rev=1.1&content-type=text/plain

Index: twisted-10.0.0.ebuild
===================================================================
# 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
}






^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-python/twisted: twisted-10.0.0.ebuild ChangeLog
@ 2010-04-23  8:48 Fabian Groffen (grobian)
  0 siblings, 0 replies; 2+ messages in thread
From: Fabian Groffen (grobian) @ 2010-04-23  8:48 UTC (permalink / raw
  To: gentoo-commits

grobian     10/04/23 08:48:42

  Modified:             twisted-10.0.0.ebuild ChangeLog
  Log:
  Fix src_test for Prefix, thanks Dan Wallis in bug #316739
  (Portage version: 2.2.00.15842-prefix/cvs/SunOS i386)

Revision  Changes    Path
1.2                  dev-python/twisted/twisted-10.0.0.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/twisted-10.0.0.ebuild?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/twisted-10.0.0.ebuild?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/twisted-10.0.0.ebuild?r1=1.1&r2=1.2

Index: twisted-10.0.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-10.0.0.ebuild,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- twisted-10.0.0.ebuild	17 Mar 2010 10:39:23 -0000	1.1
+++ twisted-10.0.0.ebuild	23 Apr 2010 08:48:42 -0000	1.2
@@ -1,8 +1,8 @@
 # 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 $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/twisted-10.0.0.ebuild,v 1.2 2010/04/23 08:48:42 grobian Exp $
 
-EAPI="2"
+EAPI="3"
 SUPPORT_PYTHON_ABIS="1"
 
 inherit eutils distutils versionator
@@ -46,7 +46,7 @@
 		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
+		pushd "${T}/tests${EPREFIX}$(python_get_sitedir)" > /dev/null || die
 
 		# Skip broken tests.
 		rm -f twisted/python/test/test_release.py
@@ -58,7 +58,7 @@
 		# docstrings in all packages
 		echo "'''plugins stub'''" > twisted/plugins/__init__.py || die
 
-		if ! PYTHONPATH="." "${T}/tests/usr/bin/trial" twisted; then
+		if ! PYTHONPATH="." "${T}/tests${EPREFIX}/usr/bin/trial" twisted; then
 			if [[ -n "${TWISTED_DEBUG_TESTS}" ]]; then
 				die "Tests failed with Python ${PYTHON_ABI}"
 			else
@@ -102,7 +102,7 @@
 
 update_plugin_cache() {
 	# Update dropin.cache only when Twisted is still installed.
-	if [[ -f "${ROOT%/}${EPREFIX}$(python_get_sitedir)/twisted/plugin.py" ]]; then
+	if [[ -f "${EROOT%/}$(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))"



1.128                dev-python/twisted/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/ChangeLog?rev=1.128&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/ChangeLog?rev=1.128&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/ChangeLog?r1=1.127&r2=1.128

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -r1.127 -r1.128
--- ChangeLog	17 Mar 2010 10:39:23 -0000	1.127
+++ ChangeLog	23 Apr 2010 08:48:42 -0000	1.128
@@ -1,6 +1,9 @@
 # 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.127 2010/03/17 10:39:23 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted/ChangeLog,v 1.128 2010/04/23 08:48:42 grobian Exp $
+
+  23 Apr 2010; Fabian Groffen <grobian@gentoo.org> twisted-10.0.0.ebuild:
+  Fix src_test for Prefix, thanks Dan Wallis in bug #316739
 
 *twisted-10.0.0 (17 Mar 2010)
 






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-23  8:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-23  8:48 [gentoo-commits] gentoo-x86 commit in dev-python/twisted: twisted-10.0.0.ebuild ChangeLog Fabian Groffen (grobian)
  -- strict thread matches above, loose matches on Subject: below --
2010-03-17 10:39 Patrick Lauer (patrick)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox