diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2024-05-07 01:03:07 +0200 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2024-05-07 01:05:10 +0200 |
commit | d535560e582ff1b43d45bc549ed1e26a783b4b9a (patch) | |
tree | 5a764aed4811a866f25d44d3f4b2e68a1c5bbbcb /app-text | |
parent | app-text/paperwork-backend: add 2.2.2 (diff) | |
download | gentoo-d535560e582ff1b43d45bc549ed1e26a783b4b9a.tar.gz gentoo-d535560e582ff1b43d45bc549ed1e26a783b4b9a.tar.bz2 gentoo-d535560e582ff1b43d45bc549ed1e26a783b4b9a.zip |
app-text/paperwork: add 2.2.2
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/paperwork/Manifest | 2 | ||||
-rw-r--r-- | app-text/paperwork/paperwork-2.2.2.ebuild | 66 |
2 files changed, 68 insertions, 0 deletions
diff --git a/app-text/paperwork/Manifest b/app-text/paperwork/Manifest index 5d17894750df..3bb713c3cb5a 100644 --- a/app-text/paperwork/Manifest +++ b/app-text/paperwork/Manifest @@ -1,2 +1,4 @@ DIST paperwork-2.2.1.tar.bz2 2529505 BLAKE2B e5545d3fbb5e41d0ddd21a0358fae496d127b30a3f72e1438eef679c520a3152e4db006d9dc42023431907281452931e90aea187c4928309bde7add2d54b5844 SHA512 f96ddf3efe3b5021e612600fa2e3a9c83db7ec78b9637e434facefcc422700be1b67b74231b4738a7762905ac5267f412839ff9d43cb9dcf7f95a5f3d6f7091f +DIST paperwork-2.2.2.tar.bz2 2531134 BLAKE2B 760d5fdc949ed44993c9845232e3f92b26b8dcb84ef82b08be7dbb0b262461feaf06f930f3fce0b94fdd8412a8264969bac117e3ea7aef70e1b47436a9dba3c0 SHA512 e0d3c24a0d611ffea231e129461d2925dc8318aaade185e83361bca8d1757e4601510db6122dc412863e617a387eb1c6008d0974c2b37be7ac4e4c3e68bc450b DIST paperwork-data-2.2.1.tar.gz 5210355 BLAKE2B 48ee8f9828f7aed9b41c998c2cdc43a2b98c2a2482e388500b8d04867a450bbf3264ef5a87d7f215f1389943e4cbab452d3a7a6235d63cfdb27127ab56ad9c2f SHA512 cf663368f733f45dde8242c3ad9ba405361628bddb7e8aed9dffeb5bb86c1abac7a3485cb7e2042d65006f8f336390fa81ea182dad62f4259b79805ac7a0416b +DIST paperwork-data-2.2.2.tar.gz 5206588 BLAKE2B 7dd15d31b0b3b59900556d78b271f36cc1cab533d273948a7d0eb364028ec0d1c26b2743a10565e2fc1d65786a11a1589c776c2ec1df6030efe8a79b2fba53a0 SHA512 aaf8e4174504eed7b33b2a0d3ad1b0af489d70bd9a425cf9363011fc6e24dd42a6822a5d078898279e78bbe15b4e36075c5a57a5ec74eabb3c2af7b9c3cc3e76 diff --git a/app-text/paperwork/paperwork-2.2.2.ebuild b/app-text/paperwork/paperwork-2.2.2.ebuild new file mode 100644 index 000000000000..ee6ce4a56117 --- /dev/null +++ b/app-text/paperwork/paperwork-2.2.2.ebuild @@ -0,0 +1,66 @@ +# 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="3f51346f" +REL_HASH="0bea4054" +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 +} |