blob: 95d3e6e1bd901e3320e9f5518a478be6e91432be (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tkzinc/tkzinc-3.3.4.ebuild,v 1.1 2007/04/28 00:12:47 matsuu Exp $
inherit eutils
DESCRIPTION="A Tk widget library."
HOMEPAGE="http://www.tkzinc.org"
SRC_URI="http://www.tkzinc.org/Packages/zinc-tk_${PV}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~ppc"
IUSE="threads opengl doc"
DEPEND=">=dev-lang/tk-8.4
opengl? ( virtual/opengl )
doc? ( virtual/tetex )"
S="${WORKDIR}/Tkzinc"
src_compile() {
local myconf
if use opengl ; then
myconf="--enable-gl=damage"
fi
econf \
$(use_enable threads) \
${myconf} || die
emake || die "make failed"
if use doc ; then
make pdf || die "make pdf files failed"
fi
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc BUGS README
dohtml -r doc/*
use doc && dodoc doc/refman.pdf
}
|