summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-02-16 20:18:05 +0000
committerMichał Górny <mgorny@gentoo.org>2013-02-16 20:18:05 +0000
commitd28319dad5a08019c5073c8a2fd87d312130435a (patch)
treec2a6abfd0f85998af0d4933446cb713b83adfd82 /dev-python
parentAdd missing libspectre dependency (diff)
downloadgentoo-2-d28319dad5a08019c5073c8a2fd87d312130435a.tar.gz
gentoo-2-d28319dad5a08019c5073c8a2fd87d312130435a.tar.bz2
gentoo-2-d28319dad5a08019c5073c8a2fd87d312130435a.zip
Migrate to distutils-r1.
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 42B9401D)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/routes/ChangeLog10
-rw-r--r--dev-python/routes/routes-1.13-r1.ebuild42
2 files changed, 49 insertions, 3 deletions
diff --git a/dev-python/routes/ChangeLog b/dev-python/routes/ChangeLog
index c89bd072b5f4..ac9586c9a55e 100644
--- a/dev-python/routes/ChangeLog
+++ b/dev-python/routes/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/routes
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/routes/ChangeLog,v 1.12 2012/05/21 08:03:55 patrick Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/routes/ChangeLog,v 1.13 2013/02/16 20:18:05 mgorny Exp $
+
+*routes-1.13-r1 (16 Feb 2013)
+
+ 16 Feb 2013; Michał Górny <mgorny@gentoo.org> +routes-1.13-r1.ebuild:
+ Migrate to distutils-r1.
*routes-1.13 (21 May 2012)
@@ -65,4 +70,3 @@
04 Feb 2007; Tiziano Müller <dev-zero@gentoo.org> routes-1.6.ebuild,
+metadata.xml:
New ebuild for bug #155370 (thanks to Brad Walker)
-
diff --git a/dev-python/routes/routes-1.13-r1.ebuild b/dev-python/routes/routes-1.13-r1.ebuild
new file mode 100644
index 000000000000..46cc964894a5
--- /dev/null
+++ b/dev-python/routes/routes-1.13-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/routes/routes-1.13-r1.ebuild,v 1.1 2013/02/16 20:18:05 mgorny Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_7} pypy{1_9,2_0} )
+
+inherit distutils-r1
+
+MY_PN="Routes"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A Python re-implementation of the Rails routes system for mapping URL's to Controllers/Actions"
+HOMEPAGE="http://routes.groovie.org http://pypi.python.org/pypi/Routes"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="doc test"
+
+# Note: although setup.py states that tests require webtest,
+# it isn't used anywhere.
+RDEPEND="dev-python/webob[${PYTHON_USEDEP}]
+ dev-python/repoze-lru[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}] )"
+
+S="${WORKDIR}/${MY_P}"
+
+python_test() {
+ nosetests || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+
+ distutils-r1_python_install_all
+}