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/flask: ChangeLog flask-0.6.ebuild
Date: Tue, 27 Jul 2010 16:38:09
Message-Id: 20100727163806.F24F72CF37@corvid.gentoo.org
1 arfrever 10/07/27 16:38:06
2
3 Modified: ChangeLog
4 Added: flask-0.6.ebuild
5 Log:
6 Version bump (bug #330077).
7
8 (Portage version: HEAD/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.5 dev-python/flask/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/flask/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/flask/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/flask/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/flask/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 15 Jul 2010 22:44:14 -0000 1.4
24 +++ ChangeLog 27 Jul 2010 16:38:06 -0000 1.5
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/flask
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/flask/ChangeLog,v 1.4 2010/07/15 22:44:14 arfrever Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/flask/ChangeLog,v 1.5 2010/07/27 16:38:06 arfrever Exp $
30 +
31 +*flask-0.6 (27 Jul 2010)
32 +
33 + 27 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + -flask-0.5.2.ebuild, +flask-0.6.ebuild:
35 + Version bump (bug #330077).
36
37 *flask-0.5.2 (15 Jul 2010)
38
39
40
41
42 1.1 dev-python/flask/flask-0.6.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/flask/flask-0.6.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/flask/flask-0.6.ebuild?rev=1.1&content-type=text/plain
46
47 Index: flask-0.6.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/flask/flask-0.6.ebuild,v 1.1 2010/07/27 16:38:06 arfrever Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="2"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="3.*"
57
58 inherit distutils
59
60 MY_PN="Flask"
61 MY_P="${MY_PN}-${PV}"
62
63 DESCRIPTION="A microframework based on Werkzeug, Jinja2 and good intentions"
64 HOMEPAGE="http://pypi.python.org/pypi/Flask"
65 SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
66
67 LICENSE="BSD"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 IUSE="doc examples test"
71
72 RDEPEND=">=dev-python/jinja-2.4
73 dev-python/setuptools
74 >=dev-python/werkzeug-0.6.1"
75 DEPEND="${RDEPEND}
76 doc? ( >=dev-python/sphinx-0.6 )"
77
78 S="${WORKDIR}/${MY_P}"
79
80 src_prepare() {
81 distutils_src_prepare
82
83 # Delete reference to nonexistent artwork/LICENSE file.
84 sed -e "41,48d" -i docs/license.rst || die "sed failed"
85 }
86
87 src_compile() {
88 distutils_src_compile
89
90 if use doc; then
91 einfo "Generation of documentation"
92 cd docs
93 PYTHONPATH=".." emake html || die "Generation of documentation failed"
94 fi
95 }
96
97 src_test() {
98 testing() {
99 PYTHONPATH="." "$(PYTHON)" tests/flask_tests.py
100 }
101 python_execute_function testing
102 }
103
104 src_install() {
105 distutils_src_install
106
107 if use doc; then
108 dohtml -r docs/_build/html/* || die "Installation of documentation failed"
109 fi
110
111 if use examples; then
112 insinto "/usr/share/doc/${PF}"
113 doins -r examples || die "Installation of examples failed"
114 fi
115 }