monitoring/dev-python/django-endless-pagination/django-endless-pagination-2...

51 lines
1.4 KiB
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python3_{6..9} )
inherit distutils-r1
DESCRIPTION="Tools supporting ajax, multiple and lazy pagination, Twitter-style and Digg-style pagination"
HOMEPAGE="https://github.com/frankban/django-endless-pagination/ https://pypi.org/project/django-endless-pagination/"
# SRC_URI="https://github.com/frankban/django-endless-pagination/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc test"
RESTRICT="!test? ( test )"
RDEPEND=">=dev-python/django-1.3[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
test? (
dev-python/django-nose[${PYTHON_USEDEP}]
dev-python/nose[${PYTHON_USEDEP}]
dev-python/selenium[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/xvfbwrapper[${PYTHON_USEDEP}]
)
"
python_compile_all() {
use doc && emake -C doc html
}
python_test() {
unset PYTHONPATH
"${PYTHON}" tests/manage.py test || die "Testing failed with ${EPYTHON}"
}
python_install_all() {
use doc && local HTML_DOCS=( "${S}"/doc/_build/html/. )
#rm all OSX fork files, Bug #450842
pushd "${ED}" > /dev/null
rm -f $(find . -name "._*")
distutils-r1_python_install_all
}