blob: 40379de9aa16c032032bd35a69f725fa1eccebb4 (
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
67
68
69
70
71
72
73
74
75
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_9 )
inherit python-any-r1
DESCRIPTION="C++ library and tools for symbolic calculations"
SRC_URI="http://www.ginac.de/${P}.tar.bz2"
HOMEPAGE="https://www.ginac.de/"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
IUSE="doc examples"
RDEPEND=">=sci-libs/cln-1.2.2"
DEPEND="${RDEPEND}"
BDEPEND="
${PYTHON_DEPS}
virtual/pkgconfig
doc? (
app-doc/doxygen
dev-texlive/texlive-fontsrecommended
media-gfx/transfig
virtual/texi2dvi
)"
PATCHES=( "${FILESDIR}"/${PN}-1.5.1-pkgconfig.patch )
src_configure() {
econf \
--disable-rpath \
--disable-static
}
src_compile() {
emake
if use doc; then
local -x VARTEXFONTS="${T}"/fonts
emake -C doc/reference html pdf
emake -C doc/tutorial ginac.pdf ginac.html
fi
}
src_install() {
default
if use doc; then
pushd doc >/dev/null || die
newdoc tutorial/ginac.pdf tutorial.pdf
newdoc reference/reference.pdf reference.pdf
docinto html/reference
dodoc -r reference/html_files/.
docinto html
newdoc tutorial/ginac.html tutorial.html
popd >/dev/null || die
fi
if use examples; then
pushd doc >/dev/null || die
docinto examples
dodoc examples/*.cpp examples/ginac-examples.*
docompress -x /usr/share/doc/${PF}/examples
popd >/dev/null || die
fi
# no static archives
find "${ED}" -name '*.la' -delete || die
}
|