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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon May 21 20:00:05 2012 UTC (2 years, 6 months ago) by ssuominen
Branch: MAIN
Changes since 1.7: +2 -2 lines
inherit eutils for make_desktop_entry

(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20