diff options
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/OCRmyPDF/Manifest | 8 | ||||
-rw-r--r-- | app-text/OCRmyPDF/OCRmyPDF-16.1.2.ebuild (renamed from app-text/OCRmyPDF/OCRmyPDF-14.0.4.ebuild) | 40 | ||||
-rw-r--r-- | app-text/OCRmyPDF/OCRmyPDF-16.2.0.ebuild | 77 | ||||
-rw-r--r-- | app-text/OCRmyPDF/metadata.xml | 3 |
4 files changed, 110 insertions, 18 deletions
diff --git a/app-text/OCRmyPDF/Manifest b/app-text/OCRmyPDF/Manifest index 30ff6d5..772ac83 100644 --- a/app-text/OCRmyPDF/Manifest +++ b/app-text/OCRmyPDF/Manifest @@ -1,3 +1,5 @@ -DIST OCRmyPDF-14.0.4.tar.gz 6503016 BLAKE2B fba25d50bba34b529b96801429183dab9cef9602a4247653827b5add5c7b9f99e814cacab9a87a42bd4280350e40924919b5da3959ab3c5df2e9e4f671011deb SHA512 12a14140ad8fd0a7be3e496af503280a12adf6b016001a3860fdd4c7b10e5ae4892d85c82b26856a2e55f7dab95c7912fedb591b40ea4354224b7f2704a32146 -EBUILD OCRmyPDF-14.0.4.ebuild 1938 BLAKE2B f9bb1c24dee5f853f97c604289f590a93d51d6b35b5ce5e3dc5d292faeba003dde0a3124c9baa1d54901c1eaef9df9a479ac7cb4c0b3baf93fd259cae40e4a7f SHA512 46127b460e27ad3819a20ce5c8bda1d529dfda9b66b526bdf227d2df0ee43f075292d796d9d961539d1eea802a49cea247175d9cf32ddf43990339fd03aafb1c -MISC metadata.xml 403 BLAKE2B fd04fdd42da83ddc6ef419d40b9197111452f8a0d49af3c4448873034eddad9f3f11b3ae0ddad93440933aaf4a2f12470eab17cc5defbf94035cd755d0f97ab5 SHA512 8d02d28b8fd30b496c96733f69f605733b63fa4a9709cae7d17ff1007b0198b7543dfd1441624f5cb183a262fbf2bccae38b9dafefa7f27b448ea0d69ecff2b9 +DIST OCRmyPDF-16.1.2.tar.gz 6688943 BLAKE2B 903a830a81804bda063d59bb4ad98d08179504451be0f62cf371e5214be28c4d414d725d9188c5d3893df09275a826e765bff038a61d318e0b8510c6bbf78b92 SHA512 72728abafdbda4e42c4ebb19a3b8c88944ecbbcc2d5a4681999bbd9b00594f75746f46334e4f8885ac455841997d16e3699b08a655ff3c7c81622184c2ab292b +DIST OCRmyPDF-16.2.0.tar.gz 6689569 BLAKE2B 05e37457c84673820ef68951349570a84056deece952d3cbf0840c837ade2d65085eabe08e6e90a20cc1d2732ecbfc0ace53d693a15d99eac53520943965774a SHA512 556548af176242aea8cbf6e80341d5d7b13e5bc24632a3d5cce6e918354456ee6003215c109475a8b3af694d4cb8be9ae2a3d70342bbdaec8f88342e72f3e6d2 +EBUILD OCRmyPDF-16.1.2.ebuild 2165 BLAKE2B 2b16e3cb5e0374d144374d3518946e028aa58b00f44d516e16d52af6845b59dfbd635603b1a979c8f143af9c47bc17a8004a3e5acd62064cbe881be380126a2f SHA512 de69d1f87596a6aa6617d268418a6149365726c0d152abed711bbe91389fd0a35adfa2babc984a8094954ee2141f3f4f12fec33fbf9f8c8dbf6a577b6fed34b8 +EBUILD OCRmyPDF-16.2.0.ebuild 2165 BLAKE2B 2b16e3cb5e0374d144374d3518946e028aa58b00f44d516e16d52af6845b59dfbd635603b1a979c8f143af9c47bc17a8004a3e5acd62064cbe881be380126a2f SHA512 de69d1f87596a6aa6617d268418a6149365726c0d152abed711bbe91389fd0a35adfa2babc984a8094954ee2141f3f4f12fec33fbf9f8c8dbf6a577b6fed34b8 +MISC metadata.xml 487 BLAKE2B ff83beac62a69edac41d4b7f72db5a9e2d318ca7a3aa1aceec924f3bcae7767b9a00fc29e6227371d36123c57d4ef19ebc1996789acfcf1428600076986579d1 SHA512 8677c9314d5586205d93045efb49f1495957e99bdfe69208c12dce0fd72a9261b4bfdcb05d05ffb897f0c5f6827c2ec327a569b970ac0ef9b293df2801d72fb9 diff --git a/app-text/OCRmyPDF/OCRmyPDF-14.0.4.ebuild b/app-text/OCRmyPDF/OCRmyPDF-16.1.2.ebuild index 202d19c..d2685c5 100644 --- a/app-text/OCRmyPDF/OCRmyPDF-14.0.4.ebuild +++ b/app-text/OCRmyPDF/OCRmyPDF-16.1.2.ebuild @@ -1,12 +1,12 @@ -# Copyright 2020-2022 Gentoo Authors +# Copyright 2020-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_COMPAT=( python3_{10..11} ) -inherit bash-completion-r1 distutils-r1 optfeature +inherit distutils-r1 optfeature shell-completion DESCRIPTION="OCRmyPDF adds an OCR text layer to scanned PDF files" HOMEPAGE="https://github.com/ocrmypdf/OCRmyPDF" @@ -15,28 +15,31 @@ SRC_URI="https://github.com/ocrmypdf/OCRmyPDF/archive/v${PV}.tar.gz -> ${P}.tar. LICENSE="MPL-2.0" SLOT="0" KEYWORDS="~amd64" +IUSE="bash-completion fish-completion" RDEPEND=" - >=app-text/ghostscript-gpl-9.50 - >=app-text/pdfminer-20201018[${PYTHON_USEDEP}] + >=app-text/ghostscript-gpl-9.54 + >=app-text/pdfminer-20220319[${PYTHON_USEDEP}] >=app-text/tesseract-4.1.1[jpeg,tiff,png,webp] - >=dev-python/coloredlogs-14.0[${PYTHON_USEDEP}] >=dev-python/deprecation-2.1.0[${PYTHON_USEDEP}] >=dev-python/packaging-20[${PYTHON_USEDEP}] - >=dev-python/pikepdf-5.0.1[${PYTHON_USEDEP}] - >=dev-python/pillow-8.2.0[lcms,${PYTHON_USEDEP}] - >=dev-python/pluggy-0.13.0[${PYTHON_USEDEP}] - >=dev-python/reportlab-3.5.66[${PYTHON_USEDEP}] - >=dev-python/tqdm-4[${PYTHON_USEDEP}] - >=media-gfx/img2pdf-0.3.0[${PYTHON_USEDEP}] + >=dev-python/pikepdf-8.10.1[${PYTHON_USEDEP}] + >=dev-python/pillow-10.0.1[jpeg,jpeg2k,lcms,tiff,webp,zlib,${PYTHON_USEDEP}] + >=dev-python/pluggy-1[${PYTHON_USEDEP}] + >=dev-python/rich-13[${PYTHON_USEDEP}] + >=media-gfx/img2pdf-0.5[${PYTHON_USEDEP}] " BDEPEND=" >=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}] test? ( >=app-text/unpaper-6.1 + >=dev-python/hypothesis-6.36.0[${PYTHON_USEDEP}] dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] ~dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}] + >=dev-python/reportlab-3.6.8[${PYTHON_USEDEP}] + media-libs/exempi >=media-libs/jbig2enc-0.29 + media-libs/libxmp >=media-gfx/pngquant-2.5 ) " @@ -46,6 +49,11 @@ distutils_enable_sphinx docs \ dev-python/sphinx-issues \ dev-python/sphinx-rtd-theme +EPYTEST_DESELECT=( + # Causes pytest INTERNALERROR + 'tests/test_metadata.py::test_malformed_docinfo' +) + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} src_prepare() { @@ -55,9 +63,11 @@ src_prepare() { src_install() { distutils-r1_src_install - newbashcomp misc/completion/ocrmypdf.bash "${PN,,}" - insinto /usr/share/fish/vendor_completions.d - doins misc/completion/ocrmypdf.fish + + use bash-completion && + newbashcomp misc/completion/ocrmypdf.bash "${PN,,}" + use fish-completion && + newfishcomp misc/completion/ocrmypdf.fish "${PN,,}" } pkg_postinst() { diff --git a/app-text/OCRmyPDF/OCRmyPDF-16.2.0.ebuild b/app-text/OCRmyPDF/OCRmyPDF-16.2.0.ebuild new file mode 100644 index 0000000..d2685c5 --- /dev/null +++ b/app-text/OCRmyPDF/OCRmyPDF-16.2.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 optfeature shell-completion + +DESCRIPTION="OCRmyPDF adds an OCR text layer to scanned PDF files" +HOMEPAGE="https://github.com/ocrmypdf/OCRmyPDF" +SRC_URI="https://github.com/ocrmypdf/OCRmyPDF/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="bash-completion fish-completion" + +RDEPEND=" + >=app-text/ghostscript-gpl-9.54 + >=app-text/pdfminer-20220319[${PYTHON_USEDEP}] + >=app-text/tesseract-4.1.1[jpeg,tiff,png,webp] + >=dev-python/deprecation-2.1.0[${PYTHON_USEDEP}] + >=dev-python/packaging-20[${PYTHON_USEDEP}] + >=dev-python/pikepdf-8.10.1[${PYTHON_USEDEP}] + >=dev-python/pillow-10.0.1[jpeg,jpeg2k,lcms,tiff,webp,zlib,${PYTHON_USEDEP}] + >=dev-python/pluggy-1[${PYTHON_USEDEP}] + >=dev-python/rich-13[${PYTHON_USEDEP}] + >=media-gfx/img2pdf-0.5[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}] + test? ( + >=app-text/unpaper-6.1 + >=dev-python/hypothesis-6.36.0[${PYTHON_USEDEP}] + dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] + ~dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}] + >=dev-python/reportlab-3.6.8[${PYTHON_USEDEP}] + media-libs/exempi + >=media-libs/jbig2enc-0.29 + media-libs/libxmp + >=media-gfx/pngquant-2.5 + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs \ + dev-python/sphinx-issues \ + dev-python/sphinx-rtd-theme + +EPYTEST_DESELECT=( + # Causes pytest INTERNALERROR + 'tests/test_metadata.py::test_malformed_docinfo' +) + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + +src_prepare() { + distutils-r1_src_prepare + sed -e "/-n auto/d" -i pyproject.toml || die +} + +src_install() { + distutils-r1_src_install + + use bash-completion && + newbashcomp misc/completion/ocrmypdf.bash "${PN,,}" + use fish-completion && + newfishcomp misc/completion/ocrmypdf.fish "${PN,,}" +} + +pkg_postinst() { + optfeature "JBIG2 optimization support" media-libs/jbig2enc + optfeature "image cleaning support" app-text/unpaper + optfeature "PNG optimization support" media-gfx/pngquant +} diff --git a/app-text/OCRmyPDF/metadata.xml b/app-text/OCRmyPDF/metadata.xml index 901c685..12832e3 100644 --- a/app-text/OCRmyPDF/metadata.xml +++ b/app-text/OCRmyPDF/metadata.xml @@ -5,6 +5,9 @@ <email>marcin.deranek@slonko.net</email> <name>Marcin Deranek</name> </maintainer> + <use> + <flag name="fish-completion">Enable fish completion support</flag> + </use> <upstream> <bugs-to>https://github.com/ocrmypdf/OCRmyPDF/issues</bugs-to> <remote-id type="github">ocrmypdf/OCRmyPDF</remote-id> |