commit:     7a476d8523b4f7ba67648109d133c9cccbe256e6
Author:     Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
AuthorDate: Fri Jul 30 06:38:08 2021 +0000
Commit:     Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
CommitDate: Fri Jul 30 06:38:08 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7a476d85

net-news/sfeed_curses: add new package

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Nickolas Raymond Kaczynski <nrk <AT> disroot.org>

 net-news/sfeed_curses/Manifest                   |  1 +
 net-news/sfeed_curses/metadata.xml               | 16 +++++++
 net-news/sfeed_curses/sfeed_curses-0.9.13.ebuild | 60 ++++++++++++++++++++++++
 3 files changed, 77 insertions(+)

diff --git a/net-news/sfeed_curses/Manifest b/net-news/sfeed_curses/Manifest
new file mode 100644
index 000000000..dd04e063e
--- /dev/null
+++ b/net-news/sfeed_curses/Manifest
@@ -0,0 +1 @@
+DIST sfeed_curses-0.9.13.tar.gz 22611 BLAKE2B 
8afc6cac44a7beaf3fbe09e8f5c42c3ba2712a9e68c966da69a257d75e960e39e9f46201977e498630e4ff237dab334881c974c9850cc153a5161e20ee136e8f
 SHA512 
c52b6afe3b3037f7865493f7475c757f561db28279b80bc1ddb7aecd8144d166c84c4dd2c5e58d78e42909c6d8829f92648e55ba01dce65494671de98503326b

diff --git a/net-news/sfeed_curses/metadata.xml 
b/net-news/sfeed_curses/metadata.xml
new file mode 100644
index 000000000..52ddf5fc1
--- /dev/null
+++ b/net-news/sfeed_curses/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+       </maintainer>
+       <upstream>
+               <bugs-to>mailto:[email protected]</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_curses/sfeed_curses-0.9.13.ebuild 
b/net-news/sfeed_curses/sfeed_curses-0.9.13.ebuild
new file mode 100644
index 000000000..894a1af8a
--- /dev/null
+++ b/net-news/sfeed_curses/sfeed_curses-0.9.13.ebuild
@@ -0,0 +1,60 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit savedconfig toolchain-funcs
+
+DESCRIPTION="A curses UI front-end for sfeed"
+HOMEPAGE="https://codemadness.org/sfeed_ui.html";
+
+SRC_URI="https://codemadness.org/releases/sfeed_curses/sfeed_curses-${PV}.tar.gz";
+
+KEYWORDS="~amd64"
+LICENSE="ISC"
+SLOT="0"
+
+IUSE="
+       +theme-mono
+       theme-mono_highlight
+       theme-newsboat
+       theme-templeos
+"
+REQUIRED_USE="^^ ( theme-mono theme-mono_highlight theme-newsboat 
theme-templeos )"
+
+DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       # Gentoo requires -ltinfo
+       sed -i \
+               -e "/^#SFEED_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
+
+       restore_config themes/mono.h themes/mono_highlight.h themes/newsboat.h 
themes/templeos.h
+}
+
+src_compile() {
+       emake CC=$(tc-getCC) SFEED_THEME=${SFEED_THEME}
+}
+
+src_install() {
+       emake \
+               DESTDIR="${D}" \
+               PREFIX="/usr" \
+               MANPREFIX="/usr/share/man" \
+               DOCPREFIX="/usr/share/doc/${PF}" \
+               install
+
+       save_config themes/mono.h themes/mono_highlight.h themes/newsboat.h 
themes/templeos.h
+}

Reply via email to