1 |
commit: 8cbc6d1b3a876864c09be078d11e35cdeeef3bd2 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 17 07:48:20 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 17 07:49:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cbc6d1b |
7 |
|
8 |
app-text/pdfminer: add 20220506 |
9 |
|
10 |
New upstream. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/840463 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
app-text/pdfminer/Manifest | 1 + |
16 |
app-text/pdfminer/metadata.xml | 3 ++- |
17 |
app-text/pdfminer/pdfminer-20220506.ebuild | 42 ++++++++++++++++++++++++++++++ |
18 |
3 files changed, 45 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/app-text/pdfminer/Manifest b/app-text/pdfminer/Manifest |
21 |
index f8c634b6d05a..1429103931c6 100644 |
22 |
--- a/app-text/pdfminer/Manifest |
23 |
+++ b/app-text/pdfminer/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST pdfminer-20191020.tar.gz 4168016 BLAKE2B 53658853f1c6948a3249b56769c4d9e28cfe8e977b8702c3802f2c3d64f5c9f1d228024a3cbc9a5f288f60c991b2738a7aa131021bdb47c1492c83f9682abb15 SHA512 6ba663440f0ac370742f3a300a55d5f810202d960253931dfdb109a30ce3f71cf3e3dd30af9d0f6257365972452813b4ebc2dbee8031e988b7efb9dac15075d4 |
26 |
+DIST pdfminer-20220506.tar.gz 10853104 BLAKE2B b6008db789973fb69537801b8e928761bd0a949cc72ddf380fd71b6373913f6a689b71bee159e6991e99c196b7e8a1fac5530d2bf9c577e53b8b556bed00b85a SHA512 b81916c70f22f3408cf41a50d35937f950ee6205f59fa03603bc7a78d1b1b037311ebaf5661f6d46b9d4190f2f56189fc28b714463dc5854328c14f97fbc28c4 |
27 |
|
28 |
diff --git a/app-text/pdfminer/metadata.xml b/app-text/pdfminer/metadata.xml |
29 |
index be0a94d38c11..4246c8804ba1 100644 |
30 |
--- a/app-text/pdfminer/metadata.xml |
31 |
+++ b/app-text/pdfminer/metadata.xml |
32 |
@@ -3,6 +3,7 @@ |
33 |
<pkgmetadata> |
34 |
<!-- maintainer-needed --> |
35 |
<upstream> |
36 |
- <remote-id type="pypi">pdfminer</remote-id> |
37 |
+ <remote-id type="github">pdfminer/pdfminer.six</remote-id> |
38 |
+ <remote-id type="pypi">pdfminer.six</remote-id> |
39 |
</upstream> |
40 |
</pkgmetadata> |
41 |
|
42 |
diff --git a/app-text/pdfminer/pdfminer-20220506.ebuild b/app-text/pdfminer/pdfminer-20220506.ebuild |
43 |
new file mode 100644 |
44 |
index 000000000000..6be430cfc7ce |
45 |
--- /dev/null |
46 |
+++ b/app-text/pdfminer/pdfminer-20220506.ebuild |
47 |
@@ -0,0 +1,42 @@ |
48 |
+# Copyright 1999-2022 Gentoo Authors |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+ |
51 |
+EAPI=8 |
52 |
+ |
53 |
+DISTUTILS_USE_PEP517=setuptools |
54 |
+PYTHON_COMPAT=( python3_{8..11} ) |
55 |
+inherit distutils-r1 |
56 |
+ |
57 |
+MY_P="${PN}.six-${PV}" |
58 |
+DESCRIPTION="Python tool for extracting information from PDF documents" |
59 |
+HOMEPAGE="https://pdfminersix.readthedocs.io/en/latest/" |
60 |
+# Release tarballs lack tests |
61 |
+#SRC_URI="https://github.com/pdfminer/pdfminer.six/releases/download/${PV}/${MY_P}.tar.gz" |
62 |
+SRC_URI="https://github.com/pdfminer/pdfminer.six/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
63 |
+S="${WORKDIR}"/${MY_P} |
64 |
+ |
65 |
+LICENSE="MIT" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64 ~x86" |
68 |
+IUSE="doc examples" |
69 |
+ |
70 |
+RDEPEND=">=dev-python/charset_normalizer-2.0.0[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/cryptography-36.0.0[${PYTHON_USEDEP}]" |
72 |
+ |
73 |
+distutils_enable_tests pytest |
74 |
+ |
75 |
+python_prepare_all() { |
76 |
+ sed -i -e "s:package.__version__:${PV}:" setup.py || die |
77 |
+ |
78 |
+ distutils-r1_python_prepare_all |
79 |
+} |
80 |
+ |
81 |
+python_compile_all() { |
82 |
+ use examples && emake -C samples all |
83 |
+} |
84 |
+ |
85 |
+python_install_all() { |
86 |
+ use doc && local HTML_DOCS=( docs/. ) |
87 |
+ use examples && dodoc -r samples |
88 |
+ distutils-r1_python_install_all |
89 |
+} |