commit:     7b390b39127998c3a74b05793c42a8d67c4eed43
Author:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 13 21:48:16 2018 +0000
Commit:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Tue Mar 13 21:48:16 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b390b39

sci-mathematics/wxmaxima: bump to 18.02.0

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 sci-mathematics/wxmaxima/Manifest                |  1 +
 sci-mathematics/wxmaxima/wxmaxima-18.02.0.ebuild | 52 ++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/sci-mathematics/wxmaxima/Manifest 
b/sci-mathematics/wxmaxima/Manifest
index 207f972114e..30749dc9712 100644
--- a/sci-mathematics/wxmaxima/Manifest
+++ b/sci-mathematics/wxmaxima/Manifest
@@ -3,3 +3,4 @@ DIST wxmaxima-16.04.2.tar.gz 5178050 BLAKE2B 
52c416040277fbbf0f8e930f3ad3b8a78f7
 DIST wxmaxima-16.12.0.tar.gz 4842949 BLAKE2B 
668219b2602b02e49eafa2c35fa7a5cfc995691356f5ce747590aa2e516ad8c1c8a6f57c8c8e19095ff301b7fd131942ea0ed6dbf4ce3b728fbb139e2139b5dc
 SHA512 
6a68cf6b4fdf07bef7fdd19397c226c3cf4f693aaab8ae028e6af69b114a04fa7dbf20f7f183853f8f655ef8d0bf984ee2a0af6096697ab3c454d17f37c98819
 DIST wxmaxima-16.12.2.tar.gz 4866058 BLAKE2B 
ee00fd9259776d1aee59f295baafd6f97c7ebf38302c8cdb8c64815f8ffdd3c76cc48df1ee6a99a5afab28a033643025dfcc0a1e75f3a54de1b94f989f40164f
 SHA512 
346a04c56a236d42e7177da9c12d94a504df7146457394c82293884995222d647746277096c14891c217559a1d9d743963c14d65931b31350ab2480f02fd03c1
 DIST wxmaxima-17.10.1.tar.gz 8690844 BLAKE2B 
63e1bd1bc15aff3eb350a522dc79027fc203226c03a3ff1967537ee004c8965d49a23432e10e3dd5670e271228d03eda1731ca16a2c4a1466a9ca1fa7127c500
 SHA512 
015f4a05e48d3c8918adcb4c69334b80cff8d0b97af7527742aabc438d34a6e5841e129a68f0d5e7f60c5ff7b415525874e6785c9b5a9f63925968a476ebc457
+DIST wxmaxima-18.02.0.tar.gz 10131174 BLAKE2B 
d2137d4dfb23244c677a64578ea8cd132514d6e80b39ed1ed938a64952fcd9928459a64ceafccd34ef925fea6161a79112da9e8091de2ba8f93b4137f3240692
 SHA512 
e40a5fa701bd40c279de95bc16269a72678443ef0bdb14c3770c81feeaf33ddfff6c10f00b32239adcdf696f2a449c6d88d168b732d1273764c98c6ff807fd84

diff --git a/sci-mathematics/wxmaxima/wxmaxima-18.02.0.ebuild 
b/sci-mathematics/wxmaxima/wxmaxima-18.02.0.ebuild
new file mode 100644
index 00000000000..2b7cde69a15
--- /dev/null
+++ b/sci-mathematics/wxmaxima/wxmaxima-18.02.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WX_GTK_VER="3.0"
+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"
+inherit cmake-utils wxwidgets l10n xdg-utils gnome2-utils
+
+DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit"
+HOMEPAGE="http://andrejv.github.io/wxmaxima/";
+SRC_URI="https://github.com/andrejv/wxmaxima/archive/Version-${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+S="${WORKDIR}"/${PN}-Version-${PV}
+
+DEPEND="
+       dev-libs/libxml2:2
+       x11-libs/wxGTK:${WX_GTK_VER}"
+RDEPEND="${DEPEND}
+       media-fonts/jsmath
+       sci-visualization/gnuplot[wxwidgets]
+       sci-mathematics/maxima"
+
+src_prepare() {
+       setup-wxwidgets
+       cmake-utils_src_prepare
+
+       sed -e "s|share/doc/${PN}|share/doc/${PF}|g" -i 
"${S}"/info/CMakeLists.txt \
+               || die "sed info/CMakeLists.txt failed"
+
+       # locales
+       rm_po() {
+               rm "${S}"/locales/${1}.po || die "rm ${1}.po failed"
+       }
+       l10n_find_plocales_changes "${S}"/locales '' '.po'
+       l10n_for_each_disabled_locale_do rm_po
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+       gnome2_icon_cache_update
+}

Reply via email to