public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-news/sfeed/
Date: Tue, 07 Jan 2025 19:19:12 +0000 (UTC)	[thread overview]
Message-ID: <1736277547.3aad8c1dd83c09bd341c8057749551d51255a01d.arthurzam@gentoo> (raw)

commit:     3aad8c1dd83c09bd341c8057749551d51255a01d
Author:     NRK <nrk <AT> disroot <DOT> org>
AuthorDate: Fri Jan  3 16:41:33 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Tue Jan  7 19:19:07 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3aad8c1d

net-news/sfeed: add v2.1

Signed-off-by: NRK <nrk <AT> disroot.org>
Closes: https://github.com/gentoo/gentoo/pull/39963
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 net-news/sfeed/Manifest         |  1 +
 net-news/sfeed/sfeed-2.1.ebuild | 78 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git a/net-news/sfeed/Manifest b/net-news/sfeed/Manifest
index ee61c2438e2c..08c23695a969 100644
--- a/net-news/sfeed/Manifest
+++ b/net-news/sfeed/Manifest
@@ -1,2 +1,3 @@
 DIST sfeed-1.9.tar.gz 67718 BLAKE2B 414f53e63962192e994b5f57ff76c809df49d7f089bf1f4bf14cd16f7c52534f5fd7030acf5bcc6514d8b5b4a74cc1f7bdf31759df4c37186d4e1c35fad0b184 SHA512 714ce9526ce6a37cdc5777e279512b611f9e329ed0d7d1e9fd8efe8c981a69fe19c6622685d0ac2e16eef1f699096262e616e5b4f5ba81e44624ae99d10de749
 DIST sfeed-2.0.tar.gz 67584 BLAKE2B b9c8bdaeea63c2a6781f69087601814943a09ea62b5764668ae0d22dab12976f47b4185196cdc87365cc03fa27322de357541c7c8ad4430323241fb56e2c3d11 SHA512 cc4c0236b14ac6da6a9417d879caef9943c30506e2fee404eefceea53dea597b36814846cfc454d76727ddcca33746f2bac3c1ee6831f9900e68d00f6eb32b5b
+DIST sfeed-2.1.tar.gz 68610 BLAKE2B 6ce4d99dfa6665282ba6db3d6d41e0e0008d487b662a7799a781682faaafc0118a387d9fc2e4562e958996e79a19090f70936f2dffb4fbcf15f00003407b6bd8 SHA512 47f176bcb9e97e42446edf2b8fd2f902430d86bd93cd076e474532b344dca930fdeaffdf89cb58b59a5583bfed94921f1d2032ee8921e7075ee31d38a766e396

diff --git a/net-news/sfeed/sfeed-2.1.ebuild b/net-news/sfeed/sfeed-2.1.ebuild
new file mode 100644
index 000000000000..19d1974f6a4d
--- /dev/null
+++ b/net-news/sfeed/sfeed-2.1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 2022-2025 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
+}


             reply	other threads:[~2025-01-07 19:19 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-07 19:19 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-15 15:54 [gentoo-commits] repo/gentoo:master commit in: net-news/sfeed/ Arthur Zamarin
2025-02-14  5:02 Sam James
2024-04-04  9:01 Jakov Smolić
2024-02-16  8:46 Petr Vaněk
2023-12-18  1:09 Sam James
2023-10-08 22:22 Yixun Lan
2023-10-03 15:45 Sam James
2023-05-17 20:13 David Seifert
2023-04-15  7:17 Joonas Niilola
2022-12-07 14:41 Sam James
2022-12-05 20:03 Arthur Zamarin
2022-11-15  2:53 Sam James
2022-10-29 21:11 Yixun Lan
2022-10-29 18:32 Arthur Zamarin
2022-10-29 18:32 Arthur Zamarin
2022-10-29 18:32 Arthur Zamarin
2022-10-27 12:26 Joonas Niilola
2022-10-27 12:26 Joonas Niilola
2022-10-27 12:26 Joonas Niilola
2022-08-07  6:18 Joonas Niilola
2022-07-04 11:33 Joonas Niilola
2022-06-16 16:36 Sam James
2022-03-26  0:01 Sam James
2022-03-09 15:15 Sam James
2022-03-09 15:15 Sam James
2022-02-19 21:55 Cédric Krier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1736277547.3aad8c1dd83c09bd341c8057749551d51255a01d.arthurzam@gentoo \
    --to=arthurzam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox