1
0
flewkey-overlay/app-text/wike/wike-2.1.0.ebuild

52 lines
1022 B
Bash
Raw Normal View History

2024-02-05 22:56:57 -05:00
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit python-single-r1 meson xdg gnome2-utils
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/hugolabe/Wike.git"
else
MY_PN="Wike"
MY_P="${MY_PN}-${PV}"
S="${WORKDIR}/${MY_P}"
SRC_URI="https://github.com/hugolabe/Wike/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
KEYWORDS="~amd64"
fi
DESCRIPTION="Wikipedia reader for GNOME"
HOMEPAGE="https://github.com/hugolabe/Wike"
LICENSE="GPL-3"
SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/dbus-python[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
')
gui-libs/gtk:4
net-libs/webkit-gtk:6
"
src_install() {
meson_src_install
python_optimize
python_fix_shebang "${D}/usr/bin/wike"
}
pkg_postinst() {
xdg_icon_cache_update
gnome2_schemas_update
}
pkg_postrm() {
xdg_icon_cache_update
gnome2_schemas_update
}