From a162d56a8d61bebccb88da733ef9acf157bdf79f Mon Sep 17 00:00:00 2001 From: Andrey Grozin Date: Thu, 28 Dec 2017 23:13:34 +0700 Subject: sci-mathematics/wxmaxima: bump to 17.10.1, switch to cmake Package-Manager: Portage-2.3.19, Repoman-2.3.6 --- sci-mathematics/wxmaxima/Manifest | 1 + .../files/wxmaxima-require-wxGTK-3.0.patch | 8 ++++ sci-mathematics/wxmaxima/metadata.xml | 2 +- sci-mathematics/wxmaxima/wxmaxima-17.10.1.ebuild | 55 ++++++++++++++++++++++ 4 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 sci-mathematics/wxmaxima/files/wxmaxima-require-wxGTK-3.0.patch create mode 100644 sci-mathematics/wxmaxima/wxmaxima-17.10.1.ebuild (limited to 'sci-mathematics/wxmaxima') diff --git a/sci-mathematics/wxmaxima/Manifest b/sci-mathematics/wxmaxima/Manifest index 5bad4bb7dcf6..207f972114e1 100644 --- a/sci-mathematics/wxmaxima/Manifest +++ b/sci-mathematics/wxmaxima/Manifest @@ -2,3 +2,4 @@ DIST wxmaxima-15.08.2.tar.gz 5592673 BLAKE2B cacb508cbcb24e27a43998ba0079b141179 DIST wxmaxima-16.04.2.tar.gz 5178050 BLAKE2B 52c416040277fbbf0f8e930f3ad3b8a78f7ed65d28d31722b0fef8482df261c418185705dd00841d9975ea55838303756ca7874a0e94f174fd4274fbd2dbc5d4 SHA512 da8159e7c779f50bde7a6f6852987c18aaf724b1ebf0bdc4d231f40b80e04cee2870a520251d212681b3f0a7533d28b744d3684fc395a26d2a46b48c1a31a856 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 diff --git a/sci-mathematics/wxmaxima/files/wxmaxima-require-wxGTK-3.0.patch b/sci-mathematics/wxmaxima/files/wxmaxima-require-wxGTK-3.0.patch new file mode 100644 index 000000000000..b08434061d39 --- /dev/null +++ b/sci-mathematics/wxmaxima/files/wxmaxima-require-wxGTK-3.0.patch @@ -0,0 +1,8 @@ +diff -r -U3 wxmaxima-Version-17.10.1.orig/src/CMakeLists.txt wxmaxima-Version-17.10.1/src/CMakeLists.txt +--- wxmaxima-Version-17.10.1.orig/src/CMakeLists.txt 2017-10-22 12:45:56.000000000 +0700 ++++ wxmaxima-Version-17.10.1/src/CMakeLists.txt 2017-12-28 21:29:58.389806037 +0700 +@@ -1,3 +1,4 @@ ++set(wxWidgets_CONFIG_OPTIONS --toolkit=gtk2 --version=3.0) + find_package(wxWidgets REQUIRED std xml html adv aui core net base richtext) + + include(${wxWidgets_USE_FILE}) diff --git a/sci-mathematics/wxmaxima/metadata.xml b/sci-mathematics/wxmaxima/metadata.xml index 07badb330231..de974d73bcb2 100644 --- a/sci-mathematics/wxmaxima/metadata.xml +++ b/sci-mathematics/wxmaxima/metadata.xml @@ -13,6 +13,6 @@ completion based on previous input (tab-key). wxMaxima provides 2d formated display of maxima output. - wxmaxima + andrejv/wxmaxima diff --git a/sci-mathematics/wxmaxima/wxmaxima-17.10.1.ebuild b/sci-mathematics/wxmaxima/wxmaxima-17.10.1.ebuild new file mode 100644 index 000000000000..52fa2ddc14ed --- /dev/null +++ b/sci-mathematics/wxmaxima/wxmaxima-17.10.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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 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:3.0" +RDEPEND="${DEPEND} + media-fonts/jsmath + sci-visualization/gnuplot[wxwidgets] + sci-mathematics/maxima" + +PATCHES=( + "${FILESDIR}"/${PN}-require-wxGTK-3.0.patch +) + +src_prepare() { + 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 +} -- cgit v1.2.3-65-gdbad