blob: c395867aa56f9610c003a47a09463432e0a0e7f7 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="Library of code shared between tuxmath and tuxtype"
HOMEPAGE="https://github.com/tux4kids/t4kcommon"
SRC_URI="https://github.com/tux4kids/t4kcommon/archive/upstream/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/t4kcommon-upstream-${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="svg"
RDEPEND="
dev-libs/libxml2:2
media-libs/libsdl
media-libs/sdl-image
media-libs/sdl-mixer
media-libs/sdl-net
media-libs/sdl-pango
svg? (
gnome-base/librsvg:2
media-libs/libpng:=
x11-libs/cairo
)"
DEPEND="${RDEPEND}"
# need sys-devel/gettext for AM_ICONV added to configure.ac
BDEPEND="
sys-devel/gettext
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-libpng.patch
"${FILESDIR}"/${P}-fno-common.patch
"${FILESDIR}"/${P}-ICONV_CONST.patch
"${FILESDIR}"/${P}-fix-declaration.patch
"${FILESDIR}"/${P}-missing-text.patch
"${FILESDIR}"/${P}-svg-libxml2.patch
)
src_prepare() {
default
rm m4/iconv.m4 || die
eautoreconf
}
src_configure() {
# note: sdlpango<->sdlttf breaks ABI, prefer default pango
local econfargs=(
$(usex svg '' --without-rsvg)
--disable-static
)
econf "${econfargs[@]}"
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}
|