blob: 3a6449d4a08d2145e3a296d88915b6abfedfada2 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
MY_P=${P/-20/-snapshot-}
DESCRIPTION="GNU Triangulated Surface Library"
HOMEPAGE="http://gts.sourceforge.net/"
SRC_URI="http://gts.sourceforge.net/tarballs/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm64 hppa ~m68k ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
IUSE="doc test"
RESTRICT="test" # bug #277165
RDEPEND="dev-libs/glib:2"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
doc? ( dev-util/gtk-doc )
test? ( media-libs/netpbm )"
PATCHES=( "${FILESDIR}"/${PN}-20121130-autotools.patch )
src_prepare() {
default
# fix doc generation (bug #727536)
sed -i 's/\xe9/\xc3\xa9/;s/\xf6/\xc3\xb6/' src/*.{c,h} || die
# allow to run tests (bug #277165)
chmod +x test/*/*.sh || die
eautoreconf
}
src_configure() {
econf --disable-static
}
src_compile() {
default
if use doc; then
emake DOC_MAIN_SGML_FILE=gts-docs.xml -C doc html
HTML_DOCS=( doc/html/. )
fi
}
src_install() {
default
docinto examples
dodoc examples/*.c
find "${ED}" -name '*.la' -delete || die
}
|