diff options
author | Andrey Grozin <grozin@gentoo.org> | 2022-02-02 17:58:30 +0700 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2022-02-02 17:58:30 +0700 |
commit | c07ed0a4fe43b8bc8a6db0f5d0a1f1cf98dc7fcf (patch) | |
tree | d577dfde9482ebf0843f7064e31d5cb5da34810a /sci-mathematics/ginac | |
parent | mail-mta/ssmtp: Stabilize 2.64-r4 hppa, #832540 (diff) | |
download | gentoo-c07ed0a4fe43b8bc8a6db0f5d0a1f1cf98dc7fcf.tar.gz gentoo-c07ed0a4fe43b8bc8a6db0f5d0a1f1cf98dc7fcf.tar.bz2 gentoo-c07ed0a4fe43b8bc8a6db0f5d0a1f1cf98dc7fcf.zip |
sci-mathematics/ginac: bump to 1.8.2
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'sci-mathematics/ginac')
-rw-r--r-- | sci-mathematics/ginac/Manifest | 1 | ||||
-rw-r--r-- | sci-mathematics/ginac/files/ginac-1.8.2-pkgconfig.patch | 9 | ||||
-rw-r--r-- | sci-mathematics/ginac/ginac-1.8.2.ebuild | 75 |
3 files changed, 85 insertions, 0 deletions
diff --git a/sci-mathematics/ginac/Manifest b/sci-mathematics/ginac/Manifest index 978bbaec0563..1da9f835f5de 100644 --- a/sci-mathematics/ginac/Manifest +++ b/sci-mathematics/ginac/Manifest @@ -1,2 +1,3 @@ DIST ginac-1.7.11.tar.bz2 1077491 BLAKE2B 741e9c8adfec15c225c3656b935707f86292b98310b50533269b238d1a9746bf54d186074c879fdbdd23f915dde225d9ee34fdbd87977835e8f9e78af364d77d SHA512 35a029915c946fcc10ba7b78df6fe1ece9a9f2f6bc172816a923c35f5b495154ab356526b904ac2a16a1bd6b0a81c480c5abb39ef40238ca7b32d1acbf97276c DIST ginac-1.8.0.tar.bz2 1124136 BLAKE2B 087c286f621ca5502c54c1765d948f0549a60668fd610bd16ea627af2f4056b13331097768771a0ac14807212de59b132608dc615bf2618dd487a9478dbf5a83 SHA512 6cacd0d87ffae24118f2fbaed4d201ee2d3812a751becef1982308e91cf489543db14443439da9333f3620dc5c8b1c32587e1aff0bed69e6e334310dc64edf49 +DIST ginac-1.8.2.tar.bz2 1142428 BLAKE2B 9322ac30cd73c5290b68503a277c43751728a8d774655398038023d87796e35b8d98dff968a14faf162969877ef335b383adfb3fe695dda1357fb0208cba424a SHA512 fc471cdc12b3c2597e4deb65dcca83fc9050c8a2d07a19baf605b060efe9facc9b9ffe824676c8489bdebb6f125f1052f313394d95cc2a91c29b00a45cbc403a diff --git a/sci-mathematics/ginac/files/ginac-1.8.2-pkgconfig.patch b/sci-mathematics/ginac/files/ginac-1.8.2-pkgconfig.patch new file mode 100644 index 000000000000..6f81f1e22043 --- /dev/null +++ b/sci-mathematics/ginac/files/ginac-1.8.2-pkgconfig.patch @@ -0,0 +1,9 @@ +--- ginac-1.4.4.org/ginac.pc.in 2009-03-16 21:17:22.000000000 +0530 ++++ ginac-1.4.4/ginac.pc.in 2009-03-16 21:25:28.000000000 +0530 +@@ -7,5 +7,5 @@ + Description: C++ library for symbolic calculations + Version: @VERSION@ + Requires: cln >= 1.2.2 +-Libs: -L${libdir} -lginac @GINACLIB_RPATH@ ++Libs: -L${libdir} -lginac + Cflags: -I${includedir} diff --git a/sci-mathematics/ginac/ginac-1.8.2.ebuild b/sci-mathematics/ginac/ginac-1.8.2.ebuild new file mode 100644 index 000000000000..f53cf97078dd --- /dev/null +++ b/sci-mathematics/ginac/ginac-1.8.2.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..10} ) + +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.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 +} |