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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Apr 28 15:21:10 2015 UTC (2 years, 9 months ago) by grozin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
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-15.04.0.ebuild,v 1.1 2015/04/16 14:44:32 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 || die "sed failed"
37
38 # correct gettext behavior
39 if [[ -n "${LINGUAS+x}" ]] ; then
40 for i in $(cd "${S}"/locales ; echo *.mo) ; do
41 if ! has ${i%.mo} ${LINGUAS} ; then
42 sed -i \
43 -e "/^WXMAXIMA_LINGUAS/s# ${i%.mo}##" \
44 -e "/^WXWIN_LINGUAS/s# ${i%.mo}##" \
45 locales/Makefile.in || die
46 fi
47 done
48 fi
49 }
50
51 src_configure() {
52 econf \
53 --enable-printing \
54 --with-wx-config=${WX_CONFIG}
55 }
56
57 src_install () {
58 default
59 doicon -s 128 data/wxmaxima.png
60 make_desktop_entry wxmaxima wxMaxima wxmaxima
61 dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README
62 }
63
64 pkg_preinst() {
65 gnome2_icon_savelist
66 }
67
68 pkg_postinst() {
69 gnome2_icon_cache_update
70 fdo-mime_desktop_database_update
71 }
72
73 pkg_postrm() {
74 gnome2_icon_cache_update
75 fdo-mime_desktop_database_update
76 }

  ViewVC Help
Powered by ViewVC 1.1.20