Gentoo Archives: gentoo-commits

From: "Dirkjan Ochtman (djc)" <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/flask: metadata.xml ChangeLog flask-0.3.1.ebuild
Date: Sun, 30 May 2010 11:00:13
Message-Id: 20100530110008.E051C2CF37@corvid.gentoo.org
1 djc 10/05/30 11:00:08
2
3 Added: metadata.xml ChangeLog flask-0.3.1.ebuild
4 Log:
5 Initial version, contributed by plaes@×××××.org.
6 (Portage version: 2.1.8.3/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-python/flask/metadata.xml
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/flask/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/flask/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>python</herd>
20 </pkgmetadata>
21
22
23
24 1.1 dev-python/flask/ChangeLog
25
26 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/flask/ChangeLog?rev=1.1&view=markup
27 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/flask/ChangeLog?rev=1.1&content-type=text/plain
28
29 Index: ChangeLog
30 ===================================================================
31 # ChangeLog for dev-python/flask
32 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
33 # $Header: /var/cvsroot/gentoo-x86/dev-python/flask/ChangeLog,v 1.1 2010/05/30 11:00:08 djc Exp $
34
35 *flask-0.3.1 (30 May 2010)
36
37 30 May 2010; Dirkjan Ochtman <djc@g.o> +flask-0.3.1.ebuild,
38 +metadata.xml:
39 Initial version, contributed by plaes@×××××.org.
40
41
42
43
44 1.1 dev-python/flask/flask-0.3.1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/flask/flask-0.3.1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/flask/flask-0.3.1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: flask-0.3.1.ebuild
50 ===================================================================
51 # Copyright 1999-2010 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-python/flask/flask-0.3.1.ebuild,v 1.1 2010/05/30 11:00:08 djc Exp $
54
55 EAPI=3
56 SUPPORT_PYTHON_ABIS="1"
57 RESTRICT_PYTHON_ABIS="3.*"
58
59 inherit distutils
60
61 MY_PN="Flask"
62 MY_P="${MY_PN}-${PV}"
63
64 DESCRIPTION="A microframework based on Werkzeug, Jinja2 and good intentions"
65 HOMEPAGE="http://pypi.python.org/pypi/Flask/"
66 SRC_URI="http://pypi.python.org/packages/source/F/${MY_PN}/${MY_P}.tar.gz"
67
68 LICENSE="BSD"
69 SLOT="0"
70 KEYWORDS="~amd64 ~x86"
71 IUSE="doc test"
72
73 RDEPEND="
74 dev-python/setuptools
75 >=dev-python/jinja-2.4
76 >=dev-python/werkzeug-0.6.1"
77 DEPEND="${RDEPEND}
78 doc? ( >=dev-python/sphinx-0.6 )"
79
80 S=${WORKDIR}/${MY_P}
81
82 src_compile() {
83 distutils_src_compile
84
85 if use doc; then
86 cd docs && einfo "Generation of documentation"
87 PYTHONPATH=".." emake html || die "Building of documentation failed"
88 fi
89 }
90
91 src_install() {
92 distutils_src_install
93 python_clean_installation_image
94
95 if use doc; then
96 dohtml -r docs/_build/html/* || die "Installation of documentation failed"
97 fi
98
99 if use examples; then
100 insinto "/usr/share/doc/${PF}"
101 doins -r examples || die "Failed to install examples"
102 fi
103 }
104
105 src_test() {
106 testing() {
107 PYTHONPATH=. "$(PYTHON)" tests/flask_tests.py
108 }
109 python_execute_function testing
110 }