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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Apr 19 22:09:22 2009 UTC (5 years, 5 months ago) by grozin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Version bump
(Portage version: 2.2_rc30/cvs/Linux i686)

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.3a.ebuild,v 1.7 2008/02/26 17:34:25 bicatali Exp $
4
5 WX_GTK_VER="2.6"
6 inherit eutils autotools 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.6*"
21 RDEPEND="${DEPEND}
22 >=sci-mathematics/maxima-5.13.0"
23
24 S="${WORKDIR}/${MYP}"
25
26 pkg_setup() {
27 if use unicode; then
28 need-wxwidgets unicode
29 else
30 need-wxwidgets ansi
31 fi
32 }
33
34 src_compile () {
35
36 # consistent package names
37 sed -i \
38 -e "s:${datadir}/wxMaxima:${datadir}/${PN}:g" \
39 Makefile.in data/Makefile.in || die "sed failed"
40
41 sed -i \
42 -e 's:share/wxMaxima:share/wxmaxima:g' \
43 src/wxMaxima.cpp || die "sed failed"
44
45 econf \
46 --enable-dnd \
47 --enable-printing \
48 --with-wx-config=${WX_CONFIG} \
49 $(use_unicode unicode-glyphs) \
50 || die "econf failed"
51
52 emake || die "emake failed"
53 }
54
55 src_install () {
56 emake DESTDIR="${D}" install || die "emake install failed"
57 newicon maxima-new.png wxmaxima.png
58 make_desktop_entry wxmaxima wxMaxima wxmaxima
59 dodir /usr/share/doc/${PF}
60 dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README
61 dodoc AUTHORS
62 }
63
64 pkg_postinst() {
65 fdo-mime_desktop_database_update
66 }
67
68 pkg_postrm() {
69 fdo-mime_desktop_database_update
70 }

  ViewVC Help
Powered by ViewVC 1.1.20