/[gentoo-x86]/sci-mathematics/wxmaxima/wxmaxima-15.04.0-r1.ebuild
Gentoo

Contents of /sci-mathematics/wxmaxima/wxmaxima-15.04.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Apr 28 15:21:10 2015 UTC (5 years, 7 months ago) by grozin
Branch: MAIN
CVS Tags: HEAD
Changing wxMaxima -> wxmaxima in new places, #547548

(Portage version: 2.2.18/cvs/Linux i686, signed Manifest commit with key 0x3AFFCE974D34BD8C!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/wxmaxima/wxmaxima-14.12.0.ebuild,v 1.1 2014/12/20 15:45:16 grozin Exp $
4
5 EAPI=5
6
7 WX_GTK_VER="3.0"
8
9 inherit eutils gnome2-utils wxwidgets fdo-mime
10
11 DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit"
12 HOMEPAGE="http://andrejv.github.io/wxmaxima/"
13 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~x86"
18
19 DEPEND="
20 dev-libs/libxml2:2
21 x11-libs/wxGTK:${WX_GTK_VER}"
22 RDEPEND="${DEPEND}
23 media-fonts/jsmath
24 sci-visualization/gnuplot[wxwidgets]
25 sci-mathematics/maxima"
26
27 src_prepare() {
28 local i
29
30 # consistent package names
31 sed -e "s:\${datadir}/wxMaxima:\${datadir}/${PN}:g" \
32 -i Makefile.in data/Makefile.in || die "sed failed"
33
34 sed -e 's:share/wxMaxima:share/wxmaxima:g' \
35 -i src/wxMaxima.cpp src/wxMaximaFrame.cpp src/Config.cpp \
36 -i src/wxMaxima.cpp src/wxMaximaFrame.cpp src/Dirstructure.h src/Dirstructure.cpp \
37 || die "sed failed"
38
39 # correct gettext behavior
40 if [[ -n "${LINGUAS+x}" ]] ; then
41 for i in $(cd "${S}"/locales ; echo *.mo) ; do
42 if ! has ${i%.mo} ${LINGUAS} ; then
43 sed -i \
44 -e "/^WXMAXIMA_LINGUAS/s# ${i%.mo}##" \
45 -e "/^WXWIN_LINGUAS/s# ${i%.mo}##" \
46 locales/Makefile.in || die
47 fi
48 done
49 fi
50 }
51
52 src_configure() {
53 econf \
54 --enable-printing \
55 --with-wx-config=${WX_CONFIG}
56 }
57
58 src_install () {
59 default
60 doicon -s 128 data/wxmaxima.png
61 make_desktop_entry wxmaxima wxMaxima wxmaxima
62 dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README
63 }
64
65 pkg_preinst() {
66 gnome2_icon_savelist
67 }
68
69 pkg_postinst() {
70 gnome2_icon_cache_update
71 fdo-mime_desktop_database_update
72 }
73
74 pkg_postrm() {
75 gnome2_icon_cache_update
76 fdo-mime_desktop_database_update
77 }

  ViewVC Help
Powered by ViewVC 1.1.20