2013-05-30 13:02:03 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-06-06 17:23:00 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild,v 1.4 2013/06/06 09:32:46 idella4 Exp $
|
2013-05-30 13:02:03 +04:00
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
PYTHON_COMPAT=( python{2_6,2_7} )
|
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="A flexible and capable API layer for django utilising serialisers"
|
|
|
|
HOMEPAGE="http://pypi.python.org/pypi/django-tastypie/ https://github.com/toastdriven/django-tastypie"
|
2013-06-03 22:47:09 +04:00
|
|
|
SRC_URI="https://github.com/toastdriven/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
2013-05-30 13:02:03 +04:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="bip doc digest lxml oauth test yaml"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
RDEPEND=">=dev-python/mimeparse-0.1.3[${PYTHON_USEDEP}]
|
2013-06-03 22:47:09 +04:00
|
|
|
>=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/django-1.3[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pyxml[${PYTHON_USEDEP}]
|
|
|
|
dev-python/defusedxml[${PYTHON_USEDEP}]
|
2013-05-30 13:02:03 +04:00
|
|
|
bip? ( dev-python/biplist[${PYTHON_USEDEP}] )
|
|
|
|
digest? ( dev-python/python-digest[${PYTHON_USEDEP}] )
|
2013-06-03 22:47:09 +04:00
|
|
|
oauth? ( dev-python/oauth2[${PYTHON_USEDEP}]
|
|
|
|
dev-python/django-oauth-plus[${PYTHON_USEDEP}] )
|
2013-05-30 13:02:03 +04:00
|
|
|
lxml? ( dev-python/lxml[${PYTHON_USEDEP}] )
|
|
|
|
yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] )"
|
2013-05-31 02:10:18 +04:00
|
|
|
DEPEND="${RDEPEND}
|
2013-05-30 13:02:03 +04:00
|
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
2013-05-31 02:10:18 +04:00
|
|
|
test? (
|
|
|
|
dev-python/django-oauth-plus[${PYTHON_USEDEP}]
|
|
|
|
dev-python/oauth2[${PYTHON_USEDEP}]
|
|
|
|
dev-python/lxml[${PYTHON_USEDEP}]
|
|
|
|
dev-python/python-digest[${PYTHON_USEDEP}]
|
|
|
|
dev-python/biplist[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/mimeparse-0.1.3[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
|
|
|
|
dev-python/mock[${PYTHON_USEDEP}]
|
2013-06-03 22:47:09 +04:00
|
|
|
)"
|
2013-05-31 02:10:18 +04:00
|
|
|
|
2013-06-06 17:23:00 +04:00
|
|
|
PATCHES=( "${FILESDIR}"/runtests.patch )
|
2013-05-30 13:02:03 +04:00
|
|
|
|
|
|
|
python_compile_all() {
|
|
|
|
use doc && emake -C docs html
|
|
|
|
}
|
|
|
|
|
2013-05-31 02:10:18 +04:00
|
|
|
src_test() {
|
|
|
|
DISTUTILS_NO_PARALLEL_BUILD=1 distutils-r1_src_test
|
|
|
|
}
|
|
|
|
|
2013-05-30 13:02:03 +04:00
|
|
|
python_test() {
|
2013-06-06 17:23:00 +04:00
|
|
|
PYTHONPATH=.:tests ./tests/run_all_tests.sh || die
|
2013-05-30 13:02:03 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
python_install_all() {
|
|
|
|
use doc && local HTML_DOCS=( docs/_build/html/. )
|
|
|
|
distutils-r1_python_install_all
|
|
|
|
}
|