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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Aug 1 12:13:34 2009 UTC (5 years, 4 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.7.6.ebuild,v 1.2 2008/10/12 11:06:08 markusle Exp $
4
5 WX_GTK_VER="2.8"
6 EAPI="2"
7 inherit eutils 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 -i \
31 -e "s:${datadir}/wxMaxima:${datadir}/${PN}:g" \
32 Makefile.in data/Makefile.in || die "sed failed"
33
34 sed -i \
35 -e 's:share/wxMaxima:share/wxmaxima:g' \
36 src/wxMaxima.cpp || 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 emake DESTDIR="${D}" install || die "emake install failed"
49 doicon 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 dodoc AUTHORS
54 }
55
56 pkg_postinst() {
57 fdo-mime_desktop_database_update
58 }
59
60 pkg_postrm() {
61 fdo-mime_desktop_database_update
62 }

  ViewVC Help
Powered by ViewVC 1.1.20