commit: 8fb5c8d70069c94b06c41f40fad1da97513abf2a Author: brettalcox <brettalcox <AT> gmail <DOT> com> AuthorDate: Sat May 11 00:33:33 2024 +0000 Commit: Brett Alcox <brettalcox <AT> gmail <DOT> com> CommitDate: Sat May 11 00:33:33 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8fb5c8d7
net-news/gfeeds: add r2 to fix lxml module Signed-off-by: brettalcox <brettalcox <AT> gmail.com> net-news/gfeeds/gfeeds-2.2.0-r2.ebuild | 73 ++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/net-news/gfeeds/gfeeds-2.2.0-r2.ebuild b/net-news/gfeeds/gfeeds-2.2.0-r2.ebuild new file mode 100644 index 0000000000..4b5ede222a --- /dev/null +++ b/net-news/gfeeds/gfeeds-2.2.0-r2.ebuild @@ -0,0 +1,73 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_11 ) + +inherit gnome2-utils meson python-single-r1 + +DESCRIPTION="An RSS/Atom feed reader for GNOME." +HOMEPAGE="https://gitlab.gnome.org/World/gfeeds" +SRC_URI="https://gitlab.gnome.org/World/gfeeds/-/archive/${PV}/${P}.tar.bz2" + +# This fixes 1 syntax-related compilation error and syntax warnings (usage of $) +PATCHES="${FILESDIR}/${P}-blueprint-0.80-fix.patch" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/html5lib[${PYTHON_USEDEP}] + dev-python/humanize[${PYTHON_USEDEP}] + dev-python/lxml-html-clean[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/python-magic[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/readability-lxml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + ') + dev-util/blueprint-compiler + gui-libs/gtk:4 + gui-libs/libadwaita + net-libs/syndication-domination[python] + net-libs/webkit-gtk:6 +" +RDEPEND="${DEPEND}" +BDEPEND=">=dev-build/meson-0.58" + +src_configure() { + local emesonargs=( + --prefix=/usr + ) + meson_src_configure +} + +src_compile() { + meson_src_compile +} + +src_install() { + meson_src_install + python_fix_shebang "${D}"/usr/bin/gfeeds + python_optimize "${ED}"/usr +} + +pkg_postinst() { + gnome2_schemas_update + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + gnome2_schemas_update + xdg_icon_cache_update + xdg_desktop_database_update +}