blob: 00a2bc3b71bebf1017e022b75ca6eaea4b711c50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/extrema/extrema-4.4.5.ebuild,v 1.2 2011/06/18 12:16:03 grozin Exp $
EAPI=2
WX_GTK_VER="2.8"
inherit eutils fdo-mime wxwidgets
DESCRIPTION="Interactive data analysis and visualization tool"
HOMEPAGE="http://exsitewebware.com/extrema/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
# File collision, see bug #249423
RDEPEND="!sci-chemistry/psi
x11-libs/wxGTK:2.8[X]
dev-util/desktop-file-utils"
DEPEND="${RDEPEND}"
src_prepare() {
sed -i \
-e 's/$(pkgdatadir)/$(DESTDIR)$(pkgdatadir)/g' \
src/Makefile.in || die
epatch "${FILESDIR}"/${P}-gcc46.patch
}
src_configure() {
# extrema cannot be compiled with versions of minuit
# available in portage
econf --enable-shared
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
make_desktop_entry ${PN}
dodir /usr/share/icons/hicolor
tar xjf extrema_icons.tar.bz2 -C "${D}usr/share/icons/hicolor"
dosym /usr/share/icons/hicolor/48x48/apps/extrema.png /usr/share/pixmaps/extrema.png
dodoc AUTHORS ChangeLog || die "dodoc failed"
if use doc; then
insinto /usr/share/doc/${PF}
doins doc/*.pdf || die
fi
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins Scripts/*.pcm Scripts/*.dat || die
fi
}
pkg_postinst() {
fdo-mime_desktop_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
}
|