diff options
Diffstat (limited to 'sci-mathematics/ginac')
-rw-r--r-- | sci-mathematics/ginac/Manifest | 2 | ||||
-rw-r--r-- | sci-mathematics/ginac/ginac-1.8.0.ebuild | 75 |
2 files changed, 77 insertions, 0 deletions
diff --git a/sci-mathematics/ginac/Manifest b/sci-mathematics/ginac/Manifest index 9ad58a500805..f3ba8708126d 100644 --- a/sci-mathematics/ginac/Manifest +++ b/sci-mathematics/ginac/Manifest @@ -1,4 +1,6 @@ AUX ginac-1.5.1-pkgconfig.patch 340 BLAKE2B 4e45d5af711f0a6bb833bd805340527be8972b8587f47ffe34b9e473b2783f6cb98af2b2397b199bfca1c7522250c68249112ac67a750ec59f31e26628978bd0 SHA512 b88c7ef69686733a3e817d9d4961246eb64aebf753b51bf8f6ea5c6fdfef41e52b6a20656e074f0bcc42dfe7965a440642d9036628a139f2c87bbde5f59d76d1 DIST ginac-1.7.11.tar.bz2 1077491 BLAKE2B 741e9c8adfec15c225c3656b935707f86292b98310b50533269b238d1a9746bf54d186074c879fdbdd23f915dde225d9ee34fdbd87977835e8f9e78af364d77d SHA512 35a029915c946fcc10ba7b78df6fe1ece9a9f2f6bc172816a923c35f5b495154ab356526b904ac2a16a1bd6b0a81c480c5abb39ef40238ca7b32d1acbf97276c +DIST ginac-1.8.0.tar.bz2 1124136 BLAKE2B 087c286f621ca5502c54c1765d948f0549a60668fd610bd16ea627af2f4056b13331097768771a0ac14807212de59b132608dc615bf2618dd487a9478dbf5a83 SHA512 6cacd0d87ffae24118f2fbaed4d201ee2d3812a751becef1982308e91cf489543db14443439da9333f3620dc5c8b1c32587e1aff0bed69e6e334310dc64edf49 EBUILD ginac-1.7.11.ebuild 1473 BLAKE2B 8add0d658de3be7f6b01e4866afbc289f27cba4a208d372b582b2ffd2e2bb1279f5b0f317fdc0746b3d79742a3be639f1cbdc1b8fcbcc4109392f15c667e5ec7 SHA512 38cbd823741cd188884bc7f03298ee7df2e9ea12beb10d2b3e848d3cad3ca0b2174974efa0a146b832d30cad7b1bc7a19057a9b3e86e2787447f4cc1e12f9a7f +EBUILD ginac-1.8.0.ebuild 1476 BLAKE2B 704301ca488a748b37464da91ae3cf8a8d477f037dd9146f8acf8f7214ffefcf6a26d722c3a3f6bb749ab6b7a51c341e96bfa61dfc58b8621847f228b47b979b SHA512 4c6f9049db3ccc23838c7ad3d390fb238b3012595259ee3cf1b55aa68aadb769bc4d6ff15b7b9e6f2771b41f9ecc0e5c00a28534050a87639877871a7ce1b903 MISC metadata.xml 685 BLAKE2B 78804186606452771e8b37a00dd41458fd7ffabd1813303528cda8596cebdd54c5daea16f324b7d23dfcf679255e73f1cff84116b0bf8a81cd79bb559dcd77ae SHA512 d0075823063455623b875bf678448b146243347879eb9ca5a4fb9324183d8dcda9c060145d5b874fead55491625ef08289b349b8abf1bf105e09ac9ebc647c37 diff --git a/sci-mathematics/ginac/ginac-1.8.0.ebuild b/sci-mathematics/ginac/ginac-1.8.0.ebuild new file mode 100644 index 000000000000..8c06689bf026 --- /dev/null +++ b/sci-mathematics/ginac/ginac-1.8.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..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 +} |