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 3EE38158019 for ; Mon, 4 Oct 2021 08:11:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5685BE0953; Mon, 4 Oct 2021 08:11:33 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3A283E0943 for ; Mon, 4 Oct 2021 08:11:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 40765342F1A for ; Mon, 4 Oct 2021 08:11:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7725414C for ; Mon, 4 Oct 2021 08:11:29 +0000 (UTC) From: "Theo Anderson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Theo Anderson" Message-ID: <1633333904.2269a56bdffe5e5ff7ba7de5d628482b453c6650.telans@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-text/OCRmyPDF/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-text/OCRmyPDF/Manifest app-text/OCRmyPDF/OCRmyPDF-12.6.0.ebuild X-VCS-Directories: app-text/OCRmyPDF/ X-VCS-Committer: telans X-VCS-Committer-Name: Theo Anderson X-VCS-Revision: 2269a56bdffe5e5ff7ba7de5d628482b453c6650 X-VCS-Branch: dev Date: Mon, 4 Oct 2021 08:11:29 +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: ab3d6bf0-f478-4f17-80ea-a396ed2d6126 X-Archives-Hash: a54da26dfb46470ca3674ea8e741d415 commit: 2269a56bdffe5e5ff7ba7de5d628482b453c6650 Author: James Beddek posteo de> AuthorDate: Mon Oct 4 07:51:44 2021 +0000 Commit: Theo Anderson posteo de> CommitDate: Mon Oct 4 07:51:44 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2269a56b app-text/OCRmyPDF: add 12.6.0 Signed-off-by: James Beddek posteo.de> app-text/OCRmyPDF/Manifest | 1 + app-text/OCRmyPDF/OCRmyPDF-12.6.0.ebuild | 58 ++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/app-text/OCRmyPDF/Manifest b/app-text/OCRmyPDF/Manifest index 1c431256e..ad570a2cb 100644 --- a/app-text/OCRmyPDF/Manifest +++ b/app-text/OCRmyPDF/Manifest @@ -1 +1,2 @@ DIST OCRmyPDF-12.0.2.tar.gz 7895055 BLAKE2B 4fab449f9edf8788c74773da0e73adca9dc686afcbc69d9d6263049044b202744244eab4f4d6e5596461c55d399320a5e7604c6a8080c0d6a05ea6df15314eac SHA512 8bc749353d88dd1e0b2fbd313ba45fa5bf79b70c0366bde21dbe457ce269d02bea64e797e73b823fe9c02b2bd18f181f6cea414306ab1470e244e4201f86781a +DIST OCRmyPDF-12.6.0.tar.gz 7897200 BLAKE2B e183280e11414a7b2bedd339e971f1c74697d9847771e24592207e5bfe82af184544576c067856cdee9d8409bdca856e8aeb48c8e5b4e32154b69111fba2d775 SHA512 0792fccec7ecdfc93a02c4e29d0c88076c191aed3a2848c4db5d6b18ad4837a24e325dfc961aaa7c68407de7dd471e45e7b6389d6cf8f9465fe3892038696e97 diff --git a/app-text/OCRmyPDF/OCRmyPDF-12.6.0.ebuild b/app-text/OCRmyPDF/OCRmyPDF-12.6.0.ebuild new file mode 100644 index 000000000..35a9ead06 --- /dev/null +++ b/app-text/OCRmyPDF/OCRmyPDF-12.6.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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="MPL-2.0" +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 + +src_install() { + distutils-r1_src_install + newbashcomp misc/completion/ocrmypdf.bash "${PN,,}" + insinto /usr/share/fish/vendor_completions.d + doins misc/completion/ocrmypdf.fish +}