blob: c45317f8b64ac7cf57671b46f286e176f2a14880 (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="A Tk widget library"
HOMEPAGE="http://www.tkzinc.org"
SRC_URI="http://www.tkzinc.org/Packages/Tkzinc-${PV}plus.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug doc threads"
DEPEND="
dev-lang/tk:=
media-libs/glew:=
virtual/opengl
doc? ( virtual/latex-base )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/Tkzinc-${PV//.}+"
PATCHES=(
"${FILESDIR}"/${PV}-ldflags.patch
"${FILESDIR}"/${PN}-3.3.4-latex.patch
"${FILESDIR}"/${P}-clang.patch
"${FILESDIR}"/${P}-gcc13.patch
)
QA_CONFIG_IMPL_DECL_SKIP=(
stat64 # used to test for Large File Support
)
HTML_DOCS='doc/*png doc/*html doc/*css'
src_prepare() {
default
eautoreconf
}
src_configure() {
econf \
--enable-shared \
--enable-gl=damage \
$(use_enable debug symbols) \
$(use_enable threads)
}
src_compile() {
default
if use doc; then
VARTEXFONTS="${T}"/fonts emake pdf
fi
}
src_install() {
default
use doc && dodoc doc/refman.pdf
}
src_test() {
emake test
}
|