# ChangeLog for media-gfx/labplot
-# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/labplot/ChangeLog,v 1.3 2004/12/28 20:29:12 ribosome Exp $
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/labplot/ChangeLog,v 1.4 2005/01/05 14:44:59 phosphan Exp $
+
+*labplot-1.4.0 (05 Jan 2005)
+
+ 05 Jan 2005; Patrick Kursawe <phosphan@gentoo.org> +files/getversion.patch,
+ +labplot-1.4.0.ebuild:
+ Version bump. Using USE flags for cdf and netcdf now. Added a patch for the
+ cdf version string (referred to a header that isn't installed by default).
+ Depending on fftw3 now to avoid potential trouble when fftw3 is used and
+ de-installed (which would not break the old dependency).
28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> labplot-1.3.0.ebuild:
Dependency update: dev-libs/gsl -> sci-libs/gsl.
-MD5 9f7394b0239b0f5cff831d8da52ab834 ChangeLog 1571
-MD5 b70e71ea12ac099c6b901c3dbd8b67a9 labplot-1.3.0.ebuild 1085
+MD5 c29f2d9bf9c757e8b6a93a7f147b5766 labplot-1.4.0.ebuild 1607
+MD5 748a8b231bf5d0a9186881a422260f0c ChangeLog 1994
+MD5 b0a2bc6284b5a7b45c583448d979ddf7 labplot-1.3.0.ebuild 1085
MD5 201497e376059503f8b7afd504d41023 metadata.xml 179
MD5 b717f0448045aa171f74df43edcf4409 files/digest-labplot-1.3.0 66
+MD5 0e5477ba8d6a62e6a2dde93c7e12cef6 files/digest-labplot-1.4.0 66
+MD5 1db5faa2d87be7b123c3ffdecd45ddec files/getversion.patch 945
MD5 56ca5a2584d30cb2ec78d04714df475a files/labplot-1.3.0-amd64.patch 855
--- /dev/null
+MD5 479e417cad0b9b7bbbffeb1c505074ac LabPlot-1.4.0.tar.gz 7928234
--- /dev/null
+--- src/LabPlotDialog.cc 2004-10-28 23:18:53.000000000 +0200
++++ ../LabPlot-1.4.0-new/src/LabPlotDialog.cc 2005-01-05 14:04:35.017794811 +0100
+@@ -21,7 +21,7 @@
+ #endif
+
+ #ifdef HAVE_FFTW
+-#include <fftw-config.h>
++#include <fftw.h>
+ #endif
+
+ #ifdef HAVE_MAGICK
+@@ -33,10 +33,6 @@
+ #include <qsaglobal.h>
+ #endif
+
+-#ifdef HAVE_CDF
+-#include <cdfrev.h>
+-#endif
+-
+ LabPlotDialog::LabPlotDialog(const char *name)
+ : Dialog(0, name)
+ {
+@@ -82,7 +78,7 @@
+ #ifdef HAVE_FFTW3
+ s="not used";
+ #elif HAVE_FFTW
+- s=FFTW_VERSION;
++ s=fftw_version;
+ #endif
+ tmp = new QLabel(s,hb);
+ tmp->setAlignment(Qt::AlignRight);
+@@ -132,8 +128,7 @@
+ new QLabel(i18n("Common Data Form library (CDF) : "),hb);
+ s = "no";
+ #ifdef HAVE_CDF
+- s = QString::number(CDF_LIBRARY_VERSION)+'.'+QString::number(CDF_LIBRARY_RELEASE)+'.'+
+- QString::number(CDF_LIBRARY_INCREMENT);
++ s = CDF_VERSION;
+ #endif
+ tmp = new QLabel(s,hb);
+ tmp->setAlignment(Qt::AlignRight);
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/labplot/labplot-1.3.0.ebuild,v 1.3 2004/12/29 02:40:19 ribosome Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/labplot/labplot-1.3.0.ebuild,v 1.4 2005/01/05 14:44:59 phosphan Exp $
inherit eutils gnuconfig kde
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/labplot/labplot-1.4.0.ebuild,v 1.1 2005/01/05 14:44:59 phosphan Exp $
+
+inherit eutils gnuconfig kde
+
+MPN="LabPlot"
+
+DESCRIPTION="KDE application for plotting and analysis of 2d and 3d functions and data"
+HOMEPAGE="http://labplot.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MPN}-${PV}.tar.gz"
+LICENSE="GPL-2"
+
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+IUSE="arts fftw imagemagick tiff audiofile cdf netcdf"
+
+MAKEOPTS="${MAKEOPTS} -j1"
+
+DEPEND=">=sci-libs/gsl-1.3
+ fftw? ( >=sci-libs/fftw-3 )
+ imagemagick? ( >=media-gfx/imagemagick-5.5.6-r1 )
+ x86? ( >=media-gfx/pstoedit-3.33 )
+ audiofile? ( media-libs/audiofile )
+ tiff? ( >=media-libs/tiff-3.5.5 )
+ >=media-libs/jasper-1.700.5-r1
+ netcdf? ( sci-libs/netcdf )
+ !amd64? ( cdf? ( sci-libs/cdf ) )
+ >=sys-apps/sed-4"
+
+need-kde 3.1
+
+S="${WORKDIR}/${MPN}-${PV}"
+
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/getversion.patch
+ local cdfversion=\"$(cdfinquire -id | grep "CDF dist" | \
+ cut -f 2 -d "V" | tr -d " \n")\"
+ sed -e "s~CDF_VERSION~${cdfversion}~" -i src/LabPlotDialog.cc || \
+ die "sed failed on CDF_VERSION"
+}
+
+src_compile() {
+ local myconf
+ if use amd64; then
+ myconf="$(use_enable cdf)"
+ else
+ myconf="--disable-cdf"
+ fi
+
+ local myconf="${myconf} \
+ --disable-fftw \
+ $(use_enable fftw fftw3) \
+ $(use_enable imagemagick ImageMagick) \
+ $(use_enable audiofile) \
+ $(use_with arts) \
+ $(use_enable tiff) \
+ $(use_enable netcdf)"
+ gnuconfig_update
+ kde_src_compile
+}
+