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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Sep 13 14:14:16 2007 UTC (6 years, 9 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump. Removing wxmaxima-0.7.2 and closing bug #180252.
(Portage version: 2.1.2.12)

1 # Copyright 1999-2007 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.2.ebuild,v 1.2 2007/07/10 03:35:55 nerdboy Exp $
4
5 inherit eutils autotools wxwidgets fdo-mime
6
7 MYP=wxMaxima-${PV}
8
9 DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit."
10 HOMEPAGE="http://wxmaxima.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="unicode"
17 DEPEND=">=dev-libs/libxml2-2.5.0
18 >=x11-libs/wxGTK-2.6"
19 RDEPEND=">=sci-mathematics/maxima-5.11.0"
20
21 S=${WORKDIR}/${MYP}
22
23 src_compile () {
24 export WX_GTK_VER="2.6"
25 if use unicode; then
26 need-wxwidgets unicode
27 else
28 need-wxwidgets gtk2
29 fi
30
31 # consistent package names
32 sed -i \
33 -e 's:COPYING::' \
34 -e "s:${datadir}/wxMaxima:${datadir}/${PN}:g" \
35 Makefile.in data/Makefile.in || die "sed failed"
36
37 sed -i \
38 -e 's:share/wxMaxima:share/wxmaxima:g' \
39 src/wxMaxima.cpp || die "sed failed"
40
41 econf \
42 --enable-dnd \
43 --enable-printing \
44 --with-wx-config=${WX_CONFIG} \
45 $(use_unicode unicode-glyphs) \
46 || die "econf failed"
47
48 emake || die "emake failed"
49 }
50
51 src_install () {
52 emake DESTDIR="${D}" install || die "emake install failed"
53 newicon maxima-new.png wxmaxima.png
54 make_desktop_entry wxmaxima "wxMaxima ${PV}" wxmaxima \
55 "Science;Math;Education"
56
57 dosym ${PORTDIR}/licenses/${LICENSE} /usr/share/${PN}/COPYING
58 dodir /usr/share/doc/${PF}
59 dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README
60 }
61
62 pkg_postinst() {
63 fdo-mime_desktop_database_update
64 }
65
66 pkg_postrm() {
67 fdo-mime_desktop_database_update
68 }

  ViewVC Help
Powered by ViewVC 1.1.20