From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1275707-garchives=archives.gentoo.org@lists.gentoo.org> 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 2350213835A for <garchives@archives.gentoo.org>; Wed, 28 Apr 2021 02:16:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6743E0877; Wed, 28 Apr 2021 02:16:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 9F3A5E0877 for <gentoo-commits@lists.gentoo.org>; Wed, 28 Apr 2021 02:16:51 +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 62E273406F2 for <gentoo-commits@lists.gentoo.org>; Wed, 28 Apr 2021 02:16:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AF7625C9 for <gentoo-commits@lists.gentoo.org>; Wed, 28 Apr 2021 02:16:48 +0000 (UTC) From: "Theo Anderson" <telans@posteo.de> 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" <telans@posteo.de> Message-ID: <1619574034.e29da84bc76553f011baa13987a5c0fc87fefe20.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.0.1.ebuild X-VCS-Directories: app-text/OCRmyPDF/ X-VCS-Committer: telans X-VCS-Committer-Name: Theo Anderson X-VCS-Revision: e29da84bc76553f011baa13987a5c0fc87fefe20 X-VCS-Branch: dev Date: Wed, 28 Apr 2021 02:16:48 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8a3e4096-fdbf-4564-81e6-7f0d723bc38c X-Archives-Hash: 6cc4108867291951925c9cadf125e488 commit: e29da84bc76553f011baa13987a5c0fc87fefe20 Author: Theo Anderson <telans <AT> posteo <DOT> de> AuthorDate: Wed Apr 28 01:40:34 2021 +0000 Commit: Theo Anderson <telans <AT> posteo <DOT> de> CommitDate: Wed Apr 28 01:40:34 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e29da84b app-text/OCRmyPDF: add 12.0.1 Signed-off-by: Theo Anderson <telans <AT> posteo.de> app-text/OCRmyPDF/Manifest | 1 + app-text/OCRmyPDF/OCRmyPDF-12.0.1.ebuild | 58 ++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/app-text/OCRmyPDF/Manifest b/app-text/OCRmyPDF/Manifest index d6bb63d7d..7f37194f2 100644 --- a/app-text/OCRmyPDF/Manifest +++ b/app-text/OCRmyPDF/Manifest @@ -1,3 +1,4 @@ DIST OCRmyPDF-11.6.2.tar.gz 7885633 BLAKE2B a4c09a8088abe3f9e984e8c7ce1b58699c5e40c46de8e9f81ac43838772541758467887b22c3a9fe8026fb8cd125466968e5745af69c9760a0f470879e40685b SHA512 1f92022352b63d2642a0fd49ea72d70973c08d2b2cc84d3d92f06bfd883a858f7dba06f83a921245846d20fc90a1afa0570e7d58fe673e1dfad82e5e047e8de3 DIST OCRmyPDF-11.7.0.tar.gz 7885763 BLAKE2B 9658222f85f32958338823686e4c7d66a07060b4660033c167a8462fec7f9c863f516e877b9dca2979f9471a7bbda1a5c611dfbdcdc7ea75fafdb13bca2cef08 SHA512 d9353bc627a13d5092e79e264287942da757669992a3585f44d97d254d4043f41a6e4646026115bd81bf5bcf0d2810c1a382097a23938e0925cbc1fa46815595 DIST OCRmyPDF-11.7.1.tar.gz 7886196 BLAKE2B 8da696926824b54061035157f7962f428f8c2bf8d94f9bec119a963e05b1bbade1a0740fa7fea4a5a8b8d442b18a294a9ba8ca3b824e5c40445fa7e50279d49b SHA512 75e8b969ff94e1d6b36ddfacc3d79aae00ada2622ace8ef911de2febb815a2b0a5d7b3e46e5adb74687871d75ff1a08bf9cd3f1529bc412fccade1bad16b5fc6 +DIST OCRmyPDF-12.0.1.tar.gz 7895727 BLAKE2B f31adaf417b50cad5140f7073e4e66350103b46f968c28892b50f5164834903cd214dc3a6e83c2d22b1df3f3d44ea48ab2fff7c356ec39adabb812b77deba3a3 SHA512 7e7718d9ad1349d4702f859a8f985c6523f136ce745bd9c69038792c5f580b1124c1a6c2efe9a06bf3bdd21cc2d6d005140ade29361be4e13e625b201791c680 diff --git a/app-text/OCRmyPDF/OCRmyPDF-12.0.1.ebuild b/app-text/OCRmyPDF/OCRmyPDF-12.0.1.ebuild new file mode 100644 index 000000000..ed5786c97 --- /dev/null +++ b/app-text/OCRmyPDF/OCRmyPDF-12.0.1.ebuild @@ -0,0 +1,58 @@ +# 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="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 +}