blob: 78957b1ac1c22a9f9c865e7efe4affaa4c278055 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools toolchain-funcs
DESCRIPTION="Command-line RSS feed reader"
HOMEPAGE="https://github.com/kouya/snownews"
SRC_URI="https://github.com/kouya/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
IUSE=""
COMMON_DEPEND="
>=dev-libs/libxml2-2.5.6
sys-libs/ncurses:=[unicode(+)]
"
RDEPEND="
${COMMON_DEPEND}
dev-perl/XML-LibXML
dev-perl/libwww-perl
"
DEPEND="
${COMMON_DEPEND}
"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
tc-export PKG_CONFIG
local libs=$(${PKG_CONFIG} --libs ncursesw)
sed -i "s|-lncursesw\?|${libs}|" configure Config.mk.in || die
sed -i 's|$(INSTALL) -s snownews|$(INSTALL) snownews|' Makefile || die
}
src_configure() {
tc-export PKG_CONFIG
# perl script, not autotools based
./configure --prefix="${D}${EPREFIX}/usr" || die
}
src_compile() {
emake \
CC="$(tc-getCC)" \
EXTRA_CFLAGS="${CFLAGS}" \
EXTRA_LDFLAGS="${LDFLAGS}"
}
|