blob: 6ff37188784dead8ea9c0c1bbc3f05f2587eb740 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/libcaca-0.99_beta13.ebuild,v 1.2 2007/12/02 16:57:27 aballier Exp $
inherit eutils autotools libtool
MY_P="${P/_beta/.beta}"
DESCRIPTION="A library that creates colored ASCII-art graphics"
HOMEPAGE="http://libcaca.zoy.org/"
SRC_URI="http://libcaca.zoy.org/files/${MY_P}.tar.gz"
LICENSE="WTFPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE="doc imlib mono ncurses nocxx opengl ruby slang X"
RDEPEND="ncurses? ( >=sys-libs/ncurses-5.3 )
slang? ( =sys-libs/slang-1.4* )
imlib? ( media-libs/imlib2 )
X? ( x11-libs/libX11 x11-libs/libXt )
opengl? ( virtual/opengl virtual/glut )
mono? ( dev-lang/mono )
ruby? ( virtual/ruby )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen
virtual/latex-base
|| ( dev-texlive/texlive-fontsrecommended virtual/tetex ) )"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-0.99_beta4-deoptimise.patch"
eautoreconf
elibtoolize
}
src_compile() {
# temp font fix #44128
export VARTEXFONTS="${T}/fonts"
econf \
$(use_enable doc) \
$(use_enable ncurses) \
$(use_enable slang) \
$(use_enable imlib imlib2) \
$(use_enable X x11) $(use_with X x) --x-libraries=/usr/$(get_libdir) \
$(use_enable opengl) \
$(use_enable !nocxx cxx) \
$(use_enable mono csharp) \
$(use_enable ruby) \
|| die "econf failed"
emake || die "emake failed"
unset VARTEXFONTS
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS BUGS ChangeLog NEWS NOTES README TODO
}
|