1 |
commit: c17a48efb5c5730ceab5df2a947975fb2ac641f8 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 29 05:20:17 2021 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 29 05:20:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c17a48ef |
7 |
|
8 |
sci-mathematics/wxmaxima: bump to 21.11.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
sci-mathematics/wxmaxima/Manifest | 1 + |
14 |
sci-mathematics/wxmaxima/wxmaxima-21.11.0.ebuild | 79 ++++++++++++++++++++++++ |
15 |
2 files changed, 80 insertions(+) |
16 |
|
17 |
diff --git a/sci-mathematics/wxmaxima/Manifest b/sci-mathematics/wxmaxima/Manifest |
18 |
index 861b62cfda92..0d9049a2fdf8 100644 |
19 |
--- a/sci-mathematics/wxmaxima/Manifest |
20 |
+++ b/sci-mathematics/wxmaxima/Manifest |
21 |
@@ -3,3 +3,4 @@ DIST wxmaxima-21.01.0.tar.gz 16220587 BLAKE2B b987e8c44c253484d152092093ab9154b7 |
22 |
DIST wxmaxima-21.04.0.tar.gz 17684730 BLAKE2B a3b12970ad976a3ee3fc237b6d60f52d460e87997b869825d17645daa0f82bcc6f7999188fe4c92bba819d7a895cff468ff273ab62ab30f38a7a54a6dba47786 SHA512 723373c9fd9877bce38a205455e6ac58a48a61ac3ad0be5c09d0b24abeebd35af481f19efe5de08a2507f1198a8b4b6cfa987c50e4d4a580b4e05ec2c3e5a4f7 |
23 |
DIST wxmaxima-21.05.1.tar.gz 17782450 BLAKE2B cf52c26342631810fd121ce89af98784bc243e650e3db3a26b577f63fffe63380c7af4db3d5f97ef3330455051ec0bc8349726cf70817dd24e7206dd0d274ef8 SHA512 beb100c5aba34a90e2c5c0f54022948e72e1b3f72862823fc23973abec644ed0f615d3c82499738c17d49d1c9af9ab6b868486d0187ee9971a7e6b017eda10cd |
24 |
DIST wxmaxima-21.05.2.tar.gz 17782421 BLAKE2B 8a4057087b38f1023f5773b4f3457060b1624e6de654c2b5fadb8fb529461bdf3393e6ea443e69d0ea2057130aa1a7de7ab6739d7797c3a90bb114ec96587289 SHA512 a5d7832d224bad0963a86d3714172d51b67a1c8daf933e66b6c7817da102f942e37aa2a31d8f0f1e27438b61b1ba2705af333edcf2c33a53fdeec318fe837ff6 |
25 |
+DIST wxmaxima-21.11.0.tar.gz 15982803 BLAKE2B 8eff24b3b08fd156341cbd1c565fd832277f99cbbfa2f166671502399e8658273dca86c48b3b09c8616b9d9a17ec4ea9230def645719bcf3c22fc410f5f31d62 SHA512 1660537d475dc16e6d25011ae02b50a9179dd97b19dd115e914636fac71684906d77a2e4f4ab2d8506ac9f6b297de8feeeb46489a6dbf5782783f890a4181506 |
26 |
|
27 |
diff --git a/sci-mathematics/wxmaxima/wxmaxima-21.11.0.ebuild b/sci-mathematics/wxmaxima/wxmaxima-21.11.0.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..9abff2ab71ee |
30 |
--- /dev/null |
31 |
+++ b/sci-mathematics/wxmaxima/wxmaxima-21.11.0.ebuild |
32 |
@@ -0,0 +1,79 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+WX_GTK_VER="3.0-gtk3" |
39 |
+PLOCALES="ca cs da de el en es fi fr gl hu it ja kab nb pl pt_BR ru tr uk zh_CN zh_TW" |
40 |
+inherit cmake plocale wxwidgets xdg |
41 |
+ |
42 |
+DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit" |
43 |
+HOMEPAGE="https://wxmaxima-developers.github.io/wxmaxima/" |
44 |
+SRC_URI="https://github.com/wxMaxima-developers/wxmaxima/archive/Version-${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+S="${WORKDIR}"/${PN}-Version-${PV} |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~ppc ~x86" |
50 |
+IUSE="test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+DEPEND=" |
54 |
+ dev-libs/libxml2:2 |
55 |
+ x11-libs/wxGTK:${WX_GTK_VER}" |
56 |
+RDEPEND="${DEPEND} |
57 |
+ media-fonts/jsmath |
58 |
+ sci-visualization/gnuplot[wxwidgets] |
59 |
+ sci-mathematics/maxima" |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ setup-wxwidgets |
63 |
+ cmake_src_prepare |
64 |
+ |
65 |
+ sed -e "s|GPL.txt ||g" -e "s|share/doc/${PN}|share/doc/${PF}|g" -i CMakeLists.txt \ |
66 |
+ || die "sed CMakeLists.txt failed" |
67 |
+ sed -e "s|share/doc/${PN}|share/doc/${PF}|g" -i info/CMakeLists.txt \ |
68 |
+ || die "sed info/CMakeLists.txt failed" |
69 |
+ |
70 |
+ # locales |
71 |
+ rm_po() { |
72 |
+ rm locales/wxMaxima/${1}.po || die "rm ${1}.po failed" |
73 |
+ rm -f locales/manual/${1}.po |
74 |
+ rm -f info/${PN}.${1}.md |
75 |
+ rm -f info/${PN}.${1}.html |
76 |
+ sed -e "\\|/${1}/wxmaxima.1|d" -i data/CMakeLists.txt |
77 |
+ } |
78 |
+ plocale_find_changes locales/wxMaxima '' '.po' |
79 |
+ plocale_for_each_disabled_locale rm_po |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ local mycmakeargs=( |
84 |
+ -DWXM_UNIT_TESTS=$(usex test) |
85 |
+ ) |
86 |
+ |
87 |
+ cmake_src_configure |
88 |
+} |
89 |
+ |
90 |
+src_test() { |
91 |
+ # Just run the unit tests manually for now as tests fail in a non-descriptive |
92 |
+ # way even with virtualx |
93 |
+ # bug #736695 |
94 |
+ cd "${BUILD_DIR}/test/unit_tests" || die |
95 |
+ |
96 |
+ local tests=( |
97 |
+ AFontSize |
98 |
+ CellPtr |
99 |
+ ImgCell |
100 |
+ ) |
101 |
+ |
102 |
+ local test |
103 |
+ for test in "${tests[@]}" ; do |
104 |
+ ./test_${test} || die "Unit test ${test} failed!" |
105 |
+ done |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ docompress -x /usr/share/doc/${PF} |
110 |
+ cmake_src_install |
111 |
+} |