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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Sep 5 18:46:09 2013 UTC (10 months ago) by mgorny
Branch: MAIN
Changes since 1.3: +2 -2 lines
Clean up PYTHON_COMPAT from old implementations.

(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/wtforms/wtforms-1.0.4.ebuild,v 1.3 2013/06/25 12:51:19 ago Exp $
4
5 EAPI="5"
6 PYTHON_COMPAT=( python{2_6,2_7} pypy2_0 )
7
8 inherit distutils-r1
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="mirror://pypi/${MY_PN:0:1}/${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="app-arch/unzip
25 doc? ( >=dev-python/sphinx-0.6[${PYTHON_USEDEP}] )"
26 RDEPEND=""
27
28 DOCS="AUTHORS.txt CHANGES.txt README.txt"
29
30 python_compile_all() {
31 if use doc; then
32 einfo "Generation of documentation"
33 cd docs
34 PYTHONPATH=".." emake html || die "Building of documentation failed"
35 fi
36 }
37
38 python_install_all() {
39 if use doc; then
40 dohtml -r docs/_build/html/* || die "Installation of documentation failed"
41 fi
42 }

  ViewVC Help
Powered by ViewVC 1.1.20