diff options
author | 2021-07-30 12:38:08 +0600 | |
---|---|---|
committer | 2021-07-30 12:38:08 +0600 | |
commit | 7a476d8523b4f7ba67648109d133c9cccbe256e6 (patch) | |
tree | 844b199c8b04b0e592934d49dac4cc7698dd95c0 /net-news | |
parent | app-misc/grit: add missed licenses; use ebuild vars in SRC_URI (diff) | |
download | guru-7a476d8523b4f7ba67648109d133c9cccbe256e6.tar.gz guru-7a476d8523b4f7ba67648109d133c9cccbe256e6.tar.bz2 guru-7a476d8523b4f7ba67648109d133c9cccbe256e6.zip |
net-news/sfeed_curses: add new package
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Nickolas Raymond Kaczynski <nrk@disroot.org>
Diffstat (limited to 'net-news')
-rw-r--r-- | net-news/sfeed_curses/Manifest | 1 | ||||
-rw-r--r-- | net-news/sfeed_curses/metadata.xml | 16 | ||||
-rw-r--r-- | net-news/sfeed_curses/sfeed_curses-0.9.13.ebuild | 60 |
3 files changed, 77 insertions, 0 deletions
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>nrk@disroot.org</email> + </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_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 +} |