From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C6CBC13835B for ; Sun, 10 Jan 2021 11:32:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BB36E0AE4; Sun, 10 Jan 2021 11:32:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DE635E0AE4 for ; Sun, 10 Jan 2021 11:32:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5FF7D340E45 for ; Sun, 10 Jan 2021 11:32:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 928844A2 for ; Sun, 10 Jan 2021 11:31:57 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1610140713.f7a1c459bced591327a6ad04ecdba6bd1c8c004f.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-text/OCRmyPDF/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-text/OCRmyPDF/Manifest app-text/OCRmyPDF/OCRmyPDF-11.4.5.ebuild X-VCS-Directories: app-text/OCRmyPDF/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: f7a1c459bced591327a6ad04ecdba6bd1c8c004f X-VCS-Branch: master Date: Sun, 10 Jan 2021 11:31:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ee9d6ee9-886b-4202-8561-30768b4d2767 X-Archives-Hash: f891f368f69c0ce8eff30c3abd4a2906 commit: f7a1c459bced591327a6ad04ecdba6bd1c8c004f Author: Theo Anderson posteo de> AuthorDate: Fri Jan 8 21:18:33 2021 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Fri Jan 8 21:18:33 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f7a1c459 app-text/OCRmyPDF: bump to 11.4.5 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Theo Anderson posteo.de> app-text/OCRmyPDF/Manifest | 1 + app-text/OCRmyPDF/OCRmyPDF-11.4.5.ebuild | 64 ++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/app-text/OCRmyPDF/Manifest b/app-text/OCRmyPDF/Manifest index e5428e24..2560c8f5 100644 --- a/app-text/OCRmyPDF/Manifest +++ b/app-text/OCRmyPDF/Manifest @@ -1,2 +1,3 @@ DIST OCRmyPDF-11.4.3.tar.gz 7883284 BLAKE2B e127dbb60bf18c152f9725fa097897aa5392c8db71f5540f3410e07327b6a7de4536d38ff6bda25eb29e3ced768ab86a9e6a6b5510f09dfa031dba4e0953cc92 SHA512 d40587a1e38b9f3adabb3c144fae0436eeab01f9c01de87c47e5b2b7fe1c5df85b9ade60daadff6177574d9933c61dad9df9602a5f46880a077991e2a9ab8ca4 DIST OCRmyPDF-11.4.4.tar.gz 7883043 BLAKE2B 25d4f259c257884107c2fa76c2f662fc867528555ea47b3d3cabbbc3e9fd68bdb55ae4540556607ee31f534152b7c55076224c194e6299ab4bbd1b6f874752dc SHA512 198491f11764b68dc26877f73c815f1425b3bf730c5ada8319b1122ac525a3790e9e86a25b7965bf674197571960a76256984071e3f0b9a1507794dbb875340b +DIST OCRmyPDF-11.4.5.tar.gz 7882974 BLAKE2B dd2c73e3aa78f0dadebcd25879aa315836e703bd089663a310af5b5231a03bf4cfe3acdbc4a658a99b92d585cd992134fdc1d3a12d7b2a74e205fe5b2ffa1b50 SHA512 4abf32733f520c0f8d99a9b1631d37ac339067b55756a9d9d4f0c182eca96f251ab7779d1c0af913891a57f3d103cc028ce3899dc263869ac6af3cf6f75e1ead diff --git a/app-text/OCRmyPDF/OCRmyPDF-11.4.5.ebuild b/app-text/OCRmyPDF/OCRmyPDF-11.4.5.ebuild new file mode 100644 index 00000000..ba67ede5 --- /dev/null +++ b/app-text/OCRmyPDF/OCRmyPDF-11.4.5.ebuild @@ -0,0 +1,64 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit bash-completion-r1 distutils-r1 + +DESCRIPTION="OCRmyPDF adds an OCR text layer to scanned PDF files" +HOMEPAGE="https://github.com/jbarlow83/OCRmyPDF" +SRC_URI="https://github.com/jbarlow83/OCRmyPDF/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +# This uses *a lot* of RAM, I have 32gb and these tests tried to use it all +RESTRICT="test" +IUSE="jbig2enc" + +RDEPEND=" + app-text/ghostscript-gpl + app-text/tesseract + app-text/unpaper + dev-python/cffi[${PYTHON_USEDEP}] + dev-python/coloredlogs[${PYTHON_USEDEP}] + >=dev-python/pdfminer-six-20191110[${PYTHON_USEDEP}] + <=dev-python/pdfminer-six-20201018[${PYTHON_USEDEP}] + dev-python/pikepdf[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pluggy[${PYTHON_USEDEP}] + dev-python/reportlab[${PYTHON_USEDEP}] + dev-python/tqdm[${PYTHON_USEDEP}] + media-gfx/img2pdf[${PYTHON_USEDEP}] + media-gfx/pngquant + media-libs/leptonica + virtual/python-cffi[${PYTHON_USEDEP}] + jbig2enc? ( media-libs/jbig2enc ) +" +DEPEND=" + test? ( + dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ~dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs --no-autodoc + +python_prepare_all() { + # do not depend on deprecated dep + sed -i -e '/pytest-runner/d' setup.py || die + distutils-r1_python_prepare_all +} + +src_install() { + distutils-r1_src_install + newbashcomp "${S}"/misc/completion/ocrmypdf.bash "${PN,,}" + insinto /usr/share/fish/vendor_completions.d + doins "${S}"/misc/completion/ocrmypdf.fish +}