summaryrefslogtreecommitdiff
path: root/net-news/sfeed
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-03-20 00:40:44 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-03-20 00:40:44 +0000
commit4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch)
tree356496503d52354aa6d9f2d36126302fed5f3a73 /net-news/sfeed
parentfcc5224904648a8e6eb528d7603154160a20022f (diff)
gentoo resync : 20.03.2022
Diffstat (limited to 'net-news/sfeed')
-rw-r--r--net-news/sfeed/Manifest6
-rw-r--r--net-news/sfeed/files/sfeed-1.2-ldflags.patch20
-rw-r--r--net-news/sfeed/metadata.xml24
-rw-r--r--net-news/sfeed/sfeed-1.2.ebuild48
-rw-r--r--net-news/sfeed/sfeed-1.3.ebuild79
5 files changed, 177 insertions, 0 deletions
diff --git a/net-news/sfeed/Manifest b/net-news/sfeed/Manifest
new file mode 100644
index 000000000000..e5e667a74ec2
--- /dev/null
+++ b/net-news/sfeed/Manifest
@@ -0,0 +1,6 @@
+AUX sfeed-1.2-ldflags.patch 885 BLAKE2B a100ccffbd7dd909515c03f3f3eff96c453fc5971068ced87d6e11a7da2ea877f070403f0ed6d6ffae20fbc490d6432aa2e58094d5c5fa0cef72f5313cfb98d9 SHA512 560960c10d5ac3e941d0c4d7072387cad9ce3caa612f97f3adde36aa5bccbc5477e3c41e4641a94432721b9313c8e67447605f77692ffb28c9f5f24d26c7c3c3
+DIST sfeed-1.2.tar.gz 62575 BLAKE2B 080ef555e9ea6711ec1eea296c15dc11d937035742d32096f28ee4b4023c9cd4fcd0f7b59807cfdbfaa82c5f2bd7d51045caabcf33e72f2fd193c82885547cf3 SHA512 4307f11ab02310a881717d99892486152dad93ecb1d6526401e60d6275c1610d90599de9784d9878f9ebb5aa34881abd1daa348c977d9ef6758095be74216a29
+DIST sfeed-1.3.tar.gz 63037 BLAKE2B 30e3b8a82380b15230e895bc281d7c4ee33126269233fbc281e223b02976c236ca95d20764e0e30238149b97df44fbf197ea5003382774503ef1fad929835039 SHA512 858ebe0bf76f119a3b1a1b1bdf03a13b8085802bb796ae68f0a5ccb85e13747cc55498c29ef0443401678e56326bdef2bf9688966144e9581ff2cae486b729be
+EBUILD sfeed-1.2.ebuild 962 BLAKE2B e64022c34115ff78e037c2ddcd57570f8bfaacea61e0c917402051a80aed19f747fd4a3298c6a72f286dea80f3f2f0a8f2af0f9ae4c79233f77efaa975da681d SHA512 726e9e363f4603dcf35ab4570b9384fceb7fa4d67d5115b71f2575fa6e75cc7d053045689891e7363fab4e5af5fda2b8307c649a6d6f0169e7c0a1e11145c899
+EBUILD sfeed-1.3.ebuild 2145 BLAKE2B 61f2343cd1e3c1122cc718efdc8664f500e4f4d3764acd033a0669be3275a380163cec323c8c7b658d7f4386f1ceb5a6a48d3035045b867aef9cc802add4e981 SHA512 c0b229f2147f3cf8c5775ac67239b184d34ed74c5576525c9a3a8866242137b779f652dab204cd903b9a6a29dca285e1fe7db5375ef9fb729a744d55c13b163e
+MISC metadata.xml 800 BLAKE2B 21467934f1d8fb7f3b77e26daa8595a19d4a2d4e87aebfcffbefd367348668fec28eb560e98505c4f4cb7a479b5c2e5e1e9992a8b7d66ee651ed37895bda8aa9 SHA512 08fa61b54e15a3968f168a4a542a55a14d33ee539a67bfe4a58770d6b2a4553483fdd8889a436287462858b2d56f0022c14b71f7c7b1834092c4c4a9f92b7387
diff --git a/net-news/sfeed/files/sfeed-1.2-ldflags.patch b/net-news/sfeed/files/sfeed-1.2-ldflags.patch
new file mode 100644
index 000000000000..51f712976e9a
--- /dev/null
+++ b/net-news/sfeed/files/sfeed-1.2-ldflags.patch
@@ -0,0 +1,20 @@
+diff -ru sfeed-1.2.orig/Makefile sfeed-1.2/Makefile
+--- sfeed-1.2.orig/Makefile 2022-02-20 11:43:35.164358731 +0100
++++ sfeed-1.2/Makefile 2022-02-20 11:43:45.874495281 +0100
+@@ -27,14 +27,14 @@
+ SFEED_CURSES_CFLAGS = ${CFLAGS}
+ SFEED_CURSES_CPPFLAGS = -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE \
+ -DSFEED_THEME=\"themes/${SFEED_THEME}.h\" ${SFEED_CPPFLAGS}
+-SFEED_CURSES_LDFLAGS = ${LDFLAGS} -lcurses
++#SFEED_CURSES_LDFLAGS = ${LDFLAGS} -lcurses
+
+ # Linux: some distros use ncurses and require -lncurses.
+ #SFEED_CURSES_LDFLAGS = ${LDFLAGS} -lncurses
+
+ # Gentoo Linux: some distros might also require -ltinfo and -D_DEFAULT_SOURCE
+ # to prevent warnings about feature test macros.
+-#SFEED_CURSES_LDFLAGS = ${LDFLAGS} -lcurses -ltinfo
++SFEED_CURSES_LDFLAGS = ${LDFLAGS} -lcurses -ltinfo
+
+ # FreeBSD: unset feature test macros for SIGWINCH etc.
+ #SFEED_CURSES_CPPFLAGS =
diff --git a/net-news/sfeed/metadata.xml b/net-news/sfeed/metadata.xml
new file mode 100644
index 000000000000..8022e4957183
--- /dev/null
+++ b/net-news/sfeed/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>cedk@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person" proxied="yes">
+ <email>nrk@disroot.org</email>
+ <name>Nickolas Raymond Kaczynski</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </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.2.ebuild b/net-news/sfeed/sfeed-1.2.ebuild
new file mode 100644
index 000000000000..f70410c8c920
--- /dev/null
+++ b/net-news/sfeed/sfeed-1.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+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"
+IUSE="ncurses"
+
+DEPEND="ncurses? ( sys-libs/ncurses )"
+RDEPEND="${DEPEND}
+ net-misc/curl
+ sys-apps/coreutils
+ sys-libs/glibc
+ virtual/awk
+ www-client/lynx
+ x11-misc/xclip
+ x11-misc/xdg-utils"
+BDEPEND=""
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.2-ldflags.patch"
+)
+
+src_compile() {
+ emake \
+ CC=$(tc-getCC) \
+ RANLIB=$(tc-getRANLIB) \
+ AR=$(tc-getAR) \
+ SFEED_CURSES=$(usex ncurses "sfeed_curses" "")
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ PREFIX="${EPREFIX}/usr" \
+ MANPREFIX="${EPREFIX}/usr/share/man" \
+ DOCPREFIX="${EPREFIX}/usr/share/doc/${P}" \
+ SFEED_CURSES=$(usex ncurses "sfeed_curses" "") \
+ install
+}
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
+}