You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.5 KiB
61 lines
1.5 KiB
12 years ago
|
# Copyright 1999-2013 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/django-extensions/django-extensions-1.0.2.ebuild,v 1.1 2013/01/04 16:54:24 idella4 Exp $
|
||
|
|
||
|
EAPI="4"
|
||
|
|
||
|
PYTHON_DEPEND="2"
|
||
|
SUPPORT_PYTHON_ABIS="1"
|
||
|
RESTRICT_PYTHON_ABIS="3.*"
|
||
|
|
||
|
inherit distutils
|
||
|
|
||
|
GIT_HASH_TAG="48fa7dd"
|
||
|
PYTHON_MODNAME="django_extensions"
|
||
|
|
||
|
DESCRIPTION="Django Command Extensions"
|
||
|
HOMEPAGE="http://github.com/django-extensions/django-extensions http://code.google.com/p/django-command-extensions/"
|
||
|
SRC_URI="http://github.com/django-extensions/django-extensions/tarball/${PV}/${P}.tgz"
|
||
|
|
||
|
LICENSE="BSD || ( MIT GPL-2 )"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="doc graphviz mysql postgres s3 sqlite vcard"
|
||
|
|
||
|
RDEPEND="dev-python/django[mysql?,postgres?,sqlite?]
|
||
|
dev-python/pygments
|
||
|
dev-python/werkzeug
|
||
|
graphviz? ( dev-python/pygraphviz )
|
||
|
s3? ( dev-python/boto )
|
||
|
vcard? ( dev-python/vobject )"
|
||
|
DEPEND="${RDEPEND}
|
||
|
dev-python/setuptools
|
||
|
doc? ( dev-python/sphinx )"
|
||
|
|
||
|
S="${WORKDIR}/${PN}-${PN}-${GIT_HASH_TAG}"
|
||
|
|
||
|
DOCS=( docs/AUTHORS README.rst )
|
||
|
|
||
|
src_compile() {
|
||
|
distutils_src_compile
|
||
|
|
||
|
use doc && emake -C docs html
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
distutils_src_install
|
||
|
|
||
|
use doc && dohtml -r docs/_build/html/*
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
testing() {
|
||
|
if [[ $(python_get_version --major) == '2' ]]; then
|
||
|
python${PYTHON_ABI} run_tests.py
|
||
|
elif [[ ${PYTHON_ABI:4:4} == "pypy" ]]; then
|
||
|
pypy-c${PYTHON_ABI:9:11} run_tests.py
|
||
|
fi
|
||
|
}
|
||
|
python_execute_function testing
|
||
|
}
|