blob: 73597355d2c6cc51e21ae2a7262e072b77bff446 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/libcaca-0.9-r1.ebuild,v 1.11 2005/12/31 11:32:35 vapier Exp $
inherit eutils autotools
DESCRIPTION="A library that creates colored ASCII-art graphics"
HOMEPAGE="http://sam.zoy.org/projects/libcaca"
SRC_URI="http://sam.zoy.org/projects/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sh sparc x86"
IUSE="ncurses slang doc imlib X"
RDEPEND="ncurses? ( >=sys-libs/ncurses-5.3 )
slang? ( >=sys-libs/slang-1.4.2 )
imlib? ( media-libs/imlib2 )
X? ( || ( ( x11-libs/libX11
x11-libs/libXt )
virtual/x11 ) )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
sys-devel/automake
sys-devel/autoconf
sys-devel/libtool"
src_unpack() {
unpack ${A}
cd "${WORKDIR}"
# Let libtool build the libraries, see BUG #57359
epatch ${FILESDIR}/${P}-libtool.patch
cd "${S}"
eautoreconf
}
src_compile() {
# temp font fix #44128
export VARTEXFONTS="${T}/fonts"
local myconf=""
if use X ; then
if [ -e /usr/lib/libX11.so ] || [ -e /usr/lib/libX11.a ]
then
myconf="${myconf} --enable-x11 --with-x --x-libraries=/usr/$(get_libdir)"
else
myconf="${myconf} --enable-x11 --with-x --x-libraries=/usr/X11R6/$(get_libdir)"
fi
else
myconf="${myconf} --disable-x11"
fi
econf \
$(use_enable doc) \
$(use_enable ncurses) \
$(use_enable slang) \
$(use_enable imlib imlib2) \
${myconf} \
|| die
emake || die
unset VARTEXFONTS
}
src_install() {
mv doc/man/man3caca doc/man/man3
make install DESTDIR="${D}" || die
dodoc AUTHORS BUGS ChangeLog NEWS NOTES README TODO
}
|