From ddc78b0429d7263ccac86391176a88ee972e2c9e Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Sun, 16 Apr 2023 13:50:26 -0700 Subject: [PATCH] app-text/wike: add 2.0.0 --- app-text/wike/Manifest | 1 + app-text/wike/wike-2.0.0.ebuild | 46 +++++++++++++++++++++++++++++++++ app-text/wike/wike-9999.ebuild | 9 ++++++- 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 app-text/wike/wike-2.0.0.ebuild diff --git a/app-text/wike/Manifest b/app-text/wike/Manifest index f11241e..f69d40e 100644 --- a/app-text/wike/Manifest +++ b/app-text/wike/Manifest @@ -1 +1,2 @@ DIST wike-1.8.3.gh.tar.gz 1267896 BLAKE2B 59df2d84852987ec35c693a535290eb206ec5da5cf1994f51527dbd60c94a1ce07477f235df71953e7bf74214a0888cc1c7cac499f8c2b91fbfc901ac838cde7 SHA512 3647ff69cc55261d0c2f320ee6b6c8beb296d76366b53a05265fa978d89c205a6f9dde18ca253a6fddeb1d7958e0f369f0458b62a651c0d4b66b98aaa62faaca +DIST wike-2.0.0.gh.tar.gz 1703781 BLAKE2B 3916591e3fe62fcb9d5407aec745d652bdcb73f5cfd637f8c18057de75a9069ba459d7716c1fdb62574f38ebf4d19d85b9e8b39d2a9df765613360a04b80cd2e SHA512 ca02ea2364d270571b7a4e13de7dd29a45c9a3a945b32de7fcca1b37235ec51ba7ed02f3fc69a5bb0b4463f4c72a25195297e7ac3082767d5b1e6d5e4c9ffea2 diff --git a/app-text/wike/wike-2.0.0.ebuild b/app-text/wike/wike-2.0.0.ebuild new file mode 100644 index 0000000..122fa7f --- /dev/null +++ b/app-text/wike/wike-2.0.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) + +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 +" +BDEPEND="" + +pkg_postinst() { + xdg_icon_cache_update + gnome2_schemas_update +} + +pkg_postrm() { + xdg_icon_cache_update + gnome2_schemas_update +} diff --git a/app-text/wike/wike-9999.ebuild b/app-text/wike/wike-9999.ebuild index 13c520e..122fa7f 100644 --- a/app-text/wike/wike-9999.ebuild +++ b/app-text/wike/wike-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -30,6 +30,8 @@ RDEPEND=" dev-python/dbus-python[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] ') + gui-libs/gtk:4 + net-libs/webkit-gtk:6 " BDEPEND="" @@ -37,3 +39,8 @@ pkg_postinst() { xdg_icon_cache_update gnome2_schemas_update } + +pkg_postrm() { + xdg_icon_cache_update + gnome2_schemas_update +}