summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNickolas Raymond Kaczynski <nrk@disroot.org>2022-10-06 06:47:53 +0600
committerJoonas Niilola <juippis@gentoo.org>2022-10-27 15:19:39 +0300
commit4437dc65104be7c18b809bbf9687a8cacd9c09a7 (patch)
tree4059830fea2fc5c36e7ca1ab3dcba4613eff2bbe /net-news
parentapp-dicts/myspell-en: bump to 20221001 (diff)
downloadgentoo-4437dc65104be7c18b809bbf9687a8cacd9c09a7.tar.gz
gentoo-4437dc65104be7c18b809bbf9687a8cacd9c09a7.tar.bz2
gentoo-4437dc65104be7c18b809bbf9687a8cacd9c09a7.zip
net-news/sfeed: add v1.6
Signed-off-by: Nickolas Raymond Kaczynski <nrk@disroot.org> Closes: https://github.com/gentoo/gentoo/pull/27652 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-news')
-rw-r--r--net-news/sfeed/Manifest1
-rw-r--r--net-news/sfeed/sfeed-1.6.ebuild78
2 files changed, 79 insertions, 0 deletions
diff --git a/net-news/sfeed/Manifest b/net-news/sfeed/Manifest
index e8b62fa302a8..138eb15330f6 100644
--- a/net-news/sfeed/Manifest
+++ b/net-news/sfeed/Manifest
@@ -1,3 +1,4 @@
DIST sfeed-1.3.tar.gz 63037 BLAKE2B 30e3b8a82380b15230e895bc281d7c4ee33126269233fbc281e223b02976c236ca95d20764e0e30238149b97df44fbf197ea5003382774503ef1fad929835039 SHA512 858ebe0bf76f119a3b1a1b1bdf03a13b8085802bb796ae68f0a5ccb85e13747cc55498c29ef0443401678e56326bdef2bf9688966144e9581ff2cae486b729be
DIST sfeed-1.4.tar.gz 64312 BLAKE2B 517c25eb28ba120e3d1bb564812fdfd6453741ddf09d60ca2f6b5c30bda15f17fc187302e803cc91937d3582116654f732a030a7aa17dfc9b234a0c858770674 SHA512 9187692076cad9029dd65c58c666972b8aeaefe90155ce9105af32803cdd0365c3b66fafcb5bee485d466126142a3a26f6f38cc9696531c2623b7e8963c578fb
DIST sfeed-1.5.tar.gz 65067 BLAKE2B 0f2fbe263d869d396aae9a13c482d381d0e7201ca62b86f795bedd4e4174bea1959c16d1b63d534013e9a100527d6885122b9965e060773809912d299a9a573e SHA512 9a027b092620968bd6a086b37ce5bc3e2d5ee8193b59251466d5318bc1514ca78d3edf894c1988504c99b94f0bb3af2a54ba3067b2d90d1109665a5650bfd8a2
+DIST sfeed-1.6.tar.gz 65239 BLAKE2B 25a5f645d8814d48d6c2617cbc9944339866e668c7b7d21581db605987284447c5d6e2f505b5c9d1c1f5d22702ef3b3c80a076f8d9c930f8ae7d5447fd88ecb0 SHA512 450cde27b0d437b165fc024f2b95612fd7755c357e3539167f3c9b123d7a63c3193cb808b6c9621d15b1f5e2d8d783131423e52db6e98c228aa5af190eb167eb
diff --git a/net-news/sfeed/sfeed-1.6.ebuild b/net-news/sfeed/sfeed-1.6.ebuild
new file mode 100644
index 000000000000..31103b5adee3
--- /dev/null
+++ b/net-news/sfeed/sfeed-1.6.ebuild
@@ -0,0 +1,78 @@
+# 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=""
+ use ncurses && ncurses_ldflags="$($(tc-getPKG_CONFIG) --libs ncurses || die)"
+
+ 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
+}