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