diff options
Diffstat (limited to 'net-news/rssguard/rssguard-4.1.2.ebuild')
-rw-r--r-- | net-news/rssguard/rssguard-4.1.2.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/net-news/rssguard/rssguard-4.1.2.ebuild b/net-news/rssguard/rssguard-4.1.2.ebuild new file mode 100644 index 000000000000..9dcccc8acdbd --- /dev/null +++ b/net-news/rssguard/rssguard-4.1.2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +QTMIN="5.9.0" +inherit flag-o-matic optfeature qmake-utils xdg + +DESCRIPTION="Simple (yet powerful) feed reader" +HOMEPAGE="https://github.com/martinrotter/rssguard" +SRC_URI="https://github.com/martinrotter/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( LGPL-3 GPL-2+ ) AGPL-3+ BSD GPL-3+ MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="debug webengine" + +BDEPEND=">=dev-qt/linguist-tools-${QTMIN}:5" +DEPEND=" + >=dev-qt/qtcore-${QTMIN}:5 + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtdeclarative-${QTMIN}:5 + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtmultimedia-${QTMIN}:5[gstreamer] + >=dev-qt/qtnetwork-${QTMIN}:5[ssl] + >=dev-qt/qtsql-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + >=dev-qt/qtxml-${QTMIN}:5 + webengine? ( >=dev-qt/qtwebengine-${QTMIN}:5[widgets(+)] ) +" +RDEPEND="${DEPEND}" + +DOCS=( README.md resources/docs/Documentation.md ) + +src_prepare() { + default + sed -e 's:$$PREFIX/lib:$$PREFIX/'$(get_libdir)':' -i pri/install.pri || die +} + +src_configure() { + eqmake5_args=( + CONFIG+=$(usex debug debug release) + USE_WEBENGINE=$(usex webengine true false) + PREFIX="${EPREFIX}"/usr + INSTALL_ROOT=. + ) + + # https://github.com/martinrotter/rssguard/issues/156 + is-flagq "-flto*" && eqmake5_args+=( CONFIG+=ltcg ) + + eqmake5 "${eqmake5_args[@]}" +} + +src_install() { + emake -j1 install INSTALL_ROOT="${D}" + einstalldocs +} + +pkg_postinst() { + xdg_pkg_postinst + + if use webengine; then + optfeature "ad blocking functionality" net-libs/nodejs[npm] + elog "Adblocker module requires additional npm modules to be installed:" + elog "npm i -g @cliqz/adblocker tldts-experimental" + fi +} |