commit: f2e5d1861f5d8b7359ab64247838a6e27dfaadb3 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> AuthorDate: Tue Nov 7 14:38:47 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=f2e5d186
app-text/paperwork: install l10n and data files Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> app-text/paperwork/Manifest | 1 + app-text/paperwork/paperwork-2.2.1.ebuild | 20 ++++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/app-text/paperwork/Manifest b/app-text/paperwork/Manifest index 5e38d896d24e..2837b256f07d 100644 --- a/app-text/paperwork/Manifest +++ b/app-text/paperwork/Manifest @@ -1,2 +1,3 @@ DIST paperwork-2.1.2.tar.gz 5907738 BLAKE2B 9b376e5ed13d69f0664c98d43a41cf876d21d46c31129b50c5c44e6d4279b04d302e7527906dad49b4416f698dfe9f5bafbc5130f41463efb5ca49fed0da308f SHA512 0f75fba66a0b9ed1b4b28caf9dbbcc4a0b7e68fa24f5faa40251c3f39c610be372f89a2f4e2e6807babd930bfeb45cc82216761f0da042deac991d779fdfdfbb DIST paperwork-2.2.1.tar.bz2 2529505 BLAKE2B e5545d3fbb5e41d0ddd21a0358fae496d127b30a3f72e1438eef679c520a3152e4db006d9dc42023431907281452931e90aea187c4928309bde7add2d54b5844 SHA512 f96ddf3efe3b5021e612600fa2e3a9c83db7ec78b9637e434facefcc422700be1b67b74231b4738a7762905ac5267f412839ff9d43cb9dcf7f95a5f3d6f7091f +DIST paperwork-data-2.2.1.tar.gz 5210355 BLAKE2B 48ee8f9828f7aed9b41c998c2cdc43a2b98c2a2482e388500b8d04867a450bbf3264ef5a87d7f215f1389943e4cbab452d3a7a6235d63cfdb27127ab56ad9c2f SHA512 cf663368f733f45dde8242c3ad9ba405361628bddb7e8aed9dffeb5bb86c1abac7a3485cb7e2042d65006f8f336390fa81ea182dad62f4259b79805ac7a0416b diff --git a/app-text/paperwork/paperwork-2.2.1.ebuild b/app-text/paperwork/paperwork-2.2.1.ebuild index 50978a913269..a5fa423d906a 100644 --- a/app-text/paperwork/paperwork-2.2.1.ebuild +++ b/app-text/paperwork/paperwork-2.2.1.ebuild @@ -10,7 +10,11 @@ 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" +# Update from release hash at: +# https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/tags +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" LICENSE="GPL-3" SLOT="0" @@ -28,12 +32,24 @@ RDEPEND="~app-text/openpaperwork-core-${PV}[${PYTHON_USEDEP}] media-libs/libinsane x11-libs/libnotify[introspection]" DEPEND="${RDEPEND}" -BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]" +BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}] + sys-devel/gettext" S=${WORKDIR}/paperwork-${PV}/${PN}-gtk 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