blob: 605f00bc7455b3407725556437106e2b303187ce (
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
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/labplot/labplot-1.5.0.5.ebuild,v 1.1 2006/01/29 20:01:29 cryos Exp $
inherit eutils gnuconfig kde
MY_P="LabPlot-${PV/_/.}"
S="${WORKDIR}/${MY_P%.?}"
DESCRIPTION="KDE application for plotting and analysis of 2d and 3d functions and data"
HOMEPAGE="http://labplot.sourceforge.net/"
SRC_URI="mirror://sourceforge/labplot/${MY_P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
SLOT="0"
IUSE="audiofile cdf fftw imagemagick jpeg2k kexi opengl tiff"
DEPEND=">=media-gfx/pstoedit-3.33
>=sci-libs/gsl-1.4
sci-libs/netcdf
virtual/ghostscript
>=x11-libs/qwtplot3d-0.2.6-r2
audiofile? ( media-libs/audiofile )
fftw? ( >=sci-libs/fftw-3 )
imagemagick? ( >=media-gfx/imagemagick-5.5.6-r1 )
jpeg2k? ( >=media-libs/jasper-1.700.5-r1 )
tiff? ( >=media-libs/tiff-3.5.5 )
opengl? ( virtual/opengl )
kexi? ( || ( app-office/kexi app-office/koffice ) )
!amd64? ( cdf? ( sci-libs/cdf ) )"
need-kde 3.1
src_unpack() {
kde_src_unpack
sed -e "s:QWT3D_PATH/include:QWT3D_PATH/include/qwtplot3d:" \
-e "s:KEXIDB_DIR/include:KEXIDB_DIR/include/kexidb:" \
-i configure
# let's make sure we don't use included libs
echo "# Using shared libs!" >| netcdf/netcdf.h
echo "# Using shared libs!" >| qwtplot3d/qwt3d_plot.h
}
src_compile() {
export QTDIR="${ROOT}/usr/qt/3"
export QWT3D_PATH="${ROOT}/usr"
export KEXIDB_DIR="${ROOT}/usr"
# texvc not in Portage and I'm not keen maintaining it
# qsa ebuilds in bad shape atm.
local myconf="--disable-fftw --enable-gsl --enable-ps2eps \
--disable-texvc --disable-ocaml --enable-netcdf \
--enable-system-qwtplot3d --disable-qsa"
if use amd64; then
myconf="${myconf} --disable-cdf"
else
myconf="${myconf} $(use_enable cdf)"
fi
local myconf="${myconf} \
$(use_enable fftw fftw3) \
$(use_enable imagemagick ImageMagick) \
$(use_enable audiofile) \
$(use_enable jpeg2k jasper) \
$(use_enable tiff) \
$(use_enable kexi KexiDB) \
$(use_enable opengl)"
gnuconfig_update
kde_src_compile
}
|