From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B674B15808B for ; Mon, 21 Feb 2022 05:51:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0313E0963; Mon, 21 Feb 2022 05:51:38 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D816FE0963 for ; Mon, 21 Feb 2022 05:51:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 45E1134309B for ; Mon, 21 Feb 2022 05:51:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5A5EE2E0 for ; Mon, 21 Feb 2022 05:51:35 +0000 (UTC) From: "Andrey Grozin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrey Grozin" Message-ID: <1645422662.812baa73db4c66f05f2e2afd102ef7282074f74a.grozin@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/foliate/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/foliate/foliate-2.6.4-r1.ebuild X-VCS-Directories: app-text/foliate/ X-VCS-Committer: grozin X-VCS-Committer-Name: Andrey Grozin X-VCS-Revision: 812baa73db4c66f05f2e2afd102ef7282074f74a X-VCS-Branch: master Date: Mon, 21 Feb 2022 05:51:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e1829da8-8fd8-47a7-93c5-505873174b15 X-Archives-Hash: 47d40eab898429e42ae4cbb855e0c545 commit: 812baa73db4c66f05f2e2afd102ef7282074f74a Author: Andrey Grozin gentoo org> AuthorDate: Mon Feb 21 05:51:02 2022 +0000 Commit: Andrey Grozin gentoo org> CommitDate: Mon Feb 21 05:51:02 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=812baa73 app-text/foliate: ebuild improvements Closes: https://bugs.gentoo.org/800560 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andrey Grozin gentoo.org> app-text/foliate/foliate-2.6.4-r1.ebuild | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/app-text/foliate/foliate-2.6.4-r1.ebuild b/app-text/foliate/foliate-2.6.4-r1.ebuild new file mode 100644 index 000000000000..155e34657ae2 --- /dev/null +++ b/app-text/foliate/foliate-2.6.4-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PLOCALES="cs de es eu fr id ie it ko nb nl nn pt_BR ru sv tr uk zh_CN zh_TW" +PYTHON_COMPAT=( python3_{8..10} ) +inherit meson python-any-r1 plocale xdg gnome2-utils +SRC_URI="https://github.com/johnfactotum/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +DESCRIPTION="gtk ebook reader built with gjs" +HOMEPAGE="https://github.com/johnfactotum/foliate/" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="handy spell" + +BDEPEND="${MESON_DEPEND} + sys-devel/gettext" +RDEPEND="dev-libs/gjs + x11-libs/gtk+:3[introspection] + x11-libs/pango[introspection] + x11-libs/gdk-pixbuf:2[introspection] + net-libs/webkit-gtk:4[introspection] + handy? ( gui-libs/libhandy:=[introspection] ) + spell? ( app-text/gspell[introspection] )" + +src_prepare() { + default + python_fix_shebang build-aux/meson + xdg_environment_reset + + plocale_find_changes "${S}"/po '' '.po' + + rm_po() { + rm po/${1}.po + sed -e "/^${1}/d" -i po/LINGUAS + } + + plocale_for_each_disabled_locale rm_po +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postinst + gnome2_schemas_update +}