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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Sep 26 16:36:36 2010 UTC (4 years ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +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.7.4.ebuild,v 1.8 2009/11/12 18:14:00 bicatali Exp $
4
5 WX_GTK_VER="2.8"
6 inherit eutils wxwidgets fdo-mime
7
8 MYP=wxMaxima-${PV}
9
10 DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit."
11 HOMEPAGE="http://wxmaxima.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 ppc x86"
17 IUSE="unicode"
18
19 DEPEND=">=dev-libs/libxml2-2.5.0
20 >=x11-libs/wxGTK-2.8.7"
21 RDEPEND="${DEPEND}
22 >=sci-mathematics/maxima-5.14.0"
23
24 S="${WORKDIR}/${MYP}"
25
26 src_compile () {
27
28 # consistent package names
29 sed -i \
30 -e "s:${datadir}/wxMaxima:${datadir}/${PN}:g" \
31 Makefile.in data/Makefile.in || die "sed failed"
32
33 sed -i \
34 -e 's:share/wxMaxima:share/wxmaxima:g' \
35 src/wxMaxima.cpp || die "sed failed"
36
37 econf \
38 --enable-dnd \
39 --enable-printing \
40 --with-wx-config=${WX_CONFIG} \
41 $(use_enable unicode unicode-glyphs) \
42 || die "econf failed"
43
44 emake || die "emake failed"
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