app-text/paperwork: add 2.2.5

Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli
2024-09-26 11:55:02 +02:00
parent 7e0d37df40
commit 5ad4e5925f
2 changed files with 67 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST paperwork-2.2.3.tar.bz2 2531208 BLAKE2B 6259a9b7a916ad71fc0f0747ce0c17e874dbff962c3d8b46c4c25c2a119de6d27f0ce7ce262dfbf7290fa436726fc538d9bead2664d7f158d51634eece768620 SHA512 68bad3ccc9ed2fdea2b1336945ca4f11de5b0a2249d5f043dc34d620ae5bf6627c0255d4776a5c19e9d266972403023f0b63eb3bf694d7a33051b53239c017bf
DIST paperwork-2.2.5.tar.bz2 2515993 BLAKE2B 3d4e6607d06efc40939fb1d6df72937acb58d54200be96f8c276efe2564ec3e67cafde11e1d8733ff7fd9647b3f30410f9eb584569d56efc3ea5bff21b25acb1 SHA512 60e8acc439bd935f402871208b6acccda033c6324b734aac7adde45716c0e44770902bf97499c10d11af171be5c8bd8ab832b714a972bac27cd274ff5b9fb8ef
DIST paperwork-data-2.2.3.tar.gz 5206588 BLAKE2B 7dd15d31b0b3b59900556d78b271f36cc1cab533d273948a7d0eb364028ec0d1c26b2743a10565e2fc1d65786a11a1589c776c2ec1df6030efe8a79b2fba53a0 SHA512 aaf8e4174504eed7b33b2a0d3ad1b0af489d70bd9a425cf9363011fc6e24dd42a6822a5d078898279e78bbe15b4e36075c5a57a5ec74eabb3c2af7b9c3cc3e76
DIST paperwork-data-2.2.5.tar.gz 5206588 BLAKE2B 7dd15d31b0b3b59900556d78b271f36cc1cab533d273948a7d0eb364028ec0d1c26b2743a10565e2fc1d65786a11a1589c776c2ec1df6030efe8a79b2fba53a0 SHA512 aaf8e4174504eed7b33b2a0d3ad1b0af489d70bd9a425cf9363011fc6e24dd42a6822a5d078898279e78bbe15b4e36075c5a57a5ec74eabb3c2af7b9c3cc3e76

View File

@@ -0,0 +1,65 @@
# Copyright 1999-2024 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"
# Update from release hash at:
# https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/tags
REL_HASH="620eb580"
SRC_URI="https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/archive/${PV}/paperwork-${PV}.tar.bz2
https://download.openpaper.work/data/paperwork/master_${REL_HASH}/data.tar.gz -> paperwork-data-${PV}.tar.gz"
S=${WORKDIR}/paperwork-${PV}/${PN}-gtk
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}]
sys-apps/which
sys-devel/gettext"
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
src_prepare() {
default
cp -a "${WORKDIR}"/${PN}-gtk "${WORKDIR}"/paperwork-${PV}/
}
python_compile() {
emake l10n_compile
distutils-r1_python_compile
}
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
}