Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/routes: routes-2.1-r1.ebuild ChangeLog
Date: Sat, 04 Jul 2015 13:08:36
Message-Id: 20150704130827.AF23E751@oystercatcher.gentoo.org
1 idella4 15/07/04 13:08:27
2
3 Modified: ChangeLog
4 Added: routes-2.1-r1.ebuild
5 Log:
6 revbump; add doc build courtesy of a pull p/r filed in a bug upstream & cited in ebuild
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
9
10 Revision Changes Path
11 1.29 dev-python/routes/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/routes/ChangeLog?rev=1.29&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/routes/ChangeLog?rev=1.29&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/routes/ChangeLog?r1=1.28&r2=1.29
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/routes/ChangeLog,v
20 retrieving revision 1.28
21 retrieving revision 1.29
22 diff -u -r1.28 -r1.29
23 --- ChangeLog 8 Apr 2015 08:04:55 -0000 1.28
24 +++ ChangeLog 4 Jul 2015 13:08:27 -0000 1.29
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/routes
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/routes/ChangeLog,v 1.28 2015/04/08 08:04:55 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/routes/ChangeLog,v 1.29 2015/07/04 13:08:27 idella4 Exp $
30 +
31 +*routes-2.1-r1 (04 Jul 2015)
32 +
33 + 04 Jul 2015; Ian Delaney <idella4@g.o> +routes-2.1-r1.ebuild:
34 + revbump; add doc build courtesy of a pull p/r filed in a bug upstream & cited
35 + in ebuild
36
37 08 Apr 2015; Michał Górny <mgorny@g.o> routes-1.13-r1.ebuild,
38 routes-2.0.ebuild:
39
40
41
42 1.1 dev-python/routes/routes-2.1-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/routes/routes-2.1-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/routes/routes-2.1-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: routes-2.1-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/routes/routes-2.1-r1.ebuild,v 1.1 2015/07/04 13:08:27 idella4 Exp $
52
53 EAPI=5
54 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
55
56 inherit distutils-r1
57
58 MY_PN="Routes"
59 MY_P="${MY_PN}-${PV}"
60
61 DESCRIPTION="A Python re-implementation of Rails routes system, mapping URL's to Controllers/Actions"
62 HOMEPAGE="http://routes.groovie.org http://pypi.python.org/pypi/Routes"
63 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
64
65 LICENSE="BSD"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
68 IUSE="doc test"
69
70 RDEPEND=">=dev-python/repoze-lru-0.3[${PYTHON_USEDEP}]"
71 DEPEND="${RDEPEND}
72 dev-python/setuptools[${PYTHON_USEDEP}]
73 test? (
74 dev-python/coverage[${PYTHON_USEDEP}]
75 dev-python/nose[${PYTHON_USEDEP}]
76 dev-python/webtest[${PYTHON_USEDEP}] )
77 doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
78 )"
79 # It appears there's an epidemic of missing testsuites coming out of github. Restrict for now
80 RESTRICT="test"
81
82 S="${WORKDIR}/${MY_P}"
83
84 # Comment out patch for tests for now
85 #PATCHES=( "${FILESDIR}"/${PN}-2.0-tests-py3.patch )
86
87 # https://github.com/bbangert/routes/issues/42 presents a patch
88 # for the faulty docbuild converted to sed stmnts
89 python_prepare_all() {
90 use test && DISTUTILS_IN_SOURCE_BUILD=1
91 # The default theme in sphinx switched to classic from shpinx-1.3.1
92 if has_version ">=dev-python/sphinx-1.3.1"; then
93 sed -e "s:html_theme_options = {:html_theme = 'classic'\n&:" \
94 -i docs/conf.py || die
95 else
96 sed -e "s:html_theme_options = {:html_theme = 'default'\n&:" \
97 -i docs/conf.py || die
98 fi
99 sed -e "s:changes:changes\n todo:" \
100 -i docs/index.rst || die
101
102 distutils-r1_python_prepare_all
103 }
104
105 python_compile_all() {
106 use doc && emake -C docs html
107 }
108
109 python_test() {
110 cp -r tests "${BUILD_DIR}" || die
111 if [[ ${EPYTHON} == python3* ]]; then
112 2to3 -w --no-diffs "${BUILD_DIR}"/tests || die
113 fi
114
115 nosetests -w "${BUILD_DIR}"/tests || die "Tests fail with ${EPYTHON}"
116 }
117
118 python_install_all() {
119 use doc && HTML_DOCS=( docs/_build/html/. )
120 distutils-r1_python_install_all
121 }