aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNickolas Raymond Kaczynski <nrk@disroot.org>2021-11-28 18:17:33 +0600
committerNickolas Raymond Kaczynski <nrk@disroot.org>2021-11-28 18:26:10 +0600
commit68d8506302c039126d02582debd9a67a8b7e41e8 (patch)
tree6a370169d95cc6211589d51dede4aac5ed9e4f6c /net-news
parentapp-misc/rememberthemilk: Add missing dependencies (diff)
downloadguru-68d8506302c039126d02582debd9a67a8b7e41e8.tar.gz
guru-68d8506302c039126d02582debd9a67a8b7e41e8.tar.bz2
guru-68d8506302c039126d02582debd9a67a8b7e41e8.zip
net-news/sfeed: bump version 1.1
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Nickolas Raymond Kaczynski <nrk@disroot.org>
Diffstat (limited to 'net-news')
-rw-r--r--net-news/sfeed/Manifest1
-rw-r--r--net-news/sfeed/metadata.xml9
-rw-r--r--net-news/sfeed/sfeed-1.1.ebuild77
3 files changed, 87 insertions, 0 deletions
diff --git a/net-news/sfeed/Manifest b/net-news/sfeed/Manifest
index ca71b54c5..acbceb633 100644
--- a/net-news/sfeed/Manifest
+++ b/net-news/sfeed/Manifest
@@ -1 +1,2 @@
DIST sfeed-1.0.tar.gz 39349 BLAKE2B 75b74ec4f3fbe400f030c10f31e5084e82313de9a4c766ee46106b55dae53b17ce02f490ca348aad73da527af34bc22ae0598bbe82fadb3b0b833065dedabd60 SHA512 8377b092c797483564e189e77f9cb37a675d5d88ad41625ab5afbafb39af13bf2787d27d1bc543f8089f2fffec4532b58687a8ed2b0f3d31a1aa030359de6a93
+DIST sfeed-1.1.tar.gz 60644 BLAKE2B de5e7f4252c9fcbbba3343ea78c52f5a56d088a2dc8611212aef1c768b9d7c8c500680f4d037eb8cf7d5bf2cc4d1c18444f963735faf4526eb96260898f6cdad SHA512 8d05fb8578a7475779a14105376a3b5238a297193a0f98c9123c90d10c7ebe2fe9bc72eef694c6c9aa94f50fa3c96491cdd511d8d7b167ea8e25dfe772dada6e
diff --git a/net-news/sfeed/metadata.xml b/net-news/sfeed/metadata.xml
index c698af234..98738fd65 100644
--- a/net-news/sfeed/metadata.xml
+++ b/net-news/sfeed/metadata.xml
@@ -5,4 +5,13 @@
<email>contact@hacktivis.me</email>
<name>Haelwenn (lanodan) Monnier</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.1.ebuild b/net-news/sfeed/sfeed-1.1.ebuild
new file mode 100644
index 000000000..fb5f2e848
--- /dev/null
+++ b/net-news/sfeed/sfeed-1.1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs savedconfig
+
+DESCRIPTION="simple RSS and Atom parser"
+HOMEPAGE="https://www.codemadness.org/sfeed.html"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://git.codemadness.org/sfeed"
+else
+ SRC_URI="https://www.codemadness.org/releases/sfeed/sfeed-${PV}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="ISC"
+SLOT="0"
+
+IUSE="
+ +ncurses
+ +theme-mono
+ theme-mono-highlight
+ theme-newsboat
+ theme-templeos
+"
+REQUIRED_USE="ncurses? ( ^^ ( theme-mono theme-mono-highlight theme-newsboat theme-templeos ) )"
+
+DEPEND="ncurses? ( sys-libs/ncurses )"
+RDEPEND="ncurses? ( !net-news/sfeed_curses ) ${DEPEND}"
+
+src_configure() {
+ # Gentoo requires -ltinfo
+ sed -i \
+ -e "/^#SFEED_CURSES_LDFLAGS.*-ltinfo/{s|#||g}" \
+ Makefile || die "sed failed"
+
+ if use theme-mono ; then
+ SFEED_THEME="mono"
+ elif use theme-mono-highlight ; then
+ SFEED_THEME="mono_highlight"
+ elif use theme-newsboat ; then
+ SFEED_THEME="newsboat"
+ elif use theme-templeos ; then
+ SFEED_THEME="templeos"
+ fi
+
+ if use ncurses ; then
+ SFEED_CURSES="sfeed_curses"
+ else
+ SFEED_CURSES=""
+ fi
+
+ restore_config themes/mono.h themes/mono_highlight.h themes/newsboat.h themes/templeos.h
+}
+
+src_compile() {
+ tc-export AR CC
+ emake RANLIB=$(tc-getRANLIB) \
+ SFEED_CURSES="${SFEED_CURSES}" \
+ SFEED_THEME="${SFEED_THEME}"
+}
+
+src_install() {
+ DESTDIR="${D}" \
+ emake install \
+ SFEED_CURSES="${SFEED_CURSES}" \
+ PREFIX="/usr" \
+ MANPREFIX="/usr/share/man" \
+ DOCPREFIX="/usr/share/doc/${P}"
+
+ einstalldocs
+
+ save_config themes/mono.h themes/mono_highlight.h themes/newsboat.h themes/templeos.h
+}