Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/ginac/
Date: Thu, 29 Apr 2021 14:16:32
Message-Id: 1619705759.ad56d1fa2528b5842754ca207a28dd7105f321a3.grozin@gentoo
1 commit: ad56d1fa2528b5842754ca207a28dd7105f321a3
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 29 14:15:59 2021 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 29 14:15:59 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad56d1fa
7
8 sci-mathematics/ginac: bump to 1.8.0
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 sci-mathematics/ginac/Manifest | 1 +
14 sci-mathematics/ginac/ginac-1.8.0.ebuild | 75 ++++++++++++++++++++++++++++++++
15 2 files changed, 76 insertions(+)
16
17 diff --git a/sci-mathematics/ginac/Manifest b/sci-mathematics/ginac/Manifest
18 index a825a00b9fd..978bbaec056 100644
19 --- a/sci-mathematics/ginac/Manifest
20 +++ b/sci-mathematics/ginac/Manifest
21 @@ -1 +1,2 @@
22 DIST ginac-1.7.11.tar.bz2 1077491 BLAKE2B 741e9c8adfec15c225c3656b935707f86292b98310b50533269b238d1a9746bf54d186074c879fdbdd23f915dde225d9ee34fdbd87977835e8f9e78af364d77d SHA512 35a029915c946fcc10ba7b78df6fe1ece9a9f2f6bc172816a923c35f5b495154ab356526b904ac2a16a1bd6b0a81c480c5abb39ef40238ca7b32d1acbf97276c
23 +DIST ginac-1.8.0.tar.bz2 1124136 BLAKE2B 087c286f621ca5502c54c1765d948f0549a60668fd610bd16ea627af2f4056b13331097768771a0ac14807212de59b132608dc615bf2618dd487a9478dbf5a83 SHA512 6cacd0d87ffae24118f2fbaed4d201ee2d3812a751becef1982308e91cf489543db14443439da9333f3620dc5c8b1c32587e1aff0bed69e6e334310dc64edf49
24
25 diff --git a/sci-mathematics/ginac/ginac-1.8.0.ebuild b/sci-mathematics/ginac/ginac-1.8.0.ebuild
26 new file mode 100644
27 index 00000000000..8c06689bf02
28 --- /dev/null
29 +++ b/sci-mathematics/ginac/ginac-1.8.0.ebuild
30 @@ -0,0 +1,75 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7..9} )
37 +
38 +inherit python-any-r1
39 +
40 +DESCRIPTION="C++ library and tools for symbolic calculations"
41 +SRC_URI="http://www.ginac.de/${P}.tar.bz2"
42 +HOMEPAGE="https://www.ginac.de/"
43 +
44 +LICENSE="GPL-2+"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="doc examples"
48 +
49 +RDEPEND=">=sci-libs/cln-1.2.2"
50 +DEPEND="${RDEPEND}"
51 +BDEPEND="
52 + ${PYTHON_DEPS}
53 + virtual/pkgconfig
54 + doc? (
55 + app-doc/doxygen
56 + dev-texlive/texlive-fontsrecommended
57 + media-gfx/transfig
58 + virtual/texi2dvi
59 + )"
60 +
61 +PATCHES=( "${FILESDIR}"/${PN}-1.5.1-pkgconfig.patch )
62 +
63 +src_configure() {
64 + econf \
65 + --disable-rpath \
66 + --disable-static
67 +}
68 +
69 +src_compile() {
70 + emake
71 +
72 + if use doc; then
73 + local -x VARTEXFONTS="${T}"/fonts
74 + emake -C doc/reference html pdf
75 + emake -C doc/tutorial ginac.pdf ginac.html
76 + fi
77 +}
78 +
79 +src_install() {
80 + default
81 +
82 + if use doc; then
83 + pushd doc >/dev/null || die
84 + newdoc tutorial/ginac.pdf tutorial.pdf
85 + newdoc reference/reference.pdf reference.pdf
86 +
87 + docinto html/reference
88 + dodoc -r reference/html_files/.
89 +
90 + docinto html
91 + newdoc tutorial/ginac.html tutorial.html
92 + popd >/dev/null || die
93 + fi
94 +
95 + if use examples; then
96 + pushd doc >/dev/null || die
97 + docinto examples
98 + dodoc examples/*.cpp examples/ginac-examples.*
99 + docompress -x /usr/share/doc/${PF}/examples
100 + popd >/dev/null || die
101 + fi
102 +
103 + # no static archives
104 + find "${ED}" -name '*.la' -delete || die
105 +}