blob: f320057db690798399a94b6303994aa158a6569d (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/fityk/fityk-0.9.0.ebuild,v 1.1 2010/01/06 03:15:22 bicatali Exp $
EAPI=2
WX_GTK_VER="2.8"
inherit eutils wxwidgets
DESCRIPTION="General-purpose nonlinear curve fitting and data analysis"
HOMEPAGE="http://www.unipress.waw.pl/fityk/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples gnuplot lua python readline wxwidgets"
CDEPEND=">=sci-libs/xylib-0.5
lua? ( dev-lang/lua )
python? ( dev-lang/python )
readline? ( sys-libs/readline )
wxwidgets? ( x11-libs/wxGTK:2.8 )"
DEPEND="${CDEPEND}
dev-libs/boost
>=sys-devel/libtool-2.2"
RDEPEND="${CDEPEND}
gnuplot? ( sci-visualization/gnuplot )"
src_prepare() {
has_version "<dev-libs/boost-1.37" && \
sed -i -e 's:impl/directives.hpp:directives.ipp:g' \
"${S}/src/optional_suffix.h"
}
src_configure() {
econf \
--docdir="/usr/share/doc/${PF}" \
--disable-3rdparty \
--disable-xyconvert \
--without-xylib \
$(use_enable lua) \
$(use_enable python) \
$(use_enable wxwidgets GUI) \
$(use_with doc) \
$(use_with examples samples) \
$(use_with readline)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
rm -f "${D}"usr/lib*/python*/site-packages/*.la
dodoc NEWS README TODO
}
|