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/files/, sci-mathematics/wxmaxima/
Date: Sun, 31 Dec 2017 13:27:51
Message-Id: 1514726820.75c98d03ea71aad91fdc6aa610dfbfcd9c0bb17f.grozin@gentoo
1 commit: 75c98d03ea71aad91fdc6aa610dfbfcd9c0bb17f
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 31 13:25:55 2017 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 31 13:27:00 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75c98d03
7
8 sci-mathematics/wxmaxima: use wxwidgets.eclass
9
10 Closes: https://bugs.gentoo.org/642734
11 Package-Manager: Portage-2.3.19, Repoman-2.3.6
12
13 .../wxmaxima/files/wxmaxima-require-wxGTK-3.0.patch | 8 --------
14 sci-mathematics/wxmaxima/wxmaxima-17.10.1.ebuild | 11 ++++-------
15 2 files changed, 4 insertions(+), 15 deletions(-)
16
17 diff --git a/sci-mathematics/wxmaxima/files/wxmaxima-require-wxGTK-3.0.patch b/sci-mathematics/wxmaxima/files/wxmaxima-require-wxGTK-3.0.patch
18 deleted file mode 100644
19 index b08434061d3..00000000000
20 --- a/sci-mathematics/wxmaxima/files/wxmaxima-require-wxGTK-3.0.patch
21 +++ /dev/null
22 @@ -1,8 +0,0 @@
23 -diff -r -U3 wxmaxima-Version-17.10.1.orig/src/CMakeLists.txt wxmaxima-Version-17.10.1/src/CMakeLists.txt
24 ---- wxmaxima-Version-17.10.1.orig/src/CMakeLists.txt 2017-10-22 12:45:56.000000000 +0700
25 -+++ wxmaxima-Version-17.10.1/src/CMakeLists.txt 2017-12-28 21:29:58.389806037 +0700
26 -@@ -1,3 +1,4 @@
27 -+set(wxWidgets_CONFIG_OPTIONS --toolkit=gtk2 --version=3.0)
28 - find_package(wxWidgets REQUIRED std xml html adv aui core net base richtext)
29 -
30 - include(${wxWidgets_USE_FILE})
31
32 diff --git a/sci-mathematics/wxmaxima/wxmaxima-17.10.1.ebuild b/sci-mathematics/wxmaxima/wxmaxima-17.10.1.ebuild
33 index 52fa2ddc14e..c121ca2e948 100644
34 --- a/sci-mathematics/wxmaxima/wxmaxima-17.10.1.ebuild
35 +++ b/sci-mathematics/wxmaxima/wxmaxima-17.10.1.ebuild
36 @@ -2,9 +2,9 @@
37 # Distributed under the terms of the GNU General Public License v2
38
39 EAPI=6
40 -
41 +WX_GTK_VER="3.0"
42 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"
43 -inherit cmake-utils l10n xdg-utils gnome2-utils
44 +inherit cmake-utils wxwidgets l10n xdg-utils gnome2-utils
45
46 DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit"
47 HOMEPAGE="http://andrejv.github.io/wxmaxima/"
48 @@ -18,17 +18,14 @@ S="${WORKDIR}"/${PN}-Version-${PV}
49
50 DEPEND="
51 dev-libs/libxml2:2
52 - x11-libs/wxGTK:3.0"
53 + x11-libs/wxGTK:${WX_GTK_VER}"
54 RDEPEND="${DEPEND}
55 media-fonts/jsmath
56 sci-visualization/gnuplot[wxwidgets]
57 sci-mathematics/maxima"
58
59 -PATCHES=(
60 - "${FILESDIR}"/${PN}-require-wxGTK-3.0.patch
61 -)
62 -
63 src_prepare() {
64 + setup-wxwidgets
65 cmake-utils_src_prepare
66
67 sed -e "s|share/doc/${PN}|share/doc/${PF}|g" -i "${S}"/info/CMakeLists.txt \