mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-02-03 11:37:27 -08:00
42 lines
835 B
Bash
42 lines
835 B
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
|
|
|
inherit distutils-r1
|
|
|
|
HOMEPAGE="http://www.grantjenks.com/docs/diskcache/"
|
|
DESCRIPTION="Disk and file backed cache"
|
|
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
IUSE="doc test"
|
|
|
|
RDEPEND="
|
|
dev-python/django[${PYTHON_USEDEP}]
|
|
"
|
|
DEPEND="
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
test? (
|
|
${RDEPEND}
|
|
dev-python/mock[${PYTHON_USEDEP}]
|
|
dev-python/nose[${PYTHON_USEDEP}]
|
|
)
|
|
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
|
"
|
|
|
|
python_compile_all() {
|
|
if use doc; then
|
|
emake -C docs html
|
|
HTML_DOCS=( docs/_build/html/. )
|
|
fi
|
|
}
|
|
|
|
python_test() {
|
|
nosetests -v || die "failed with ${PYTHON}"
|
|
}
|