/[gentoo-x86]/dev-python/myghty/myghty-1.2-r1.ebuild
Gentoo

Contents of /dev-python/myghty/myghty-1.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Dec 26 00:03:46 2014 UTC (5 years, 6 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Convert to distutils-r1.

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

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/myghty/myghty-1.2.ebuild,v 1.3 2014/08/10 21:14:10 slyfox Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit distutils-r1
10
11 MY_PN="Myghty"
12 MY_P="${MY_PN}-${PV}"
13
14 DESCRIPTION="Template and view-controller framework derived from HTML::Mason"
15 HOMEPAGE="http://www.myghty.org/ http://pypi.python.org/pypi/Myghty"
16 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
17
18 LICENSE="MIT"
19 SLOT="0"
20 KEYWORDS="~amd64 ~x86"
21 IUSE="doc"
22
23 RDEPEND=">=dev-python/routes-1.0[${PYTHON_USEDEP}]
24 dev-python/paste[${PYTHON_USEDEP}]
25 dev-python/pastedeploy[${PYTHON_USEDEP}]
26 dev-python/pastescript[${PYTHON_USEDEP}]"
27 DEPEND="${RDEPEND}
28 dev-python/setuptools[${PYTHON_USEDEP}]"
29
30 S="${WORKDIR}/${MY_P}"
31
32 python_compile_all() {
33 if use doc; then
34 cd doc || die
35 "${PYTHON}" genhtml.py || die
36 fi
37 }
38
39 python_test() {
40 "${PYTHON}" test/alltests.py || die "Tests fail with ${EPYTHON}"
41 }
42
43 python_install_all() {
44 distutils-r1_python_install_all
45
46 if use doc; then
47 dohtml -r doc/html/.
48 fi
49 }

  ViewVC Help
Powered by ViewVC 1.1.20