From adc5e44f43a81cc701b440a91437a37dbe84e209 Mon Sep 17 00:00:00 2001 From: Andrey Grozin Date: Mon, 15 Jun 2020 23:34:43 +0700 Subject: app-text/foliate: initial import Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Andrey Grozin --- app-text/foliate/Manifest | 1 + app-text/foliate/foliate-2.2.1.ebuild | 46 +++++++++++++++++++++++++++++++++++ app-text/foliate/metadata.xml | 15 ++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 app-text/foliate/Manifest create mode 100644 app-text/foliate/foliate-2.2.1.ebuild create mode 100644 app-text/foliate/metadata.xml (limited to 'app-text') diff --git a/app-text/foliate/Manifest b/app-text/foliate/Manifest new file mode 100644 index 000000000000..1cfbc505eff5 --- /dev/null +++ b/app-text/foliate/Manifest @@ -0,0 +1 @@ +DIST foliate-2.2.1.tar.gz 4310842 BLAKE2B 3e858379c84a790d1ce4d60af25c4911d2864d7b82f1896216ae8a01598ae7865d65b90056348b372b328e84184e75fcbacfbb2b6fdb8aa9a7e254e726957c4f SHA512 3c9c3d8f2df72fcb8699ccf23bf1850c129c6f387a9b12489d8fcc3dd1da4da5a7e0707f74f4607ab0e28d67e2f55f0bb2d053fbbc072bc9915c54c4857e4cff diff --git a/app-text/foliate/foliate-2.2.1.ebuild b/app-text/foliate/foliate-2.2.1.ebuild new file mode 100644 index 000000000000..734e15324406 --- /dev/null +++ b/app-text/foliate/foliate-2.2.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PLOCALES="cs_CS de_DE es fr_FR id_ID it nl pt_BR ru_RU sv zh_CN zh_TW" +inherit meson l10n xdg-utils 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="" + +BDEPEND="sys-devel/gettext" +RDEPEND="${BDEPEND} + dev-libs/gjs + net-libs/webkit-gtk" + +src_prepare() { + default + + l10n_find_plocales_changes "${S}"/po '' '.po' + + rm_po() { + rm po/${1}.po + sed -e "/^${1}/d" -i po/LINGUAS + } + + l10n_for_each_disabled_locale_do rm_po +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + xdg_icon_cache_update + gnome2_schemas_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + xdg_icon_cache_update + gnome2_schemas_update +} diff --git a/app-text/foliate/metadata.xml b/app-text/foliate/metadata.xml new file mode 100644 index 000000000000..61acad2b9559 --- /dev/null +++ b/app-text/foliate/metadata.xml @@ -0,0 +1,15 @@ + + + + + grozin@gentoo.org + + + A simple and modern GTK eBook viewer, built with GJS and Epub.js. + Supported formats: + epub, epub3, azw, azw3, mobi, fb2, fb2.zip, cbr, cbz, cbt, cb7, txt + + + johnfactotum/foliate + + -- cgit v1.2.3-18-g5258