From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DC2FD15806E for ; Wed, 17 May 2023 20:13:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0CD4BE07AE; Wed, 17 May 2023 20:13:32 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DD7B0E07AE for ; Wed, 17 May 2023 20:13:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A05E434095A for ; Wed, 17 May 2023 20:13:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ED2CBA34 for ; Wed, 17 May 2023 20:13:28 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1684354396.b15b13a3859fdd8d1593655eefe1bf11a46b5f59.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-news/sfeed/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-news/sfeed/Manifest net-news/sfeed/metadata.xml net-news/sfeed/sfeed-1.8.ebuild X-VCS-Directories: net-news/sfeed/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: b15b13a3859fdd8d1593655eefe1bf11a46b5f59 X-VCS-Branch: master Date: Wed, 17 May 2023 20:13:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8f736564-4718-4aa5-98ca-9600a66f5737 X-Archives-Hash: 73ed086fe787dc5a1b5c5058df7d3338 commit: b15b13a3859fdd8d1593655eefe1bf11a46b5f59 Author: NRK disroot org> AuthorDate: Wed May 17 20:13:16 2023 +0000 Commit: David Seifert gentoo org> CommitDate: Wed May 17 20:13:16 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b15b13a3 net-news/sfeed: add 1.8 Also update my name to what I prefer since glep76 now allows for using "established online identity" [0]. [0]: https://www.gentoo.org/glep/glep-0076.html#certificate-of-origin Closes: https://github.com/gentoo/gentoo/pull/30834 Signed-off-by: NRK disroot.org> Signed-off-by: David Seifert gentoo.org> net-news/sfeed/Manifest | 1 + net-news/sfeed/metadata.xml | 2 +- net-news/sfeed/sfeed-1.8.ebuild | 78 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 1 deletion(-) diff --git a/net-news/sfeed/Manifest b/net-news/sfeed/Manifest index 5ea089db8202..4d145a8a3806 100644 --- a/net-news/sfeed/Manifest +++ b/net-news/sfeed/Manifest @@ -1,2 +1,3 @@ DIST sfeed-1.5.tar.gz 65067 BLAKE2B 0f2fbe263d869d396aae9a13c482d381d0e7201ca62b86f795bedd4e4174bea1959c16d1b63d534013e9a100527d6885122b9965e060773809912d299a9a573e SHA512 9a027b092620968bd6a086b37ce5bc3e2d5ee8193b59251466d5318bc1514ca78d3edf894c1988504c99b94f0bb3af2a54ba3067b2d90d1109665a5650bfd8a2 DIST sfeed-1.6.tar.gz 65239 BLAKE2B 25a5f645d8814d48d6c2617cbc9944339866e668c7b7d21581db605987284447c5d6e2f505b5c9d1c1f5d22702ef3b3c80a076f8d9c930f8ae7d5447fd88ecb0 SHA512 450cde27b0d437b165fc024f2b95612fd7755c357e3539167f3c9b123d7a63c3193cb808b6c9621d15b1f5e2d8d783131423e52db6e98c228aa5af190eb167eb +DIST sfeed-1.8.tar.gz 67335 BLAKE2B 7898d6fe51455c65e7b1d7708ba4804880f36d0d3447746f6c81a85a22427bf3f0b7f8f7685f0e3b27b538b4ef7193fdef54f5aa4e1816e33d78a50143307804 SHA512 7a57108ace21813de9d80e7ebcc9ffed37580f52f08313ddcf86f2ee0df54d733631cba6936921623aa34c41a06dba43778cedbf557738db009d91f961fc9af7 diff --git a/net-news/sfeed/metadata.xml b/net-news/sfeed/metadata.xml index 3e53e4749dc3..20ac8c519bdb 100644 --- a/net-news/sfeed/metadata.xml +++ b/net-news/sfeed/metadata.xml @@ -7,7 +7,7 @@ nrk@disroot.org - Nickolas Raymond Kaczynski + NRK proxy-maint@gentoo.org diff --git a/net-news/sfeed/sfeed-1.8.ebuild b/net-news/sfeed/sfeed-1.8.ebuild new file mode 100644 index 000000000000..cc25963b8f64 --- /dev/null +++ b/net-news/sfeed/sfeed-1.8.ebuild @@ -0,0 +1,78 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs savedconfig optfeature + +DESCRIPTION="Simple RSS and Atom parser" +HOMEPAGE="https://codemadness.org/sfeed-simple-feed-parser.html" +SRC_URI="https://codemadness.org/releases/${PN}/${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~riscv ~sparc ~x86" + +THEMES=( mono{,-highlight} newsboat templeos ) +IUSE="+ncurses +${THEMES[@]/#/theme-}" +REQUIRED_USE="ncurses? ( ^^ ( "${THEMES[@]/#/theme-}" ) )" + +DEPEND="ncurses? ( sys-libs/ncurses:= )" +RDEPEND="${DEPEND}" +BDEPEND="ncurses? ( virtual/pkgconfig )" + +src_configure() { + local name + for name in "${THEMES[@]}"; do + use "theme-${name}" && SFEED_THEME="${name//-/_}" + done + + restore_config $(printf "themes/%s.h " "${THEMES[@]//-/_}") +} + +src_compile() { + local ncurses_ldflags="" + use ncurses && ncurses_ldflags="$($(tc-getPKG_CONFIG) --libs ncurses || die)" + + emake \ + CC="$(tc-getCC)" \ + RANLIB="$(tc-getRANLIB)" \ + AR="$(tc-getAR)" \ + SFEED_CURSES="$(usev ncurses sfeed_curses)" \ + SFEED_THEME="${SFEED_THEME}" \ + SFEED_CURSES_LDFLAGS="${LDFLAGS} ${ncurses_ldflags}" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + MANPREFIX="${EPREFIX}/usr/share/man" \ + DOCPREFIX="${EPREFIX}/usr/share/doc/${PF}" \ + SFEED_CURSES="$(usev ncurses sfeed_curses)" \ + install + + save_config $(printf "themes/%s.h " "${THEMES[@]//-/_}") +} + +pkg_postinst() { + local optmsg + + if use ncurses; then + optmsg="yanking the URL or enclosure in sfeed_curses. " + optmsg+="See \$SFEED_YANKER to change it." + optfeature "${optmsg}" x11-misc/xclip + + optmsg="plumbing the URL or enclosure in sfeed_curses. " + optmsg+="See \$SFEED_PLUMBER to change it." + optfeature "${optmsg}" x11-misc/xdg-utils + fi + + optmsg="converting HTML content via sfeed_content. " + optmsg+="See the ENVIRONMENT VARIABLES section in the man page to change it." + optfeature "${optmsg}" www-client/lynx + + optmsg="fetching feeds. Used by sfeed_update as default. " + optmsg+="See OVERRIDE FUNCTIONS section on sfeedrc manpage to change it." + optfeature "${optmsg}" net-misc/curl +}