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: Fri, 31 Jan 2020 16:27:50
Message-Id: 1580488056.f21c0c6b36b63518e3f8703b3c70d3d0149a4912.grozin@gentoo
1 commit: f21c0c6b36b63518e3f8703b3c70d3d0149a4912
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 31 16:27:36 2020 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 31 16:27:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f21c0c6b
7
8 sci-mathematics/ginac: bump to 1.7.8
9
10 Package-Manager: Portage-2.3.86, Repoman-2.3.20
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 sci-mathematics/ginac/Manifest | 1 +
14 sci-mathematics/ginac/ginac-1.7.8.ebuild | 67 ++++++++++++++++++++++++++++++++
15 2 files changed, 68 insertions(+)
16
17 diff --git a/sci-mathematics/ginac/Manifest b/sci-mathematics/ginac/Manifest
18 index 375c838a4eb..235eb557b28 100644
19 --- a/sci-mathematics/ginac/Manifest
20 +++ b/sci-mathematics/ginac/Manifest
21 @@ -1,3 +1,4 @@
22 DIST ginac-1.6.6.tar.bz2 1028211 BLAKE2B 3f939e82cfa833ee5ba6714d4db38edf80de4e380b0bcacfe23992ca3c5eefbd719506cf77f57aebc1517968eff7d26c8d24d14167c596e5e7145458367074e8 SHA512 495ef255dd32e71ee91257a515c0566e56525e0c54c8955c19beaf9e2e55457f7d8171c7e5f6e4f29f555f5d262bbaf4edf4f033166c4904c016987a5029e958
23 DIST ginac-1.7.2.tar.bz2 1056339 BLAKE2B 116be56df781d6e9675f914b9f75af86736183dbd26a1ff5e7f6f3cc79e4efc31449bc4fd5454b0f73cf189749a00f071d2b7cc519005e1f3b772b6b1521d508 SHA512 5c356beb8e0830b9f5805870f67298d4c19e512db8b8f46a37b490c19179a5c99e4497439e5adb575dd97e7deb5fe0b931a4b6db80e98a8e1e6f46977e33d8cf
24 DIST ginac-1.7.4.tar.bz2 1062724 BLAKE2B 742ec49629fecb14a2294ca9e8dc1df52cdad2d2e11cebbffa3c23a64592c597f872dd8294bc9324ea1f88e540f75015d09ea526ef9d67689943bb6c94325911 SHA512 740c221a0115bd233723f3032a77b1389122694b2893c52d4c7ed778c7332981c152f6ea81b35352882c14b42542f64963d5199af3f492af97f79a6e6c52156c
25 +DIST ginac-1.7.8.tar.bz2 1075317 BLAKE2B 6ae917b442c090fa6c6b28f543eecfc2a8119a63d15494933f0cb1c979f018d6439551e52e92b6d50c8cf83ce2df66aca4bb6be947e5b18cbfab2539c42e0ad2 SHA512 4d5a0e52108aee2438362d66d6b5f3e3a108855fc2c0ab2bc521ddc9a2a87c9b1404ae5304ba7d1dbcf6e985bfe26c730e14f3f46d63d0bdffe242f4a948c6a0
26
27 diff --git a/sci-mathematics/ginac/ginac-1.7.8.ebuild b/sci-mathematics/ginac/ginac-1.7.8.ebuild
28 new file mode 100644
29 index 00000000000..05317f9ecc2
30 --- /dev/null
31 +++ b/sci-mathematics/ginac/ginac-1.7.8.ebuild
32 @@ -0,0 +1,67 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit flag-o-matic
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 static-libs"
48 +
49 +RDEPEND=">=sci-libs/cln-1.2.2"
50 +DEPEND="${RDEPEND}
51 + virtual/pkgconfig
52 + doc? ( app-doc/doxygen
53 + media-gfx/transfig
54 + virtual/texi2dvi
55 + dev-texlive/texlive-fontsrecommended
56 + )"
57 +
58 +PATCHES=( "${FILESDIR}"/${PN}-1.5.1-pkgconfig.patch )
59 +
60 +src_configure() {
61 + append-cxxflags -std=c++14
62 + econf --disable-rpath
63 +}
64 +
65 +src_compile() {
66 + emake
67 + if use doc; then
68 + export VARTEXFONTS="${T}"/fonts
69 + pushd doc/reference >> /dev/null || die "pushd doc/reference failed"
70 + emake html pdf
71 + popd >> /dev/null
72 + pushd doc/tutorial >> /dev/null || die "pushd doc/tutorial failed"
73 + emake ginac.pdf ginac.html
74 + popd >> /dev/null
75 + fi
76 +}
77 +
78 +src_test() {
79 + pushd ../${P}_build > /dev/null
80 + emake check
81 + popd > /dev/null
82 +}
83 +
84 +src_install() {
85 + default
86 + if use doc; then
87 + pushd doc > /dev/null || die "pushd doc failed"
88 + insinto /usr/share/doc/${PF}
89 + newins tutorial/ginac.pdf tutorial.pdf
90 + newins reference/reference.pdf reference.pdf
91 + insinto /usr/share/doc/${PF}/html/reference
92 + doins -r reference/html_files/*
93 + insinto /usr/share/doc/${PF}/html
94 + newins tutorial/ginac.html tutorial.html
95 + insinto /usr/share/doc/${PF}/examples
96 + doins "${S}"/doc/examples/*.cpp examples/ginac-examples.*
97 + popd > /dev/null
98 + fi
99 +}