2
0
mirror of https://github.com/gentoo-mirror/gentoo.git synced 2026-01-19 00:09:37 +03:00

app-text/foliate: remove old revision

Signed-off-by: Andrey Grozin <grozin@gentoo.org>
This commit is contained in:
Andrey Grozin
2025-09-07 21:42:34 +07:00
parent 10b55a4c78
commit ba8e2873d5

View File

@@ -1,51 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PLOCALES="ar cs de el es eu fa_IR fr gl he hi hr hu id ie it ja ko nb nl nn oc pt_BR ru sr sv tr uk zh_CN zh_TW"
inherit meson plocale xdg gnome2-utils
DESCRIPTION="gtk ebook reader built with gjs"
HOMEPAGE="https://github.com/johnfactotum/foliate/"
FOLIATE_JS_VERSION="052123beafed921a9a2a45ef6330c235289a634e"
SRC_URI="https://github.com/johnfactotum/foliate/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
https://github.com/johnfactotum/${PN}-js/archive/${FOLIATE_JS_VERSION}.tar.gz -> ${PN}-js-${PV}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="${MESON_DEPEND}"
RDEPEND="dev-libs/gjs
gui-libs/gtk
>=gui-libs/libadwaita-1.7.0
net-libs/webkit-gtk:6[introspection]
sys-devel/gettext"
src_unpack() {
default
mv ${PN}-js-${FOLIATE_JS_VERSION}/* ${P}/src/${PN}-js/ || die "move foliate-js failed"
}
src_prepare() {
default
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
}