blob: 173be8a21d2b88cb9f1287c5de43afcdd7ee5738 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils toolchain-funcs
DESCRIPTION="Snownews, a text-mode RSS/RDF newsreader"
HOMEPAGE="http://snownews.kcore.de/"
SRC_URI="http://home.kcore.de/~kiza/software/snownews/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~x86-macos"
IUSE="unicode"
COMMON_DEPEND="
>=dev-libs/libxml2-2.5.6
>=sys-libs/ncurses-5.3[unicode?]
dev-libs/openssl
"
RDEPEND="
${COMMON_DEPEND}
dev-perl/XML-LibXML
dev-perl/libwww-perl
"
DEPEND="
${COMMON_DEPEND}
virtual/pkgconfig
"
src_prepare() {
sed -i -e "s|-O2||g" configure || die
sed -i -e 's|$(INSTALL) -s|$(INSTALL)|g' Makefile || die
}
src_configure() {
tc-export PKG_CONFIG
if use unicode; then
sed -i -e 's|-lncurses|`\\$(PKG_CONFIG) --libs ncursesw`|' configure || die
else
sed -i -e 's|-lncurses|`\\$(PKG_CONFIG) --libs ncurses`|' configure || die
fi
# perl script, not autotools based
./configure --prefix="${EPREFIX}/usr" || die
}
src_compile() {
emake \
CC="$(tc-getCC)" \
EXTRA_CFLAGS="${CFLAGS}" \
EXTRA_LDFLAGS="${LDFLAGS}"
}
src_install() {
emake PREFIX="${ED}/usr" install
dodoc AUTHOR Changelog CREDITS README README.de README.patching
}
|