1 |
commit: c07ed0a4fe43b8bc8a6db0f5d0a1f1cf98dc7fcf |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 2 10:58:30 2022 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 2 10:58:30 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c07ed0a4 |
7 |
|
8 |
sci-mathematics/ginac: bump to 1.8.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
sci-mathematics/ginac/Manifest | 1 + |
14 |
.../ginac/files/ginac-1.8.2-pkgconfig.patch | 9 +++ |
15 |
sci-mathematics/ginac/ginac-1.8.2.ebuild | 75 ++++++++++++++++++++++ |
16 |
3 files changed, 85 insertions(+) |
17 |
|
18 |
diff --git a/sci-mathematics/ginac/Manifest b/sci-mathematics/ginac/Manifest |
19 |
index 978bbaec0563..1da9f835f5de 100644 |
20 |
--- a/sci-mathematics/ginac/Manifest |
21 |
+++ b/sci-mathematics/ginac/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST ginac-1.7.11.tar.bz2 1077491 BLAKE2B 741e9c8adfec15c225c3656b935707f86292b98310b50533269b238d1a9746bf54d186074c879fdbdd23f915dde225d9ee34fdbd87977835e8f9e78af364d77d SHA512 35a029915c946fcc10ba7b78df6fe1ece9a9f2f6bc172816a923c35f5b495154ab356526b904ac2a16a1bd6b0a81c480c5abb39ef40238ca7b32d1acbf97276c |
24 |
DIST ginac-1.8.0.tar.bz2 1124136 BLAKE2B 087c286f621ca5502c54c1765d948f0549a60668fd610bd16ea627af2f4056b13331097768771a0ac14807212de59b132608dc615bf2618dd487a9478dbf5a83 SHA512 6cacd0d87ffae24118f2fbaed4d201ee2d3812a751becef1982308e91cf489543db14443439da9333f3620dc5c8b1c32587e1aff0bed69e6e334310dc64edf49 |
25 |
+DIST ginac-1.8.2.tar.bz2 1142428 BLAKE2B 9322ac30cd73c5290b68503a277c43751728a8d774655398038023d87796e35b8d98dff968a14faf162969877ef335b383adfb3fe695dda1357fb0208cba424a SHA512 fc471cdc12b3c2597e4deb65dcca83fc9050c8a2d07a19baf605b060efe9facc9b9ffe824676c8489bdebb6f125f1052f313394d95cc2a91c29b00a45cbc403a |
26 |
|
27 |
diff --git a/sci-mathematics/ginac/files/ginac-1.8.2-pkgconfig.patch b/sci-mathematics/ginac/files/ginac-1.8.2-pkgconfig.patch |
28 |
new file mode 100644 |
29 |
index 000000000000..6f81f1e22043 |
30 |
--- /dev/null |
31 |
+++ b/sci-mathematics/ginac/files/ginac-1.8.2-pkgconfig.patch |
32 |
@@ -0,0 +1,9 @@ |
33 |
+--- ginac-1.4.4.org/ginac.pc.in 2009-03-16 21:17:22.000000000 +0530 |
34 |
++++ ginac-1.4.4/ginac.pc.in 2009-03-16 21:25:28.000000000 +0530 |
35 |
+@@ -7,5 +7,5 @@ |
36 |
+ Description: C++ library for symbolic calculations |
37 |
+ Version: @VERSION@ |
38 |
+ Requires: cln >= 1.2.2 |
39 |
+-Libs: -L${libdir} -lginac @GINACLIB_RPATH@ |
40 |
++Libs: -L${libdir} -lginac |
41 |
+ Cflags: -I${includedir} |
42 |
|
43 |
diff --git a/sci-mathematics/ginac/ginac-1.8.2.ebuild b/sci-mathematics/ginac/ginac-1.8.2.ebuild |
44 |
new file mode 100644 |
45 |
index 000000000000..f53cf97078dd |
46 |
--- /dev/null |
47 |
+++ b/sci-mathematics/ginac/ginac-1.8.2.ebuild |
48 |
@@ -0,0 +1,75 @@ |
49 |
+# Copyright 1999-2022 Gentoo Authors |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI=7 |
53 |
+ |
54 |
+PYTHON_COMPAT=( python3_{7..10} ) |
55 |
+ |
56 |
+inherit python-any-r1 |
57 |
+ |
58 |
+DESCRIPTION="C++ library and tools for symbolic calculations" |
59 |
+SRC_URI="http://www.ginac.de/${P}.tar.bz2" |
60 |
+HOMEPAGE="https://www.ginac.de/" |
61 |
+ |
62 |
+LICENSE="GPL-2+" |
63 |
+SLOT="0" |
64 |
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
65 |
+IUSE="doc examples" |
66 |
+ |
67 |
+RDEPEND=">=sci-libs/cln-1.2.2" |
68 |
+DEPEND="${RDEPEND}" |
69 |
+BDEPEND=" |
70 |
+ ${PYTHON_DEPS} |
71 |
+ virtual/pkgconfig |
72 |
+ doc? ( |
73 |
+ app-doc/doxygen |
74 |
+ dev-texlive/texlive-fontsrecommended |
75 |
+ media-gfx/transfig |
76 |
+ virtual/texi2dvi |
77 |
+ )" |
78 |
+ |
79 |
+PATCHES=( "${FILESDIR}"/${PN}-1.8.2-pkgconfig.patch ) |
80 |
+ |
81 |
+src_configure() { |
82 |
+ econf \ |
83 |
+ --disable-rpath \ |
84 |
+ --disable-static |
85 |
+} |
86 |
+ |
87 |
+src_compile() { |
88 |
+ emake |
89 |
+ |
90 |
+ if use doc; then |
91 |
+ local -x VARTEXFONTS="${T}"/fonts |
92 |
+ emake -C doc/reference html pdf |
93 |
+ emake -C doc/tutorial ginac.pdf ginac.html |
94 |
+ fi |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ default |
99 |
+ |
100 |
+ if use doc; then |
101 |
+ pushd doc >/dev/null || die |
102 |
+ newdoc tutorial/ginac.pdf tutorial.pdf |
103 |
+ newdoc reference/reference.pdf reference.pdf |
104 |
+ |
105 |
+ docinto html/reference |
106 |
+ dodoc -r reference/html_files/. |
107 |
+ |
108 |
+ docinto html |
109 |
+ newdoc tutorial/ginac.html tutorial.html |
110 |
+ popd >/dev/null || die |
111 |
+ fi |
112 |
+ |
113 |
+ if use examples; then |
114 |
+ pushd doc >/dev/null || die |
115 |
+ docinto examples |
116 |
+ dodoc examples/*.cpp examples/ginac-examples.* |
117 |
+ docompress -x /usr/share/doc/${PF}/examples |
118 |
+ popd >/dev/null || die |
119 |
+ fi |
120 |
+ |
121 |
+ # no static archives |
122 |
+ find "${ED}" -name '*.la' -delete || die |
123 |
+} |