commit:     29d127c54f0f3a70732671fabc506b25c44ab384
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  7 13:02:26 2023 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Tue Nov  7 14:51:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29d127c5

app-text/paperwork: add 2.2.1

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

 app-text/paperwork/Manifest               |  1 +
 app-text/paperwork/paperwork-2.2.1.ebuild | 49 +++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/app-text/paperwork/Manifest b/app-text/paperwork/Manifest
index 6a846d60a943..5e38d896d24e 100644
--- a/app-text/paperwork/Manifest
+++ b/app-text/paperwork/Manifest
@@ -1 +1,2 @@
 DIST paperwork-2.1.2.tar.gz 5907738 BLAKE2B 
9b376e5ed13d69f0664c98d43a41cf876d21d46c31129b50c5c44e6d4279b04d302e7527906dad49b4416f698dfe9f5bafbc5130f41463efb5ca49fed0da308f
 SHA512 
0f75fba66a0b9ed1b4b28caf9dbbcc4a0b7e68fa24f5faa40251c3f39c610be372f89a2f4e2e6807babd930bfeb45cc82216761f0da042deac991d779fdfdfbb
+DIST paperwork-2.2.1.tar.bz2 2529505 BLAKE2B 
e5545d3fbb5e41d0ddd21a0358fae496d127b30a3f72e1438eef679c520a3152e4db006d9dc42023431907281452931e90aea187c4928309bde7add2d54b5844
 SHA512 
f96ddf3efe3b5021e612600fa2e3a9c83db7ec78b9637e434facefcc422700be1b67b74231b4738a7762905ac5267f412839ff9d43cb9dcf7f95a5f3d6f7091f

diff --git a/app-text/paperwork/paperwork-2.2.1.ebuild 
b/app-text/paperwork/paperwork-2.2.1.ebuild
new file mode 100644
index 000000000000..50978a913269
--- /dev/null
+++ b/app-text/paperwork/paperwork-2.2.1.ebuild
@@ -0,0 +1,49 @@
+# 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..12} )
+
+inherit distutils-r1 xdg
+
+DESCRIPTION="a personal document manager for scanned documents (and PDFs)"
+HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork";
+SRC_URI="https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/archive/${PV}/paperwork-${PV}.tar.bz2";
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+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/pygobject:3[${PYTHON_USEDEP}]
+       >=dev-python/pyocr-0.3.0[${PYTHON_USEDEP}]
+       >=dev-python/pyxdg-0.25[${PYTHON_USEDEP}]
+       media-libs/libinsane
+       x11-libs/libnotify[introspection]"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]"
+
+S=${WORKDIR}/paperwork-${PV}/${PN}-gtk
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+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