blob: 377a7ddd3d80878326d06d7c3800b119cad94018 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/fityk/fityk-0.8.6.ebuild,v 1.3 2008/08/22 18:06:19 bicatali Exp $
EAPI="1"
WX_GTK_VER="2.8"
inherit eutils autotools wxwidgets flag-o-matic
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 readline wxwindows"
CDEPEND="sci-libs/xylib
readline? ( sys-libs/readline )
wxwindows? ( x11-libs/wxGTK:2.8 )"
DEPEND="${CDEPEND}"
# removing temporarly external boost (see bug #231177)
# dev-libs/boost"
RDEPEND="${CDEPEND}
gnuplot? ( sci-visualization/gnuplot )"
src_unpack() {
unpack ${A}
cd "${S}"
# avoid building xylib when 3rdparty is disabled
epatch "${FILESDIR}"/${P}-3rdparty.patch
eautoreconf
}
src_compile() {
# temporary, see above
append-cppflags -I../3rdparty
econf \
--disable-3rdparty \
$(use_enable wxwindows GUI) \
$(use_with doc) \
$(use_with readline) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc NEWS README TODO || die
rm -f samples/Makefile*
insinto /usr/share/doc/${PF}
use examples && doins -r samples
}
|