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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jun 14 13:49:42 2010 UTC (3 years, 10 months ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Delete older ebuilds.

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

  ViewVC Help
Powered by ViewVC 1.1.20