/[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.4 - (show annotations) (download)
Wed Apr 22 06:57:11 2015 UTC (5 years, 7 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2014 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.09.0.ebuild,v 1.3 2014/08/10 20:24:29 slyfox Exp $
4
5 EAPI=5
6
7 WX_GTK_VER="2.8"
8
9 inherit eutils gnome2-utils wxwidgets fdo-mime
10
11 MYP=wxMaxima-${PV}
12
13 DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit"
14 HOMEPAGE="http://wxmaxima.sourceforge.net/"
15 SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~ppc ~x86"
20
21 DEPEND="
22 dev-libs/libxml2:2
23 x11-libs/wxGTK:${WX_GTK_VER}"
24 RDEPEND="${DEPEND}
25 media-fonts/jsmath
26 sci-visualization/gnuplot[wxwidgets]
27 sci-mathematics/maxima"
28
29 S="${WORKDIR}/${MYP}"
30
31 src_prepare() {
32 local i
33
34 # consistent package names
35 sed -e "s:\${datadir}/wxMaxima:\${datadir}/${PN}:g" \
36 -i Makefile.in data/Makefile.in || die "sed failed"
37
38 sed -e 's:share/wxMaxima:share/wxmaxima:g' \
39 -i src/wxMaxima.cpp src/wxMaximaFrame.cpp src/Config.cpp \
40 || die "sed failed"
41
42 # correct gettext behavior
43 if [[ -n "${LINGUAS+x}" ]] ; then
44 for i in $(cd "${S}"/locales ; echo *.mo) ; do
45 if ! has ${i%.mo} ${LINGUAS} ; then
46 sed -i \
47 -e "/^WXMAXIMA_LINGUAS/s# ${i%.mo}##" \
48 -e "/^WXWIN_LINGUAS/s# ${i%.mo}##" \
49 locales/Makefile.in || die
50 fi
51 done
52 fi
53 }
54
55 src_configure() {
56 econf \
57 --enable-printing \
58 --with-wx-config=${WX_CONFIG}
59 }
60
61 src_install () {
62 default
63 doicon -s 128 data/wxmaxima.png
64 make_desktop_entry wxmaxima wxMaxima wxmaxima
65 dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README
66 }
67
68 pkg_preinst() {
69 gnome2_icon_savelist
70 }
71
72 pkg_postinst() {
73 gnome2_icon_cache_update
74 fdo-mime_desktop_database_update
75 }
76
77 pkg_postrm() {
78 gnome2_icon_cache_update
79 fdo-mime_desktop_database_update
80 }

  ViewVC Help
Powered by ViewVC 1.1.20