public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-news/sfeed/
Date: Wed,  9 Mar 2022 15:15:39 +0000 (UTC)	[thread overview]
Message-ID: <1646838850.03b4fbc065487ffc7447f1334dce20bb0f94a4b1.sam@gentoo> (raw)

commit:     03b4fbc065487ffc7447f1334dce20bb0f94a4b1
Author:     Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
AuthorDate: Mon Mar  7 15:16:22 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar  9 15:14:10 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03b4fbc0

net-news/sfeed: bump to 1.3 and improvements

* removes unneeded dependencies, add them to optfeature
* adds theme support via USE flag and savedconfig
* downgrade to EAPI 7 (8 doesn't support savedconfig)
* don't assume -ltinfo, use virtual/pkgconfig instead
* fix document location
* fix some quote and style issues

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Nickolas Raymond Kaczynski <nrk <AT> disroot.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-news/sfeed/Manifest         |  1 +
 net-news/sfeed/metadata.xml     |  9 +++++
 net-news/sfeed/sfeed-1.3.ebuild | 79 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 89 insertions(+)

diff --git a/net-news/sfeed/Manifest b/net-news/sfeed/Manifest
index a528a160f8c9..ef654433165d 100644
--- a/net-news/sfeed/Manifest
+++ b/net-news/sfeed/Manifest
@@ -1 +1,2 @@
 DIST sfeed-1.2.tar.gz 62575 BLAKE2B 080ef555e9ea6711ec1eea296c15dc11d937035742d32096f28ee4b4023c9cd4fcd0f7b59807cfdbfaa82c5f2bd7d51045caabcf33e72f2fd193c82885547cf3 SHA512 4307f11ab02310a881717d99892486152dad93ecb1d6526401e60d6275c1610d90599de9784d9878f9ebb5aa34881abd1daa348c977d9ef6758095be74216a29
+DIST sfeed-1.3.tar.gz 63037 BLAKE2B 30e3b8a82380b15230e895bc281d7c4ee33126269233fbc281e223b02976c236ca95d20764e0e30238149b97df44fbf197ea5003382774503ef1fad929835039 SHA512 858ebe0bf76f119a3b1a1b1bdf03a13b8085802bb796ae68f0a5ccb85e13747cc55498c29ef0443401678e56326bdef2bf9688966144e9581ff2cae486b729be

diff --git a/net-news/sfeed/metadata.xml b/net-news/sfeed/metadata.xml
index 05c7cc05fd2c..b567d679ef2a 100644
--- a/net-news/sfeed/metadata.xml
+++ b/net-news/sfeed/metadata.xml
@@ -4,4 +4,13 @@
 	<maintainer type="person">
 		<email>cedk@gentoo.org</email>
 	</maintainer>
+	<upstream>
+		<bugs-to>mailto:hiltjo@codemadness.org</bugs-to>
+	</upstream>
+	<use>
+		<flag name="theme-mono">Use mono theme</flag>
+		<flag name="theme-mono-highlight">Use mono_highlight theme</flag>
+		<flag name="theme-newsboat">Use newsboat theme</flag>
+		<flag name="theme-templeos">Use templeos theme</flag>
+	</use>
 </pkgmetadata>

diff --git a/net-news/sfeed/sfeed-1.3.ebuild b/net-news/sfeed/sfeed-1.3.ebuild
new file mode 100644
index 000000000000..2ffa8fc6c2ce
--- /dev/null
+++ b/net-news/sfeed/sfeed-1.3.ebuild
@@ -0,0 +1,79 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+
+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=""
+	if use ncurses; then
+		ncurses_ldflags="$("$(tc-getPKG_CONFIG)" --libs ncurses || die)"
+	fi
+	emake \
+		CC="$(tc-getCC)" \
+		RANLIB="$(tc-getRANLIB)" \
+		AR="$(tc-getAR)" \
+		SFEED_CURSES="$(usex 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="$(usex 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:[~2022-03-09 15:15 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-09 15:15 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-04  9:01 [gentoo-commits] repo/gentoo:master commit in: net-news/sfeed/ 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-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=1646838850.03b4fbc065487ffc7447f1334dce20bb0f94a4b1.sam@gentoo \
    --to=sam@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