diff options
author | 2020-07-17 10:44:35 +0200 | |
---|---|---|
committer | 2020-07-19 13:43:24 +0300 | |
commit | 93a0a85dde90da52339416659588b8d541963821 (patch) | |
tree | 3b22f465c0a7dde1d193141e3afc7decb776d57b /dev-python/pylatex | |
parent | dev-python/quantities: new package (diff) | |
download | gentoo-93a0a85dde90da52339416659588b8d541963821.tar.gz gentoo-93a0a85dde90da52339416659588b8d541963821.tar.bz2 gentoo-93a0a85dde90da52339416659588b8d541963821.zip |
dev-python/pylatex: new package
This package allows the generation of LaTeX files or snippets from
python code
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Denoncin <ddenoncin@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/16505
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/pylatex')
-rw-r--r-- | dev-python/pylatex/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pylatex/metadata.xml | 22 | ||||
-rw-r--r-- | dev-python/pylatex/pylatex-1.3.3.ebuild | 54 |
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-python/pylatex/Manifest b/dev-python/pylatex/Manifest new file mode 100644 index 000000000000..9a089da0738d --- /dev/null +++ b/dev-python/pylatex/Manifest @@ -0,0 +1 @@ +DIST pylatex-1.3.3.tar.gz 300639 BLAKE2B ac8fad8fa7e6e821cda168f3ae8ffb5acec21d688761b153ef2f9383b6a2f2ac7daea65f04389eb1ba3152fc50176d73cb814a78d2b5250ead2c6647eb96635a SHA512 12f51805996d84840f68844b79384ce4d2c29dde4db06f73b8887fe012abeaa4b9c5cf5e449132e626132b50ba26f014a899d548e3c0def25289671fd92e41a6 diff --git a/dev-python/pylatex/metadata.xml b/dev-python/pylatex/metadata.xml new file mode 100644 index 000000000000..e2160561b195 --- /dev/null +++ b/dev-python/pylatex/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>ddenoncin@gmail.com</email> + <name>David Denoncin</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + PyLaTeX is a Python library for creating and compiling LaTeX + files or snippets. The goal of this library is being an easy, + but extensible interface between Python and LaTeX. + </longdescription> + <upstream> + <remote-id type="github">JelteF/PyLaTeX</remote-id> + <remote-id type="pypi">pylatex</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pylatex/pylatex-1.3.3.ebuild b/dev-python/pylatex/pylatex-1.3.3.ebuild new file mode 100644 index 000000000000..5a39f5d23f1d --- /dev/null +++ b/dev-python/pylatex/pylatex-1.3.3.ebuild @@ -0,0 +1,54 @@ +# 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 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}] +" + +distutils_enable_tests nose + +BDEPEND+=" + 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}" + +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 +} |