# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cmake eapi9-ver xdg DESCRIPTION="Simple (yet powerful) news feed reader" HOMEPAGE="https://github.com/martinrotter/rssguard/" SRC_URI=" https://github.com/martinrotter/rssguard/releases/download/${PV}/${P}-src.tar.gz " LICENSE="|| ( LGPL-3 GPL-2+ ) AGPL-3+ BSD GPL-3+ MIT" SLOT="0/101" KEYWORDS="~amd64" IUSE="icu libmpv mysql qtmultimedia +sqlite webengine" REQUIRED_USE=" || ( mysql sqlite ) ?? ( libmpv qtmultimedia ) " # go for article-extractor plugin BDEPEND=" dev-lang/go dev-qt/qttools:6[linguist] " DEPEND=" dev-qt/qtbase:6[concurrent,dbus,gui,mysql?,network,sql,sqlite?,ssl,widgets] dev-qt/qtdeclarative:6 dev-qt/qtmultimedia:6[gstreamer] media-libs/libglvnd virtual/zlib:= icu? ( dev-libs/icu:= ) libmpv? ( dev-qt/qtbase:6[opengl] media-video/mpv:= ) qtmultimedia? ( dev-qt/qtbase:6[opengl] dev-qt/qtmultimedia:6 ) webengine? ( dev-qt/qtwebengine:6 ) " # xmpp support pending qxmpp bump: https://bugs.gentoo.org/973427 # xmpp? ( net-libs/qxmpp:= ) RDEPEND="${DEPEND}" # go QA_FLAGS_IGNORED="/usr/bin/rssguard-article-extractor" pkg_pretend() { if ver_replacing -lt 5.1.0; then ewarn "RSSGuard 5.1.0 changed its database schema. Once you start the new" ewarn "version, the database will be upgraded in place and it will" ewarn "no longer be possible to run an older version of RSSGuard with it." fi } src_configure() { grep -q "^#define APP_DB_SCHEMA_VERSION\s*\"${SLOT#0/}\"$" \ src/librssguard/definitions/definitions.h || die "APP_DB_SCHEMA_VERSION changed, update SLOT" local mycmakeargs=( -DBUILD_WITH_QT6=ON -DREVISION_FROM_GIT=OFF -DNO_UPDATE_CHECK=ON -DENABLE_COMPRESSED_SITEMAP=ON -DENABLE_ICU=$(usex icu) -DENABLE_MEDIAPLAYER_QTMULTIMEDIA=$(usex qtmultimedia) -DENABLE_MEDIAPLAYER_LIBMPV=$(usex libmpv) -DUSE_SYSTEM_QXMPP=ON # -DBUILD_XMPP_PLUGIN=$(usex xmpp) -DWEB_ARTICLE_VIEWER_WEBENGINE=$(usex webengine) # recommended -DMEDIAPLAYER_FORCE_OPENGL=ON # TODO: unbundle gumbo? unfortunately upstream is inlining it # into their CMakeLists rather than using litehtml CMakeLists # that support external gumbo ) cmake_src_configure }