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: Mon, 01 Aug 2016 14:28:22
Message-Id: 1470061654.521b3e974170fbe511155a07c5cae9772d93745f.grozin@gentoo
1 commit: 521b3e974170fbe511155a07c5cae9772d93745f
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 1 14:27:34 2016 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 1 14:27:34 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=521b3e97
7
8 sci-mathematics/wxmaxima: bump to 16.04.2
9
10 Package-Manager: portage-2.3.0
11
12 sci-mathematics/wxmaxima/Manifest | 1 +
13 sci-mathematics/wxmaxima/wxmaxima-16.04.2.ebuild | 76 ++++++++++++++++++++++++
14 2 files changed, 77 insertions(+)
15
16 diff --git a/sci-mathematics/wxmaxima/Manifest b/sci-mathematics/wxmaxima/Manifest
17 index ecb0e26..f15ead4 100644
18 --- a/sci-mathematics/wxmaxima/Manifest
19 +++ b/sci-mathematics/wxmaxima/Manifest
20 @@ -1,3 +1,4 @@
21 DIST wxMaxima-13.04.2.tar.gz 1652680 SHA256 29352db75dd3ff27393ab0971543fd0b3c3a9c330c2c8d07ebfd373741ded4eb SHA512 36d035282aca8d40d9f5950c21e8e3abe8d3a76ffbb91f6436a3588e252ca2455c4c1c4e5eed4111888f917406ac758f551198ca97acb67bcc6655e579db20aa WHIRLPOOL 7579a5d7b72e0c10f9162b92da03b2f4f51052cf8800fc0c01312718cfc31c0d8ff608aff6f873e07b46247a2c2ad7dc666e0e469dda1f1a8e8af52629a6e69d
22 DIST wxmaxima-15.08.2.tar.gz 5592673 SHA256 7ad3f018e42d15d06bee5af10053edb72e441c1d1feee318dc6eb927db6a26c5 SHA512 a537c49477f54df4fd9e4e42a5e0d0d740f1ede817d807a98b7cec877a3ad77b2be0a61ae487a7fa5beb193b112eca163b8873292ecab5acf118d58a91e91af6 WHIRLPOOL a4df36704bbd33f841ddf3b9651662a092708850cdc637e6f6bfabc195c1e7e34dd66e14d92ee1cba69f3810bc74a4295837709d38bf6d6ce83b81d7776a3b9a
23 DIST wxmaxima-16.04.1.tar.gz 5177734 SHA256 907fecb2f5f0b5430eb9ade2ece8c41e4bdf73315c2484ffa4832ec47266b684 SHA512 4d24daf6d6df08d88b7c833d48bdaddc8d8a52cca357b8c940ceb3825122ed351f417780a81af1b41b3b014518b14efbb51d8e247bb228dc1e4f83d0fed79365 WHIRLPOOL a750935002ea0f4bb46cb7bc70c02cdf049adef20a351e9e4a93e53426e22fcab6292b31731531149d4e4e66897adee043d0d90046079723ad809d4ae6886750
24 +DIST wxmaxima-16.04.2.tar.gz 5178050 SHA256 761c2a5630a6d81fa84bc9eba431112910dce818c4dd77338e3a0691c2fcf8ba SHA512 da8159e7c779f50bde7a6f6852987c18aaf724b1ebf0bdc4d231f40b80e04cee2870a520251d212681b3f0a7533d28b744d3684fc395a26d2a46b48c1a31a856 WHIRLPOOL 613950e86516ab73d99180bf2ccc3f8f82167005a89fc07ea3ac0682054325c857bd54d1ab6fd7da200d045db28f9f4f0b2b05f9107916bdf39285afba9bfd0e
25
26 diff --git a/sci-mathematics/wxmaxima/wxmaxima-16.04.2.ebuild b/sci-mathematics/wxmaxima/wxmaxima-16.04.2.ebuild
27 new file mode 100644
28 index 0000000..1e05229
29 --- /dev/null
30 +++ b/sci-mathematics/wxmaxima/wxmaxima-16.04.2.ebuild
31 @@ -0,0 +1,76 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +WX_GTK_VER="3.0"
39 +
40 +inherit eutils gnome2-utils wxwidgets fdo-mime
41 +
42 +DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit"
43 +HOMEPAGE="http://andrejv.github.io/wxmaxima/"
44 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~ppc ~x86"
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 + local i
60 +
61 + # consistent package names
62 + sed -e "s:\${datadir}/wxMaxima:\${datadir}/${PN}:g" \
63 + -i Makefile.in data/Makefile.in test/Makefile.in || die "sed failed"
64 +
65 + sed -e 's:share/wxMaxima:share/wxmaxima:g' \
66 + -i src/wxMaxima.cpp src/wxMaximaFrame.cpp src/Dirstructure.cpp src/Dirstructure.h \
67 + || die "sed failed"
68 +
69 + # correct gettext behavior
70 + if [[ -n "${LINGUAS+x}" ]] ; then
71 + for i in $(cd "${S}"/locales ; echo *.mo) ; do
72 + if ! has ${i%.mo} ${LINGUAS} ; then
73 + sed -i \
74 + -e "/^WXMAXIMA_LINGUAS/s# ${i%.mo}##" \
75 + -e "/^WXWIN_LINGUAS/s# ${i%.mo}##" \
76 + locales/Makefile.in || die
77 + fi
78 + done
79 + fi
80 +}
81 +
82 +src_configure() {
83 + econf \
84 + --enable-printing \
85 + --with-wx-config=${WX_CONFIG}
86 +}
87 +
88 +src_install () {
89 + default
90 + doicon -s 128 data/wxmaxima.png
91 + make_desktop_entry wxmaxima wxMaxima wxmaxima
92 + dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README
93 +}
94 +
95 +pkg_preinst() {
96 + gnome2_icon_savelist
97 +}
98 +
99 +pkg_postinst() {
100 + gnome2_icon_cache_update
101 + fdo-mime_desktop_database_update
102 +}
103 +
104 +pkg_postrm() {
105 + gnome2_icon_cache_update
106 + fdo-mime_desktop_database_update
107 +}