diff options
author | David Denoncin <ddenoncin@gmail.com> | 2020-11-17 22:14:49 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-11-22 11:11:44 +0200 |
commit | 4c6ec2c7b70f40cda50ee192b58f39c7467f801f (patch) | |
tree | 0af3e3ed524c5c6456ff2bf21303d19b7fbe3b15 /dev-python/pylatex/pylatex-1.4.1.ebuild | |
parent | dev-python/pylatex: drop old v1.3.3 (diff) | |
download | gentoo-4c6ec2c7b70f40cda50ee192b58f39c7467f801f.tar.gz gentoo-4c6ec2c7b70f40cda50ee192b58f39c7467f801f.tar.bz2 gentoo-4c6ec2c7b70f40cda50ee192b58f39c7467f801f.zip |
dev-python/pylatex: vbump 1.4.1
Package-Manager: Portage-3.0.8, Repoman-2.3.23
Signed-off-by: David Denoncin <ddenoncin@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/18309
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/pylatex/pylatex-1.4.1.ebuild')
-rw-r--r-- | dev-python/pylatex/pylatex-1.4.1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/pylatex/pylatex-1.4.1.ebuild b/dev-python/pylatex/pylatex-1.4.1.ebuild new file mode 100644 index 000000000000..f7b9a7e488dc --- /dev/null +++ b/dev-python/pylatex/pylatex-1.4.1.ebuild @@ -0,0 +1,53 @@ +# 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}" + +PYTHON_COMPAT=( python3_{6,7,8,9} ) + +inherit distutils-r1 optfeature + +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" +S="${WORKDIR}/${MY_P}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +RDEPEND=" + dev-python/ordered-set[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +BDEPEND+=" + test? ( + dev-python/quantities[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + app-text/texlive + dev-texlive/texlive-latexextra + )" + +python_install_all() { + if use examples ; then + dodoc -r examples + docompress -x /usr/share/doc/"${PF}"/examples + fi + + distutils-r1_python_install_all +} + +pkg_postinst() { + elog "Optional dependencies:" + optfeature "compiling generated files" "app-text/texlive dev-texlive/texlive-latexextra dev-texlive/texlive-mathscience" + optfeature "matplotlib support" dev-python/matplotlib + optfeature "numpy support" dev-python/numpy + optfeature "quantities support" dev-python/quantities +} |