1 |
commit: 5b5d46f8ed517dcea3c1f9f04786060910873bb1 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 19 13:20:12 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 19 13:22:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b5d46f8 |
7 |
|
8 |
sci-mathematics/yacas: add version 1.9.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/700004 |
11 |
Bug: https://bugs.gentoo.org/741586 |
12 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
13 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
14 |
|
15 |
sci-mathematics/yacas/Manifest | 1 + |
16 |
sci-mathematics/yacas/yacas-1.9.1.ebuild | 75 ++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 76 insertions(+) |
18 |
|
19 |
diff --git a/sci-mathematics/yacas/Manifest b/sci-mathematics/yacas/Manifest |
20 |
index ea8473edce24..090855f8d1bc 100644 |
21 |
--- a/sci-mathematics/yacas/Manifest |
22 |
+++ b/sci-mathematics/yacas/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST yacas-1.7.0.tar.gz 2610016 BLAKE2B 62400d8aaba192a088bb48e0e12ff79e7e2d24af4825b2d53aeffa7aace011beb728118d56e5a9dd9e7dedba545706bbf77cb9ef27b5075e555fc5cc1983dc5e SHA512 6da7d454b3a74638d743c5e8168b27b9a8a71e2c41fe3f35bcb397fb80e866277ddb5b4e15167e2c0d11dd6033491ca72b560440fe2db6dc34b91b2ad047ca1d |
25 |
+DIST yacas-1.9.1.tar.gz 38815043 BLAKE2B 09ec83591a9c11220f4e74ea07f1cad679cfef8c7a679c379f9bbc5708a70ccf9eb09a2ec6ca3fee7d76bc86082afcbd03e3d20df2e703dc579d93e94feee3e1 SHA512 1af1d7d490cf2d98fa861c476c7a7051a28535edc815f69a58edd2d96053332a8de7125017f18acbe2bf7b4eaf561cdf4e22d3c3f8e6656aaa3fbc46d0f633ef |
26 |
DIST yacas-bundled-1.7.0.tar.xz 4940180 BLAKE2B e191f3806df0c15149df053c47b1f11a5113ee3b55cbc9a78bfaec058fb5d783e4157687bf4ee9a953bcd23a4e3e49a59e6743e4471e31209a9e24e03ddc8ff5 SHA512 a9c519d0721df69ec81998a3ec17043b59230f5b0650fc2fd6555eccb5503460f387433c019ae15bbd0fd3ff11e697d6da56a3d08aac5fadf4ff023ca5d8691c |
27 |
|
28 |
diff --git a/sci-mathematics/yacas/yacas-1.9.1.ebuild b/sci-mathematics/yacas/yacas-1.9.1.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..df6256bf81c2 |
31 |
--- /dev/null |
32 |
+++ b/sci-mathematics/yacas/yacas-1.9.1.ebuild |
33 |
@@ -0,0 +1,75 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+# Sphinx doc building is not compatible with in-tree version of sphinx-bibtex: |
40 |
+# Extension error: You must configure the bibtex_bibfiles setting |
41 |
+# |
42 |
+# PYTHON_COMPAT=( python3_{8..10} ) |
43 |
+# DOCS_BUILDER="sphinx" |
44 |
+# DOCS_DEPEND=" |
45 |
+# dev-python/sphinxcontrib-bibtex |
46 |
+# dev-python/sphinx_rtd_theme |
47 |
+# " |
48 |
+ |
49 |
+inherit cmake xdg # python-any-r1 docs |
50 |
+ |
51 |
+DESCRIPTION="General purpose computer algebra system" |
52 |
+HOMEPAGE="https://www.yacas.org/" |
53 |
+SRC_URI="https://github.com/grzegorzmazur/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
54 |
+ |
55 |
+LICENSE="GPL-2 gui? ( MIT Apache-2.0 OFL-1.1 )" |
56 |
+SLOT="0/1" |
57 |
+KEYWORDS="~amd64 ~x86" |
58 |
+IUSE="gui +jupyter static-libs test" |
59 |
+RESTRICT="!test? ( test )" |
60 |
+ |
61 |
+DEPEND=" |
62 |
+ gui? ( |
63 |
+ dev-libs/mathjax |
64 |
+ dev-qt/qtcore:5[icu] |
65 |
+ dev-qt/qtgui:5 |
66 |
+ dev-qt/qtmultimedia:5 |
67 |
+ dev-qt/qtnetwork:5 |
68 |
+ dev-qt/qtopengl:5 |
69 |
+ dev-qt/qtprintsupport:5 |
70 |
+ dev-qt/qtsql:5 |
71 |
+ dev-qt/qtsvg:5 |
72 |
+ dev-qt/qtwebengine:5[widgets] |
73 |
+ dev-qt/qtwidgets:5 |
74 |
+ ) |
75 |
+ jupyter? ( |
76 |
+ dev-libs/boost:= |
77 |
+ dev-libs/jsoncpp:= |
78 |
+ dev-libs/openssl:0= |
79 |
+ dev-python/jupyter |
80 |
+ net-libs/zeromq |
81 |
+ >=net-libs/zmqpp-4.1.2 |
82 |
+ ) |
83 |
+" |
84 |
+RDEPEND="${DEPEND}" |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ # respect DESTDIR. avoid sandbox violation |
88 |
+ sed -i -e 's/${CMAKE_INSTALL_PREFIX}/\\$ENV{DESTDIR}\/${CMAKE_INSTALL_PREFIX}/g' \ |
89 |
+ cyacas/yacas-gui/resources/CMakeLists.txt || die |
90 |
+ cmake_src_prepare |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ # TODO: Unbundle CodeMirror |
95 |
+ local mycmakeargs=( |
96 |
+ -DENABLE_CYACAS_BENCHMARKS=OFF |
97 |
+ -DENABLE_DOCS=OFF |
98 |
+ # -DENABLE_DOCS=$(usex doc) |
99 |
+ -DENABLE_JYACAS=OFF # requires manual install |
100 |
+ -DENABLE_CYACAS_GUI=$(usex gui) |
101 |
+ # use system version of mathjax instead |
102 |
+ -DENABLE_CYACAS_GUI_PRIVATE_MATHJAX=OFF |
103 |
+ -DMATHJAX_PATH="${EPREFIX}/usr/share/mathjax/MathJax.js" |
104 |
+ -DENABLE_CYACAS_KERNEL=$(usex jupyter) |
105 |
+ -DENABLE_CYACAS_UNIT_TESTS=$(usex test) |
106 |
+ ) |
107 |
+ cmake_src_configure |
108 |
+} |