summaryrefslogtreecommitdiff
blob: d4f43e5c5c2ba73d7a8c60f45ef72e475f5ecd90 (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
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="simple RSS and Atom parser"
HOMEPAGE="https://codemadness.org/sfeed-simple-feed-parser.html"
SRC_URI="https://codemadness.org/releases/${PN}/${P}.tar.gz"

LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64"
IUSE="ncurses"

DEPEND="ncurses? ( sys-libs/ncurses )"
RDEPEND="${DEPEND}
	net-misc/curl
	sys-apps/coreutils
	sys-libs/glibc
	virtual/awk
	www-client/lynx
	x11-misc/xclip
	x11-misc/xdg-utils"
BDEPEND=""

src_compile() {
	if use ncurses; then
		emake \
			CC=$(tc-getCC) \
			LDFLAGS="$LDFLAGS -lcurses -ltinfo"
	else
		emake \
			CC=$(tc-getCC) \
			SFEED_CURSES=""
	fi
}

src_install() {
	emake \
		DESTDIR="${D}" \
		PREFIX="${EPREFIX}/usr" \
		MANPREFIX="${EPREFIX}/usr/share/man" \
		DOCPREFIX="${EPREFIX}/usr/share/doc/${P}" \
		SFEED_CURSES=$(usex ncurses "sfeed_curses" "") \
		install
}