diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2023-02-01 08:53:50 +0100 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2023-02-01 08:58:53 +0100 |
commit | 07a59fad00afdebf28a5cc994245a3afc7882047 (patch) | |
tree | b3fd89d1849481453935566b94116a0759d77eab /app-text | |
parent | app-text/paperwork: drop 2.1.0 (diff) | |
download | gentoo-07a59fad00afdebf28a5cc994245a3afc7882047.tar.gz gentoo-07a59fad00afdebf28a5cc994245a3afc7882047.tar.bz2 gentoo-07a59fad00afdebf28a5cc994245a3afc7882047.zip |
app-text/paperwork: add 2.1.2
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/paperwork/Manifest | 1 | ||||
-rw-r--r-- | app-text/paperwork/paperwork-2.1.2.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
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 +} |