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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Oct 23 14:33:31 2010 UTC (4 years, 1 month 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_alpha1/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.ebuild,v 1.3 2010/06/14 07:46:11 phajdan.jr Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8
9 inherit distutils
10
11 MY_PN="WTForms"
12 MY_P="${MY_PN}-${PV}"
13
14 DESCRIPTION="Flexible forms validation and rendering library for python web development"
15 HOMEPAGE="http://wtforms.simplecodes.com/ http://pypi.python.org/pypi/WTForms"
16 SRC_URI="http://pypi.python.org/packages/source/W/${MY_PN}/${MY_P}.zip"
17
18 LICENSE="BSD"
19 SLOT="0"
20 KEYWORDS="amd64 x86"
21 IUSE="doc"
22
23 S="${WORKDIR}/${MY_P}"
24
25 DEPEND="doc? ( >=dev-python/sphinx-0.6 )"
26 RDEPEND=""
27 RESTRICT_PYTHON_ABIS="3.*"
28
29 DOCS="AUTHORS.txt CHANGES.txt INSTALL.txt LICENSE.txt README.txt"
30
31 src_compile() {
32 distutils_src_compile
33
34 if use doc; then
35 cd docs
36 einfo "Generation of documentation"
37 PYTHONPATH=".." emake html || die "Building of documentation failed"
38 fi
39 }
40
41 src_test() {
42 cd tests
43 testing() {
44 "$(PYTHON)" runtests.py
45 }
46 python_execute_function testing
47 }
48
49 src_install() {
50 distutils_src_install
51
52 if use doc; then
53 dohtml -r docs/_build/html/* || die "Installation of documentation failed"
54 fi
55 }

  ViewVC Help
Powered by ViewVC 1.1.20