diff options
author | Andrey Grozin <grozin@gentoo.org> | 2016-08-01 21:27:34 +0700 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2016-08-01 21:27:34 +0700 |
commit | 521b3e974170fbe511155a07c5cae9772d93745f (patch) | |
tree | 56f29d8961afae7112d02b22ea81da304f3d335f /sci-mathematics/wxmaxima/wxmaxima-16.04.2.ebuild | |
parent | dev-libs/gecode: fix metadata.xml schema. (diff) | |
download | gentoo-521b3e974170fbe511155a07c5cae9772d93745f.tar.gz gentoo-521b3e974170fbe511155a07c5cae9772d93745f.tar.bz2 gentoo-521b3e974170fbe511155a07c5cae9772d93745f.zip |
sci-mathematics/wxmaxima: bump to 16.04.2
Package-Manager: portage-2.3.0
Diffstat (limited to 'sci-mathematics/wxmaxima/wxmaxima-16.04.2.ebuild')
-rw-r--r-- | sci-mathematics/wxmaxima/wxmaxima-16.04.2.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/sci-mathematics/wxmaxima/wxmaxima-16.04.2.ebuild b/sci-mathematics/wxmaxima/wxmaxima-16.04.2.ebuild new file mode 100644 index 000000000000..1e052291633c --- /dev/null +++ b/sci-mathematics/wxmaxima/wxmaxima-16.04.2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +WX_GTK_VER="3.0" + +inherit eutils gnome2-utils wxwidgets fdo-mime + +DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit" +HOMEPAGE="http://andrejv.github.io/wxmaxima/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +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() { + local i + + # consistent package names + sed -e "s:\${datadir}/wxMaxima:\${datadir}/${PN}:g" \ + -i Makefile.in data/Makefile.in test/Makefile.in || die "sed failed" + + sed -e 's:share/wxMaxima:share/wxmaxima:g' \ + -i src/wxMaxima.cpp src/wxMaximaFrame.cpp src/Dirstructure.cpp src/Dirstructure.h \ + || die "sed failed" + + # correct gettext behavior + if [[ -n "${LINGUAS+x}" ]] ; then + for i in $(cd "${S}"/locales ; echo *.mo) ; do + if ! has ${i%.mo} ${LINGUAS} ; then + sed -i \ + -e "/^WXMAXIMA_LINGUAS/s# ${i%.mo}##" \ + -e "/^WXWIN_LINGUAS/s# ${i%.mo}##" \ + locales/Makefile.in || die + fi + done + fi +} + +src_configure() { + econf \ + --enable-printing \ + --with-wx-config=${WX_CONFIG} +} + +src_install () { + default + doicon -s 128 data/wxmaxima.png + make_desktop_entry wxmaxima wxMaxima wxmaxima + dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + fdo-mime_desktop_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + fdo-mime_desktop_database_update +} |