/[gentoo-x86]/dev-python/wtforms/wtforms-0.6.1.ebuild
Gentoo

Contents of /dev-python/wtforms/wtforms-0.6.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Mar 22 10:36:48 2011 UTC (3 years, 4 months ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Delete older ebuild.

(Portage version: 2.2.0_alpha28_p4/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/wtforms/wtforms-0.6.1.ebuild,v 1.3 2010/10/22 14:46:10 fauli Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.*"
9
10 inherit distutils
11
12 MY_PN="WTForms"
13 MY_P="${MY_PN}-${PV}"
14
15 DESCRIPTION="Flexible forms validation and rendering library for python web development"
16 HOMEPAGE="http://wtforms.simplecodes.com/ http://pypi.python.org/pypi/WTForms"
17 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
18
19 LICENSE="BSD"
20 SLOT="0"
21 KEYWORDS="amd64 x86"
22 IUSE="doc"
23
24 S="${WORKDIR}/${MY_P}"
25
26 DEPEND="app-arch/unzip
27 doc? ( >=dev-python/sphinx-0.6 )"
28 RDEPEND=""
29
30 DOCS="AUTHORS.txt CHANGES.txt README.txt"
31
32 src_compile() {
33 distutils_src_compile
34
35 if use doc; then
36 einfo "Generation of documentation"
37 cd docs
38 PYTHONPATH=".." emake html || die "Building of documentation failed"
39 fi
40 }
41
42 src_test() {
43 cd tests
44 testing() {
45 "$(PYTHON)" runtests.py
46 }
47 python_execute_function testing
48 }
49
50 src_install() {
51 distutils_src_install
52
53 if use doc; then
54 dohtml -r docs/_build/html/* || die "Installation of documentation failed"
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20