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>
This commit is contained in:
Nickolas Raymond Kaczynski
2021-11-28 18:17:33 +06:00
parent 0b0b7a1865
commit 68d8506302
3 changed files with 87 additions and 0 deletions

View File

@@ -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

View File

@@ -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>

View File

@@ -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
}