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: Wed, 26 Sep 2018 09:28:52
Message-Id: 1537954112.e1c4cf1df7dcccc70404b0400e4a6c3119351e61.grozin@gentoo
1 commit: e1c4cf1df7dcccc70404b0400e4a6c3119351e61
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 26 09:28:32 2018 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 26 09:28:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1c4cf1d
7
8 sci-mathematics/wxmaxima: bump to 18.10.0
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 sci-mathematics/wxmaxima/Manifest | 1 +
13 sci-mathematics/wxmaxima/wxmaxima-18.10.0.ebuild | 52 ++++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/sci-mathematics/wxmaxima/Manifest b/sci-mathematics/wxmaxima/Manifest
17 index 2ea4791497f..e34ec2b03ec 100644
18 --- a/sci-mathematics/wxmaxima/Manifest
19 +++ b/sci-mathematics/wxmaxima/Manifest
20 @@ -1,2 +1,3 @@
21 DIST wxmaxima-15.08.2.tar.gz 5592673 BLAKE2B cacb508cbcb24e27a43998ba0079b14117980669c25b39b017c0c659ef48d2ad338c6503aea99447a14250ed1a68a3414880828fc8ffdcbd3177b8eb9355a919 SHA512 a537c49477f54df4fd9e4e42a5e0d0d740f1ede817d807a98b7cec877a3ad77b2be0a61ae487a7fa5beb193b112eca163b8873292ecab5acf118d58a91e91af6
22 DIST wxmaxima-18.02.0.tar.gz 10131174 BLAKE2B d2137d4dfb23244c677a64578ea8cd132514d6e80b39ed1ed938a64952fcd9928459a64ceafccd34ef925fea6161a79112da9e8091de2ba8f93b4137f3240692 SHA512 e40a5fa701bd40c279de95bc16269a72678443ef0bdb14c3770c81feeaf33ddfff6c10f00b32239adcdf696f2a449c6d88d168b732d1273764c98c6ff807fd84
23 +DIST wxmaxima-18.10.0.tar.gz 12144997 BLAKE2B 78cfe2cfa5532271cc07eb7bb106b0c9708df4ae3086c02a859f51affe87dd813b3ca28b7fb1137cfb2acbef4f2ce12d2464c30a6dd39d47c028cf4f6c6b030e SHA512 b8cc4288db6bd673a7de7e05d3ff9e3dec1660a78944c2fcd80422cbb6102eea81de33dbc19e7f66e31e0a044be9e935a7f7323b855a1dd3302c3763e5c98196
24
25 diff --git a/sci-mathematics/wxmaxima/wxmaxima-18.10.0.ebuild b/sci-mathematics/wxmaxima/wxmaxima-18.10.0.ebuild
26 new file mode 100644
27 index 00000000000..56c7b4a3e19
28 --- /dev/null
29 +++ b/sci-mathematics/wxmaxima/wxmaxima-18.10.0.ebuild
30 @@ -0,0 +1,52 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +WX_GTK_VER="3.0"
36 +PLOCALES="ca cs da de el es fi fr gl hu it ja kab nb pl pt_BR ru tr uk zh_CN zh_TW"
37 +inherit cmake-utils wxwidgets l10n xdg-utils gnome2-utils
38 +
39 +DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit"
40 +HOMEPAGE="http://wxmaxima-developers.github.io/wxmaxima/"
41 +SRC_URI="https://github.com/wxMaxima-developers/wxmaxima/archive/Version-${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~ppc ~x86"
46 +IUSE=""
47 +S="${WORKDIR}"/${PN}-Version-${PV}
48 +
49 +DEPEND="
50 + dev-libs/libxml2:2
51 + x11-libs/wxGTK:${WX_GTK_VER}"
52 +RDEPEND="${DEPEND}
53 + media-fonts/jsmath
54 + sci-visualization/gnuplot[wxwidgets]
55 + sci-mathematics/maxima"
56 +
57 +src_prepare() {
58 + setup-wxwidgets
59 + cmake-utils_src_prepare
60 +
61 + sed -e "s|share/doc/${PN}|share/doc/${PF}|g" -i "${S}"/info/CMakeLists.txt \
62 + || die "sed info/CMakeLists.txt failed"
63 +
64 + # locales
65 + rm_po() {
66 + rm "${S}"/locales/${1}.po || die "rm ${1}.po failed"
67 + }
68 + l10n_find_plocales_changes "${S}"/locales '' '.po'
69 + l10n_for_each_disabled_locale_do rm_po
70 +}
71 +
72 +pkg_postinst() {
73 + xdg_desktop_database_update
74 + xdg_mimeinfo_database_update
75 + gnome2_icon_cache_update
76 +}
77 +
78 +pkg_postrm() {
79 + xdg_desktop_database_update
80 + xdg_mimeinfo_database_update
81 + gnome2_icon_cache_update
82 +}