gentoo/dev-python/python-djvulibre/python-djvulibre-0.8.ebuild
Pacho Ramos 652f5fcf44
dev-python/python-djvulibre: Support python3.6
Package-Manager: Portage-2.3.40, Repoman-2.3.9
2018-06-24 21:20:55 +02:00

32 lines
713 B
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
inherit distutils-r1
DESCRIPTION="Set of Python bindings for the DjVuLibre library"
HOMEPAGE="http://jwilk.net/software/python-djvulibre"
SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="app-text/djvu"
DEPEND="${RDEPEND}
dev-python/cython[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/nose[${PYTHON_USEDEP}] )
"
python_test() {
ln -s "${S}/tests" "${BUILD_DIR}/tests" || die
cd "${BUILD_DIR}" || die
nosetests -v || die
}