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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Apr 19 22:09:22 2009 UTC (5 years ago) by grozin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +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.5.ebuild,v 1.4 2008/11/26 21:13:57 dirtyepic Exp $
4
5 WX_GTK_VER="2.8"
6 EAPI="1"
7 inherit eutils autotools 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
24 >=sci-mathematics/maxima-5.15.0"
25
26 S="${WORKDIR}/${MYP}"
27
28 pkg_setup() {
29 if ! built_with_use sci-visualization/gnuplot wxwindows; then
30 elog "To benefit full plotting capability of wxmaxima,"
31 elog "enable the wxwindows USE flag for sci-visualization/gnuplot"
32 epause 5
33 fi
34 wxwidgets_pkg_setup
35 }
36
37 src_compile () {
38
39 # consistent package names
40 sed -i \
41 -e "s:${datadir}/wxMaxima:${datadir}/${PN}:g" \
42 Makefile.in data/Makefile.in || die "sed failed"
43
44 sed -i \
45 -e 's:share/wxMaxima:share/wxmaxima:g' \
46 src/wxMaxima.cpp || die "sed failed"
47
48 econf \
49 --enable-dnd \
50 --enable-printing \
51 --with-wx-config=${WX_CONFIG} \
52 $(use_enable unicode unicode-glyphs) \
53 || die "econf failed"
54
55 emake || die "emake failed"
56 }
57
58 src_install () {
59 emake DESTDIR="${D}" install || die "emake install failed"
60 doicon wxmaxima.png
61 make_desktop_entry wxmaxima wxMaxima wxmaxima
62 dodir /usr/share/doc/${PF}
63 dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README
64 dodoc AUTHORS
65 }
66
67 pkg_postinst() {
68 fdo-mime_desktop_database_update
69 }
70
71 pkg_postrm() {
72 fdo-mime_desktop_database_update
73 }

  ViewVC Help
Powered by ViewVC 1.1.20