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/wxmaxima/
Date: Tue, 18 May 2021 06:52:42
Message-Id: 1621320729.4c713da876b860a151768a5aa03268a2106c321a.grozin@gentoo
1 commit: 4c713da876b860a151768a5aa03268a2106c321a
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 18 06:52:09 2021 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Tue May 18 06:52:09 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c713da8
7
8 sci-mathematics/wxmaxima: bump to 21.05.1
9
10 Package-Manager: Portage-3.0.18, 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.05.1.ebuild | 79 ++++++++++++++++++++++++
15 2 files changed, 80 insertions(+)
16
17 diff --git a/sci-mathematics/wxmaxima/Manifest b/sci-mathematics/wxmaxima/Manifest
18 index c53f9dbbb35..39b375b5aa7 100644
19 --- a/sci-mathematics/wxmaxima/Manifest
20 +++ b/sci-mathematics/wxmaxima/Manifest
21 @@ -1,3 +1,4 @@
22 DIST wxmaxima-20.12.2.tar.gz 16262617 BLAKE2B 2f9f910f565158b2011f014d96747498c6286a95bdb69f9b6b2f82a37a569e8a02abbae5cbb9ae2ac1e78d0b976487666794b267c1c40c1245df08c752486403 SHA512 1c3e3f68a2fa2cd798dfb05c52e7ddf3193a15cb45282553c280914bd524d463ad27acc89898cb4a292ff236699d1ec2abb70d83fa52cb126123ab8e2fcd5ceb
23 DIST wxmaxima-21.01.0.tar.gz 16220587 BLAKE2B b987e8c44c253484d152092093ab9154b7c2a5817c584bc1a4f4a0e5beec3ec2e0bc6995aea6ba28df2223b039ca97905225cc2524840174b2c99a5f7774dab2 SHA512 aec5aa5d3a9883e9b21b890c133684004576411a8341f3913ae548175979ad1f07a16d0fccd24c7757d40f4d06b4070b00fa7ef54f73f26b99c825e03e2a408b
24 DIST wxmaxima-21.04.0.tar.gz 17684730 BLAKE2B a3b12970ad976a3ee3fc237b6d60f52d460e87997b869825d17645daa0f82bcc6f7999188fe4c92bba819d7a895cff468ff273ab62ab30f38a7a54a6dba47786 SHA512 723373c9fd9877bce38a205455e6ac58a48a61ac3ad0be5c09d0b24abeebd35af481f19efe5de08a2507f1198a8b4b6cfa987c50e4d4a580b4e05ec2c3e5a4f7
25 +DIST wxmaxima-21.05.1.tar.gz 17782450 BLAKE2B cf52c26342631810fd121ce89af98784bc243e650e3db3a26b577f63fffe63380c7af4db3d5f97ef3330455051ec0bc8349726cf70817dd24e7206dd0d274ef8 SHA512 beb100c5aba34a90e2c5c0f54022948e72e1b3f72862823fc23973abec644ed0f615d3c82499738c17d49d1c9af9ab6b868486d0187ee9971a7e6b017eda10cd
26
27 diff --git a/sci-mathematics/wxmaxima/wxmaxima-21.05.1.ebuild b/sci-mathematics/wxmaxima/wxmaxima-21.05.1.ebuild
28 new file mode 100644
29 index 00000000000..86038f4610e
30 --- /dev/null
31 +++ b/sci-mathematics/wxmaxima/wxmaxima-21.05.1.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 wxwidgets l10n 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 + l10n_find_plocales_changes locales/wxMaxima '' '.po'
79 + l10n_for_each_disabled_locale_do 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 +}