1 |
commit: 1971e0140be8e6d90d43356c3f98af6eed816041 |
2 |
Author: David Denoncin <ddenoncin <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 2 18:33:17 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 7 08:41:27 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1971e014 |
7 |
|
8 |
dev-python/pylatex: vbump 1.4.0 |
9 |
|
10 |
Use pytest as test runner |
11 |
|
12 |
Put S variable in right place |
13 |
|
14 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
15 |
Signed-off-by: David Denoncin <ddenoncin <AT> gmail.com> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/17388 |
17 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
18 |
|
19 |
dev-python/pylatex/Manifest | 1 + |
20 |
dev-python/pylatex/pylatex-1.4.0.ebuild | 53 +++++++++++++++++++++++++++++++++ |
21 |
2 files changed, 54 insertions(+) |
22 |
|
23 |
diff --git a/dev-python/pylatex/Manifest b/dev-python/pylatex/Manifest |
24 |
index 9a089da0738..65c065d5f20 100644 |
25 |
--- a/dev-python/pylatex/Manifest |
26 |
+++ b/dev-python/pylatex/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST pylatex-1.3.3.tar.gz 300639 BLAKE2B ac8fad8fa7e6e821cda168f3ae8ffb5acec21d688761b153ef2f9383b6a2f2ac7daea65f04389eb1ba3152fc50176d73cb814a78d2b5250ead2c6647eb96635a SHA512 12f51805996d84840f68844b79384ce4d2c29dde4db06f73b8887fe012abeaa4b9c5cf5e449132e626132b50ba26f014a899d548e3c0def25289671fd92e41a6 |
29 |
+DIST pylatex-1.4.0.tar.gz 301148 BLAKE2B 4d1fa6add43556b7b2c1ff13b3bc2130d06018499197c3d1f40c9180f4346e774d69c2a356d5eab6c8686957ebafac71a78506553cf7cd3cd57d03c0e0ffffd1 SHA512 0d9ab3e733c50b5a4dd7a6758193645c5532c9153972bbed244e3f7e2d6a946bd36af428197f9cdd1a3256f4cc0db5dc78248973f9b330684ce8651c4a59ad91 |
30 |
|
31 |
diff --git a/dev-python/pylatex/pylatex-1.4.0.ebuild b/dev-python/pylatex/pylatex-1.4.0.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..f7b9a7e488d |
34 |
--- /dev/null |
35 |
+++ b/dev-python/pylatex/pylatex-1.4.0.ebuild |
36 |
@@ -0,0 +1,53 @@ |
37 |
+# Copyright 2020 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+MY_PN="PyLaTeX" |
43 |
+MY_P="${MY_PN}-${PV}" |
44 |
+ |
45 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
46 |
+ |
47 |
+inherit distutils-r1 optfeature |
48 |
+ |
49 |
+DESCRIPTION="A Python library for creating LaTeX files and snippets" |
50 |
+HOMEPAGE="https://github.com/JelteF/PyLaTeX" |
51 |
+SRC_URI="https://github.com/JelteF/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
52 |
+S="${WORKDIR}/${MY_P}" |
53 |
+ |
54 |
+LICENSE="MIT" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~amd64 ~x86" |
57 |
+IUSE="examples" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ dev-python/ordered-set[${PYTHON_USEDEP}] |
61 |
+" |
62 |
+ |
63 |
+distutils_enable_tests pytest |
64 |
+ |
65 |
+BDEPEND+=" |
66 |
+ test? ( |
67 |
+ dev-python/quantities[${PYTHON_USEDEP}] |
68 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
69 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
70 |
+ app-text/texlive |
71 |
+ dev-texlive/texlive-latexextra |
72 |
+ )" |
73 |
+ |
74 |
+python_install_all() { |
75 |
+ if use examples ; then |
76 |
+ dodoc -r examples |
77 |
+ docompress -x /usr/share/doc/"${PF}"/examples |
78 |
+ fi |
79 |
+ |
80 |
+ distutils-r1_python_install_all |
81 |
+} |
82 |
+ |
83 |
+pkg_postinst() { |
84 |
+ elog "Optional dependencies:" |
85 |
+ optfeature "compiling generated files" "app-text/texlive dev-texlive/texlive-latexextra dev-texlive/texlive-mathscience" |
86 |
+ optfeature "matplotlib support" dev-python/matplotlib |
87 |
+ optfeature "numpy support" dev-python/numpy |
88 |
+ optfeature "quantities support" dev-python/quantities |
89 |
+} |