commit:     ca61674221300883302cd4824bb7b9afdc38d312
Author:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 29 12:14:20 2025 +0000
Commit:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Tue Apr 29 12:14:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca616742

sci-mathematics/ginac: bump to 1.8.8

Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>

 sci-mathematics/ginac/Manifest           |  1 +
 sci-mathematics/ginac/ginac-1.8.8.ebuild | 76 ++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/sci-mathematics/ginac/Manifest b/sci-mathematics/ginac/Manifest
index fb59da0c8585..7f8ec502e02c 100644
--- a/sci-mathematics/ginac/Manifest
+++ b/sci-mathematics/ginac/Manifest
@@ -1 +1,2 @@
 DIST ginac-1.8.7.tar.bz2 1153952 BLAKE2B 
272a9603741d43d4ba4f7ac3478aac405490cf747e20a5f77d7d6c672c6aee972ab77ddf4cd68daa3c432ea0b02a46ba295311967c2c5a2135bf34070a25f272
 SHA512 
29a5dbe1fa8a40668a32eb0065d1f676b074222d76ed70a05c5841a4be92c4b1a019ae3fc820e1c7007e641ef8ef94d00adab901f89673df0d372a4c8af8e51a
+DIST ginac-1.8.8.tar.bz2 1154686 BLAKE2B 
0bcb005f6cbb20383a3903170237b6cd0d9c8012ed7770b92757e8e17be4f4c67919a17b7197c06dc21561d9737b9cbddc4ef10a7fc56a7b06ff4ec000459c14
 SHA512 
2dbf0d883d33d5f7bd9f7d107aa7068c6730b07da6540821023ade85a83d8472e61e2ea43001613d0db2c8907a12dc89951f32c4da756163091fd6fcca89f5bd

diff --git a/sci-mathematics/ginac/ginac-1.8.8.ebuild 
b/sci-mathematics/ginac/ginac-1.8.8.ebuild
new file mode 100644
index 000000000000..318ca92c43f2
--- /dev/null
+++ b/sci-mathematics/ginac/ginac-1.8.8.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..13} )
+
+inherit python-any-r1
+
+DESCRIPTION="C++ library and tools for symbolic calculations"
+HOMEPAGE="https://www.ginac.de/";
+SRC_URI="http://www.ginac.de/${P}.tar.bz2";
+
+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-text/doxygen
+               dev-texlive/texlive-fontsrecommended
+               >=media-gfx/fig2dev-3.2.9-r3[ghostscript]
+               dev-texlive/texlive-latexextra
+               virtual/texi2dvi
+       )"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.8.2-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
+}

Reply via email to