commit:     07a59fad00afdebf28a5cc994245a3afc7882047
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  1 07:53:50 2023 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Wed Feb  1 07:58:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07a59fad

app-text/paperwork: add 2.1.2

Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 app-text/paperwork/Manifest               |  1 +
 app-text/paperwork/paperwork-2.1.2.ebuild | 53 +++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/app-text/paperwork/Manifest b/app-text/paperwork/Manifest
index bf6aa30e374e..f0fe9f9e87fe 100644
--- a/app-text/paperwork/Manifest
+++ b/app-text/paperwork/Manifest
@@ -1 +1,2 @@
 DIST paperwork-2.1.1.tar.gz 5886436 BLAKE2B 
5fd5a8a5d45a39298d3bc905360544f695c8c1ffa6e4bac56f3ec7bb9f31842aa71e2dadf0c8f072da59065f15fe5e768e42b8a1574722dfb99f66cc24c5b038
 SHA512 
e2164dc54eacb6153182c073e15f0605ec2131e17fa1c508d4923d37c1848c286d36807994ce07de99fb9cc5da012c111d84768c2c7c876dfb163811995b10c0
+DIST paperwork-2.1.2.tar.gz 5907738 BLAKE2B 
9b376e5ed13d69f0664c98d43a41cf876d21d46c31129b50c5c44e6d4279b04d302e7527906dad49b4416f698dfe9f5bafbc5130f41463efb5ca49fed0da308f
 SHA512 
0f75fba66a0b9ed1b4b28caf9dbbcc4a0b7e68fa24f5faa40251c3f39c610be372f89a2f4e2e6807babd930bfeb45cc82216761f0da042deac991d779fdfdfbb

diff --git a/app-text/paperwork/paperwork-2.1.2.ebuild 
b/app-text/paperwork/paperwork-2.1.2.ebuild
new file mode 100644
index 000000000000..000ebd41d82b
--- /dev/null
+++ b/app-text/paperwork/paperwork-2.1.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1 xdg
+
+DESCRIPTION="a personal document manager for scanned documents (and PDFs)"
+HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="~app-text/openpaperwork-core-${PV}[${PYTHON_USEDEP}]
+       ~app-text/openpaperwork-gtk-${PV}[${PYTHON_USEDEP}]
+       ~app-text/paperwork-backend-${PV}[${PYTHON_USEDEP}]
+       dev-python/libpillowfight[${PYTHON_USEDEP}]
+       dev-python/pillow[${PYTHON_USEDEP}]
+       dev-python/pycairo[${PYTHON_USEDEP}]
+       dev-python/pyenchant[${PYTHON_USEDEP}]
+       dev-python/pygobject:3[${PYTHON_USEDEP}]
+       >=dev-python/pyocr-0.3.0[${PYTHON_USEDEP}]
+       dev-python/pyxdg[${PYTHON_USEDEP}]
+       media-libs/libinsane
+       x11-libs/libnotify[introspection]"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       # remove dep to allow both old python-Levenshtein and new
+       # Levenshtein packages
+       sed -i -e '/python-Levenshtein/d' setup.py || die
+       distutils-r1_src_prepare
+}
+
+python_install_all() {
+       distutils-r1_python_install_all
+
+       # This queries tesseract languages and will fail sandbox with
+       # USE=opencl, bugs #793446 #830012 #852134
+       addpredict /dev/dri/renderD128
+       addpredict /dev/kfd
+       addpredict /dev/nvidiactl
+
+       PYTHONPATH="src" "${EPYTHON}" src/paperwork_gtk/main.py install \
+               --icon_base_dir="${ED}"/usr/share/icons \
+               --data_base_dir="${ED}"/usr/share
+}

Reply via email to