blob: 0b6a82c71e11ea979e593eda944548cd0ec5b5dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja/jinja-1.2.ebuild,v 1.1 2008/06/07 08:29:52 dev-zero Exp $
inherit distutils
MY_PN="Jinja"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="A sandboxed template engine providing a Django-like non-XML syntax."
HOMEPAGE="http://jinja.pocoo.org/1/"
SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND="dev-python/setuptools"
DEPEND="${RDEPEND}
test? ( dev-python/py )"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
# setup.py loads "jinja", we have to avoid it loads an already installed version
export PYTHONPATH="."
}
src_install() {
DOCS="CHANGES"
distutils_src_install
# Rearraning the docs
rm -rf "${D}/usr/docs"
dodoc docs/src/*
dohtml docs/html/*
}
src_test() {
cd tests
py.test || die "tests failed"
}
|