mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-14 01:23:23 -04:00
Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
# Copyright 2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
MY_PN="PyLaTeX"
|
|
MY_P="${MY_PN}-${PV}"
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
PYTHON_COMPAT=( python3_{6,7,8} )
|
|
inherit distutils-r1 eutils
|
|
|
|
DESCRIPTION="A Python library for creating LaTeX files and snippets"
|
|
HOMEPAGE="https://github.com/JelteF/PyLaTeX"
|
|
SRC_URI="https://github.com/JelteF/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="examples"
|
|
|
|
RDEPEND="
|
|
dev-python/ordered-set[${PYTHON_USEDEP}]
|
|
"
|
|
|
|
DEPEND="test? (
|
|
dev-python/quantities[${PYTHON_USEDEP}]
|
|
dev-python/matplotlib[${PYTHON_USEDEP}]
|
|
dev-python/numpy[${PYTHON_USEDEP}]
|
|
app-text/texlive
|
|
dev-texlive/texlive-latexextra
|
|
)"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
distutils_enable_sphinx docs/source
|
|
distutils_enable_tests nose
|
|
|
|
python_install_all() {
|
|
if use examples ; then
|
|
dodoc -r examples
|
|
fi
|
|
|
|
distutils-r1_python_install_all
|
|
}
|
|
|
|
pkg_postinst() {
|
|
elog "Optional dependencies:"
|
|
optfeature "compiling generated files" app-text/texlive dev-texlive/texlive-latexextra
|
|
optfeature "matplotlib support" dev-python/matplotlib
|
|
optfeature "numpy support" dev-python/numpy
|
|
optfeature "quantities support" dev-python/quantities
|
|
}
|