forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Andrey Grozin <[email protected]>
- Loading branch information
Andrey Grozin
committed
Oct 30, 2020
1 parent
a173c8d
commit c5e8b06
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST foliate-2.4.2.tar.gz 4638211 BLAKE2B 4263e047d7251a0f15a2cda2592ba24dbbb9754a37ba6367f0d1e778e3f926cd46777d505e9f92d74bdcd28a722988b60f064f1a841c53a9b2849130941d9481 SHA512 6dda76c9bd3f9f3273bafdd65463adfcab84d9c81ca89c2fd1cda4c5d7618d84610e11c75936c5df2bb118caa3f3e1e77ded506da670263e5af5b0ad92a97a07 | ||
DIST foliate-2.5.0.tar.gz 4716094 BLAKE2B c2db3116df1117db06dca93cb3ac47e5f5c627c9e424e5add315f8623b9d71b6cc87112729ce6daa5cdfc81f3b8664555623ba55d6cf674369137ecf0859e321 SHA512 3eb3ecff36a105f6d9ba7e019312bef81e34f62f61310eaf3460c7aea41585fc9b410d08f9e4fd03fe60629b1ebb6f9f6a4c900e898ac712b104c615dc3737c8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright 1999-2020 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
PLOCALES="cs_CS de_DE es eu fr_FR id_ID ie it ko nb nl nn pt_BR ru_RU sv tr uk 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="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 | ||
|
||
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 | ||
} |