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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Mar 4 18:38:47 2012 UTC (2 years, 9 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/wxmaxima/wxmaxima-11.04.0.ebuild,v 1.1 2011/06/09 22:53:39 bicatali Exp $
4
5 WX_GTK_VER="2.8"
6 EAPI=4
7 inherit wxwidgets fdo-mime
8
9 MYP=wxMaxima-${PV}
10
11 DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit."
12 HOMEPAGE="http://wxmaxima.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~x86"
18 IUSE="unicode"
19
20 DEPEND="dev-libs/libxml2:2
21 x11-libs/wxGTK:2.8"
22 RDEPEND="${DEPEND}
23 media-fonts/jsmath
24 sci-visualization/gnuplot[wxwidgets]
25 sci-mathematics/maxima"
26
27 S="${WORKDIR}/${MYP}"
28
29 src_prepare() {
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
39 src_configure() {
40 econf \
41 --enable-dnd \
42 --enable-printing \
43 --with-wx-config=${WX_CONFIG} \
44 $(use_enable unicode unicode-glyphs)
45 }
46
47 src_install () {
48 default
49 doicon data/wxmaxima.png
50 make_desktop_entry wxmaxima wxMaxima wxmaxima
51 dodir /usr/share/doc/${PF}
52 dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README
53 }
54
55 pkg_postinst() {
56 fdo-mime_desktop_database_update
57 }
58
59 pkg_postrm() {
60 fdo-mime_desktop_database_update
61 }

  ViewVC Help
Powered by ViewVC 1.1.20