app-text/pdfminer: add 20220506

New upstream.

Bug: https://bugs.gentoo.org/840463
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-05-17 07:49:29 +00:00
parent 972df7506f
commit 8cbc6d1b3a
3 changed files with 45 additions and 1 deletions
+1
View File
@@ -1 +1,2 @@
DIST pdfminer-20191020.tar.gz 4168016 BLAKE2B 53658853f1c6948a3249b56769c4d9e28cfe8e977b8702c3802f2c3d64f5c9f1d228024a3cbc9a5f288f60c991b2738a7aa131021bdb47c1492c83f9682abb15 SHA512 6ba663440f0ac370742f3a300a55d5f810202d960253931dfdb109a30ce3f71cf3e3dd30af9d0f6257365972452813b4ebc2dbee8031e988b7efb9dac15075d4
DIST pdfminer-20220506.tar.gz 10853104 BLAKE2B b6008db789973fb69537801b8e928761bd0a949cc72ddf380fd71b6373913f6a689b71bee159e6991e99c196b7e8a1fac5530d2bf9c577e53b8b556bed00b85a SHA512 b81916c70f22f3408cf41a50d35937f950ee6205f59fa03603bc7a78d1b1b037311ebaf5661f6d46b9d4190f2f56189fc28b714463dc5854328c14f97fbc28c4
+2 -1
View File
@@ -3,6 +3,7 @@
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="pypi">pdfminer</remote-id>
<remote-id type="github">pdfminer/pdfminer.six</remote-id>
<remote-id type="pypi">pdfminer.six</remote-id>
</upstream>
</pkgmetadata>
@@ -0,0 +1,42 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
MY_P="${PN}.six-${PV}"
DESCRIPTION="Python tool for extracting information from PDF documents"
HOMEPAGE="https://pdfminersix.readthedocs.io/en/latest/"
# Release tarballs lack tests
#SRC_URI="https://github.com/pdfminer/pdfminer.six/releases/download/${PV}/${MY_P}.tar.gz"
SRC_URI="https://github.com/pdfminer/pdfminer.six/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/${MY_P}
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples"
RDEPEND=">=dev-python/charset_normalizer-2.0.0[${PYTHON_USEDEP}]
>=dev-python/cryptography-36.0.0[${PYTHON_USEDEP}]"
distutils_enable_tests pytest
python_prepare_all() {
sed -i -e "s:package.__version__:${PV}:" setup.py || die
distutils-r1_python_prepare_all
}
python_compile_all() {
use examples && emake -C samples all
}
python_install_all() {
use doc && local HTML_DOCS=( docs/. )
use examples && dodoc -r samples
distutils-r1_python_install_all
}