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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Sep 16 15:57:30 2012 UTC (6 years, 2 months ago) by grozin
Branch: MAIN
Version bump, closing #435096

(Portage version: 2.2.0_alpha128/cvs/Linux i686)

1 grozin 1.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-12.04.0.ebuild,v 1.1 2012/06/06 21:44:02 bicatali Exp $
4    
5     EAPI=4
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="dev-libs/libxml2:2
21     x11-libs/wxGTK:2.8"
22     RDEPEND="${DEPEND}
23     media-fonts/jsmath
24     sci-visualization/gnuplot[wxwidgets]
25     sci-mathematics/maxima"
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 src/Config.cpp \
36     || die "sed failed"
37     }
38    
39     src_configure() {
40     econf \
41     --enable-dnd \
42     --enable-printing \
43     --with-wx-config=${WX_CONFIG} \
44     $(use_enable unicode unicode-glyphs)
45     }
46    
47     src_install () {
48     default
49     doicon data/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     }
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