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

Contents of /sci-mathematics/wxmaxima/wxmaxima-0.8.3a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 26 16:36:36 2010 UTC (4 years ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Bump

(Portage version: 2.2_rc86/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/wxmaxima/wxmaxima-0.8.3a.ebuild,v 1.1 2009/11/12 18:14:00 bicatali Exp $
4
5 WX_GTK_VER="2.8"
6 EAPI="2"
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
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 || die "sed failed"
36 }
37
38 src_configure() {
39 econf \
40 --enable-dnd \
41 --enable-printing \
42 --with-wx-config=${WX_CONFIG} \
43 $(use_enable unicode unicode-glyphs)
44 }
45
46 src_install () {
47 emake DESTDIR="${D}" install || die "emake install failed"
48 doicon data/wxmaxima.png
49 make_desktop_entry wxmaxima wxMaxima wxmaxima
50 dodir /usr/share/doc/${PF}
51 dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README
52 dodoc AUTHORS
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