Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/paperwork/
Date: Wed, 01 Feb 2023 07:59:07
Message-Id: 1675238333.07a59fad00afdebf28a5cc994245a3afc7882047.voyageur@gentoo
1 commit: 07a59fad00afdebf28a5cc994245a3afc7882047
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 1 07:53:50 2023 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 07:58:53 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07a59fad
7
8 app-text/paperwork: add 2.1.2
9
10 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
11
12 app-text/paperwork/Manifest | 1 +
13 app-text/paperwork/paperwork-2.1.2.ebuild | 53 +++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/app-text/paperwork/Manifest b/app-text/paperwork/Manifest
17 index bf6aa30e374e..f0fe9f9e87fe 100644
18 --- a/app-text/paperwork/Manifest
19 +++ b/app-text/paperwork/Manifest
20 @@ -1 +1,2 @@
21 DIST paperwork-2.1.1.tar.gz 5886436 BLAKE2B 5fd5a8a5d45a39298d3bc905360544f695c8c1ffa6e4bac56f3ec7bb9f31842aa71e2dadf0c8f072da59065f15fe5e768e42b8a1574722dfb99f66cc24c5b038 SHA512 e2164dc54eacb6153182c073e15f0605ec2131e17fa1c508d4923d37c1848c286d36807994ce07de99fb9cc5da012c111d84768c2c7c876dfb163811995b10c0
22 +DIST paperwork-2.1.2.tar.gz 5907738 BLAKE2B 9b376e5ed13d69f0664c98d43a41cf876d21d46c31129b50c5c44e6d4279b04d302e7527906dad49b4416f698dfe9f5bafbc5130f41463efb5ca49fed0da308f SHA512 0f75fba66a0b9ed1b4b28caf9dbbcc4a0b7e68fa24f5faa40251c3f39c610be372f89a2f4e2e6807babd930bfeb45cc82216761f0da042deac991d779fdfdfbb
23
24 diff --git a/app-text/paperwork/paperwork-2.1.2.ebuild b/app-text/paperwork/paperwork-2.1.2.ebuild
25 new file mode 100644
26 index 000000000000..000ebd41d82b
27 --- /dev/null
28 +++ b/app-text/paperwork/paperwork-2.1.2.ebuild
29 @@ -0,0 +1,53 @@
30 +# Copyright 1999-2023 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{9..11} )
37 +
38 +inherit distutils-r1 xdg
39 +
40 +DESCRIPTION="a personal document manager for scanned documents (and PDFs)"
41 +HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE=""
48 +
49 +RDEPEND="~app-text/openpaperwork-core-${PV}[${PYTHON_USEDEP}]
50 + ~app-text/openpaperwork-gtk-${PV}[${PYTHON_USEDEP}]
51 + ~app-text/paperwork-backend-${PV}[${PYTHON_USEDEP}]
52 + dev-python/libpillowfight[${PYTHON_USEDEP}]
53 + dev-python/pillow[${PYTHON_USEDEP}]
54 + dev-python/pycairo[${PYTHON_USEDEP}]
55 + dev-python/pyenchant[${PYTHON_USEDEP}]
56 + dev-python/pygobject:3[${PYTHON_USEDEP}]
57 + >=dev-python/pyocr-0.3.0[${PYTHON_USEDEP}]
58 + dev-python/pyxdg[${PYTHON_USEDEP}]
59 + media-libs/libinsane
60 + x11-libs/libnotify[introspection]"
61 +DEPEND="${RDEPEND}"
62 +
63 +src_prepare() {
64 + # remove dep to allow both old python-Levenshtein and new
65 + # Levenshtein packages
66 + sed -i -e '/python-Levenshtein/d' setup.py || die
67 + distutils-r1_src_prepare
68 +}
69 +
70 +python_install_all() {
71 + distutils-r1_python_install_all
72 +
73 + # This queries tesseract languages and will fail sandbox with
74 + # USE=opencl, bugs #793446 #830012 #852134
75 + addpredict /dev/dri/renderD128
76 + addpredict /dev/kfd
77 + addpredict /dev/nvidiactl
78 +
79 + PYTHONPATH="src" "${EPYTHON}" src/paperwork_gtk/main.py install \
80 + --icon_base_dir="${ED}"/usr/share/icons \
81 + --data_base_dir="${ED}"/usr/share
82 +}