blob: 64d5fe0fb4fec4909793f147c3b128b4884ccc42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Copyright 2020-2022 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="${DEPEND}
ncurses? ( !net-news/sfeed_curses )
"
BDEPEND="virtual/pkgconfig"
src_configure() {
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}" \
SFEED_CURSES_LDFLAGS="${LDFLAGS} $(pkg-config --libs ncurses)"
}
src_install() {
DESTDIR="${D}" \
emake install \
SFEED_CURSES="${SFEED_CURSES}" \
PREFIX="${EPREFIX}/usr" \
MANPREFIX="${EPREFIX}/usr/share/man" \
DOCPREFIX="${EPREFIX}/usr/share/doc/${PF}"
einstalldocs
save_config themes/mono.h themes/mono_highlight.h themes/newsboat.h themes/templeos.h
}
|