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: Sun, 18 Aug 2019 15:39:29
Message-Id: 1566142742.93b10ca8d4183db22c121f186549c9f84d702ef2.grozin@gentoo
1 commit: 93b10ca8d4183db22c121f186549c9f84d702ef2
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 18 15:39:02 2019 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 18 15:39:02 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93b10ca8
7
8 sci-mathematics/wxmaxima: bump to 19.08.1
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 sci-mathematics/wxmaxima/Manifest | 1 +
14 sci-mathematics/wxmaxima/wxmaxima-19.08.1.ebuild | 57 ++++++++++++++++++++++++
15 2 files changed, 58 insertions(+)
16
17 diff --git a/sci-mathematics/wxmaxima/Manifest b/sci-mathematics/wxmaxima/Manifest
18 index a0860a7964a..95d0557430a 100644
19 --- a/sci-mathematics/wxmaxima/Manifest
20 +++ b/sci-mathematics/wxmaxima/Manifest
21 @@ -1,2 +1,3 @@
22 DIST wxmaxima-18.11.4.tar.gz 12156776 BLAKE2B 75be0fb88402af011885616a646f7abcad25516ea9b0b375daf02edac5518b113188290262bc431e8bfb4836fc1f731982a1c41c62871818e4d2cc68c96ccb31 SHA512 964de93edc5c46e98de3de405b1873fa0ed594d54f1ddc030377b023110261cb1e6b0b08dbf210551888bf890e28d16e9b1698768c93dde413d5e1918cbd234e
23 DIST wxmaxima-19.05.7.tar.gz 13832202 BLAKE2B 6afe37dfcefe3f1711cc1cc89e4c61071dff2d49c60742a6d64ece9fa029823f6e94e20eb69e6d6cd8ccad1f5f656670089d593752f4be4d179222f5f2090d53 SHA512 3a7caee5ab03eefd4d2811345678d7b74081b0a4315dcc7739dbf4d265d274bb47a93ace5980a30185a13f40c1c970a8e4ba444bdd64b8b9ebd3b9a263cc6c06
24 +DIST wxmaxima-19.08.1.tar.gz 15153254 BLAKE2B 1bd48735ab95b078b9f35d7be623c1a16da6764649254579a2c2252ff858adb05e9408a85e5ed84dba6f15f879db761472276a5da77fa15e1c1823c678160aa3 SHA512 07f650144b8acd8295a45411185805185078f5236b67b33dac0f12308fc3b7522a6a46dfd2df35397c1d2fd5a357fb8d12473be4af576fcf09bda1e34352ae68
25
26 diff --git a/sci-mathematics/wxmaxima/wxmaxima-19.08.1.ebuild b/sci-mathematics/wxmaxima/wxmaxima-19.08.1.ebuild
27 new file mode 100644
28 index 00000000000..6e3b401b1d7
29 --- /dev/null
30 +++ b/sci-mathematics/wxmaxima/wxmaxima-19.08.1.ebuild
31 @@ -0,0 +1,57 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +WX_GTK_VER="3.0"
37 +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"
38 +inherit cmake-utils wxwidgets l10n xdg-utils gnome2-utils
39 +
40 +DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit"
41 +HOMEPAGE="http://wxmaxima-developers.github.io/wxmaxima/"
42 +SRC_URI="https://github.com/wxMaxima-developers/wxmaxima/archive/Version-${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~ppc ~x86"
47 +IUSE=""
48 +S="${WORKDIR}"/${PN}-Version-${PV}
49 +
50 +DEPEND="
51 + dev-libs/libxml2:2
52 + x11-libs/wxGTK:${WX_GTK_VER}"
53 +RDEPEND="${DEPEND}
54 + media-fonts/jsmath
55 + sci-visualization/gnuplot[wxwidgets]
56 + sci-mathematics/maxima"
57 +
58 +src_prepare() {
59 + setup-wxwidgets
60 + cmake-utils_src_prepare
61 +
62 + sed -e "s|share/doc/${PN}|share/doc/${PF}|g" -i "${S}"/info/CMakeLists.txt \
63 + || die "sed info/CMakeLists.txt failed"
64 +
65 + # locales
66 + rm_po() {
67 + rm "${S}"/locales/${1}.po || die "rm ${1}.po failed"
68 + }
69 + l10n_find_plocales_changes "${S}"/locales '' '.po'
70 + l10n_for_each_disabled_locale_do rm_po
71 +}
72 +
73 +src_install() {
74 + docompress -x /usr/share/doc/${PF}/wxmaxima.hhp /usr/share/doc/${PF}/wxmaxima_tr.hhp
75 + cmake-utils_src_install
76 +}
77 +
78 +pkg_postinst() {
79 + xdg_desktop_database_update
80 + xdg_mimeinfo_database_update
81 + gnome2_icon_cache_update
82 +}
83 +
84 +pkg_postrm() {
85 + xdg_desktop_database_update
86 + xdg_mimeinfo_database_update
87 + gnome2_icon_cache_update
88 +}