From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/labplot/PKGBUILD | 40 ++++++++++++++++++++ extra/labplot/define-missing-constant.patch | 15 ++++++++ extra/labplot/hdf5-1.8.patch | 58 +++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 extra/labplot/PKGBUILD create mode 100644 extra/labplot/define-missing-constant.patch create mode 100644 extra/labplot/hdf5-1.8.patch (limited to 'extra/labplot') diff --git a/extra/labplot/PKGBUILD b/extra/labplot/PKGBUILD new file mode 100644 index 000000000..23d3db293 --- /dev/null +++ b/extra/labplot/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 69056 2010-02-16 15:06:54Z ronald $ +# Maintainer: Ronald van Haren +# Contributor: damir +# Contributor: Tobias Powalowski + +pkgname=labplot +pkgver=1.6.0.2 +pkgrel=6 +pkgdesc="Plotting, Data analysis and visualisation" +arch=('i686' 'x86_64') +url="http://staff.mbi-berlin.de/gerlach/Linux/LabPlot/" +license=("GPL") +depends=('kdelibs3' 'gsl' 'imagemagick' \ + 'fftw' 'netcdf>=4.1') +makedepends=('libxml++>=2.26' 'audiofile') +options=('!libtool' '!makeflags') +source=(http://downloads.sourceforge.net/$pkgname/LabPlot-$pkgver.tar.gz define-missing-constant.patch + 'hdf5-1.8.patch') + +md5sums=('850256dcd02c4a8ede5b5fe3fbc21ab7' 'e8133bb7b8da63f4ae5a0b998c37b702' + '1d38c7304a53b238f8cecb337771ed6f') + + +build() { + cd $srcdir/LabPlot-${pkgver} + patch -p1 < ../define-missing-constant.patch || return 1 + patch -Np0 -i ${srcdir}/hdf5-1.8.patch || return 1 + + # source kde3 variables + source /etc/profile.d/kde3.sh + + # build and install + ./configure --prefix=/opt/kde --enable-mt \ + --without-arts --disable-audiofile \ + --mandir=/opt/kde/share/man + --disable-KexiDB + make || return 1 + make DESTDIR=${pkgdir} install || return 1 +} + diff --git a/extra/labplot/define-missing-constant.patch b/extra/labplot/define-missing-constant.patch new file mode 100644 index 000000000..f61211279 --- /dev/null +++ b/extra/labplot/define-missing-constant.patch @@ -0,0 +1,15 @@ +diff --git a/src/constants.h b/src/constants.h +index 77d76bf..1bada49 100644 +--- a/src/constants.h ++++ b/src/constants.h +@@ -17,6 +17,10 @@ + #endif + #endif + ++#ifndef GSL_CONST_CGSM_GAUSS ++#define GSL_CONST_CGSM_GAUSS (1e0) /* g / abamp s^2 */ ++#endif ++ + #ifdef HAVE_R + #include + #include diff --git a/extra/labplot/hdf5-1.8.patch b/extra/labplot/hdf5-1.8.patch new file mode 100644 index 000000000..8d9780bb4 --- /dev/null +++ b/extra/labplot/hdf5-1.8.patch @@ -0,0 +1,58 @@ +--- src.orig/FilterHDF5.cc 2009-10-15 17:33:15.736674721 +0200 ++++ src/FilterHDF5.cc 2009-10-15 17:23:51.386155522 +0200 +@@ -76,7 +76,7 @@ + printf(" GROUP \"%s\" \n", name); + numgroups++; + +- hid_t group = H5Gopen(loc_id, name); ++ hid_t group = H5Gopen(loc_id, name, H5P_DEFAULT); + + int nrattr = H5Aget_num_attrs(group); + printf(" GROUP has %d attributes\n",nrattr); +@@ -129,7 +129,7 @@ + printf(" DATASET \"%s\"\n", name); + + hid_t dataset; +- dataset = H5Dopen(loc_id, name); ++ dataset = H5Dopen(loc_id, name, H5P_DEFAULT); + + numsets++; + data.resize(numsets); +@@ -260,7 +260,7 @@ + + int *matrix = new int[DY]; + hsize_t tdims[] = {1}; +- hid_t s4_tid = H5Tarray_create(H5T_NATIVE_INT,1,tdims,NULL); ++ hid_t s4_tid = H5Tarray_create(H5T_NATIVE_INT,1,tdims); + hid_t s3_tid = H5Tcreate(H5T_COMPOUND, sizeof(s4_tid)); + status = H5Tinsert(s3_tid, H5Tget_member_name (datatype,j), 0, s4_tid); + +@@ -279,7 +279,7 @@ + + float *matrix = new float[DY]; + hsize_t tdims[] = {1}; +- hid_t s4_tid = H5Tarray_create(H5T_NATIVE_FLOAT,1,tdims,NULL); ++ hid_t s4_tid = H5Tarray_create(H5T_NATIVE_FLOAT,1,tdims); + hid_t s3_tid = H5Tcreate(H5T_COMPOUND, sizeof(s4_tid)); + status = H5Tinsert(s3_tid, H5Tget_member_name (datatype,j), 0, s4_tid); + +@@ -467,7 +467,7 @@ + hid_t file = H5Fopen(filename.latin1(), H5F_ACC_RDONLY, H5P_DEFAULT); + + printf(" ROOT GROUP :\n"); +- hid_t group = H5Gopen(file, "/"); ++ hid_t group = H5Gopen(file, "/", H5P_DEFAULT); + + int nrattr = H5Aget_num_attrs(group); + attributes.resize(nrattr); +@@ -567,7 +567,8 @@ + H5Tset_order(datatype, H5T_ORDER_BE); + break; + } +- hid_t dataset = H5Dcreate(file,s->Title().latin1(),type,dataspace,H5P_DEFAULT); ++ hid_t dataset = H5Dcreate(file,s->Title().latin1(),type,dataspace, ++ H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); + + hid_t status; + switch(datatype) { + -- cgit v1.2.3-54-g00ecf