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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 1 12:13:34 2009 UTC (4 years, 8 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Changed wxwindows to wxwidgets use flag
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2008 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.1.ebuild,v 1.1 2008/12/20 10:20:02 grozin 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-2.5.0
21 x11-libs/wxGTK:2.8"
22 RDEPEND="${DEPEND}
23 sci-visualization/gnuplot[wxwindows]
24 >=sci-mathematics/maxima-5.15.0"
25
26 S="${WORKDIR}/${MYP}"
27
28 src_prepare() {
29 # consistent package names
30 sed -e "s:${datadir}/wxMaxima:${datadir}/${PN}:g" \
31 -i Makefile.in data/Makefile.in || die "sed failed"
32
33 sed -e 's:share/wxMaxima:share/wxmaxima:g' \
34 -i src/wxMaxima.cpp src/wxMaximaFrame.cpp || die "sed failed"
35 }
36
37 src_configure() {
38 econf \
39 --enable-dnd \
40 --enable-printing \
41 --with-wx-config=${WX_CONFIG} \
42 $(use_enable unicode unicode-glyphs)
43 }
44
45 src_install () {
46 emake DESTDIR="${D}" install || die "emake install failed"
47 doicon data/wxmaxima.png
48 make_desktop_entry wxmaxima wxMaxima wxmaxima
49 dodir /usr/share/doc/${PF}
50 dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README
51 dodoc AUTHORS
52 }
53
54 pkg_postinst() {
55 fdo-mime_desktop_database_update
56 }
57
58 pkg_postrm() {
59 fdo-mime_desktop_database_update
60 }

  ViewVC Help
Powered by ViewVC 1.1.20