[arch-commits] Commit in labplot/trunk (PKGBUILD define-missing-constant.patch)

Eric Bélanger eric at archlinux.org
Thu Jan 21 23:37:57 EST 2010


    Date: Thursday, January 21, 2010 @ 23:37:56
  Author: eric
Revision: 64756

upgpkg: labplot 1.6.0.2-5
    Rebuilt for libpng 1.4 and libjpeg 8

Added:
  labplot/trunk/define-missing-constant.patch
Modified:
  labplot/trunk/PKGBUILD

-------------------------------+
 PKGBUILD                      |    9 +++++----
 define-missing-constant.patch |   15 +++++++++++++++
 2 files changed, 20 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-01-22 04:16:47 UTC (rev 64755)
+++ PKGBUILD	2010-01-22 04:37:56 UTC (rev 64756)
@@ -5,7 +5,7 @@
 
 pkgname=labplot
 pkgver=1.6.0.2
-pkgrel=4
+pkgrel=5
 pkgdesc="Plotting, Data analysis and visualisation"
 arch=('i686' 'x86_64')
 url="http://staff.mbi-berlin.de/gerlach/Linux/LabPlot/"
@@ -14,13 +14,14 @@
 	'fftw>=3.2.1' 'netcdf>=3.6.2')
 makedepends=('libxml++>=2.26' 'audiofile')
 options=('!libtool' '!makeflags')
-source=(http://downloads.sourceforge.net/$pkgname/LabPlot-$pkgver.tar.gz)
+source=(http://downloads.sourceforge.net/$pkgname/LabPlot-$pkgver.tar.gz define-missing-constant.patch)
+md5sums=('850256dcd02c4a8ede5b5fe3fbc21ab7' 'e8133bb7b8da63f4ae5a0b998c37b702')
+sha1sums=('2df566fa440f1afa53043c8bd8d0f84df8264b87' '0a931f2646cf8ea05c3bb85ed0bcee09cc721f42')
 # http://staff.mbi-berlin.de/gerlach/Linux/LabPlot/src/$origname-$pkgver.tar.gz)
-md5sums=('850256dcd02c4a8ede5b5fe3fbc21ab7')
 
 build() {
  cd $srcdir/LabPlot-${pkgver}
-
+ patch -p1 < ../define-missing-constant.patch || return 1
  # source kde3 variables
  source /etc/profile.d/kde3.sh
 

Added: define-missing-constant.patch
===================================================================
--- define-missing-constant.patch	                        (rev 0)
+++ define-missing-constant.patch	2010-01-22 04:37:56 UTC (rev 64756)
@@ -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 <R.h>
+ #include <Rmath.h>



More information about the arch-commits mailing list