Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=570f2bf27b6c3e6dc62645966f65808fdacabdf1

commit 570f2bf27b6c3e6dc62645966f65808fdacabdf1
Author: Elentir <elen...@mailoo.org>
Date:   Wed Dec 23 17:22:32 2009 +0100

mathgl-1.9-3-i686

* fix python deps

diff --git a/source/xlib-extra/mathgl/FrugalBuild 
b/source/xlib-extra/mathgl/FrugalBuild
index 44ea232..cbf4851 100644
--- a/source/xlib-extra/mathgl/FrugalBuild
+++ b/source/xlib-extra/mathgl/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=mathgl
pkgver=1.9
-pkgrel=2
+pkgrel=3
pkgdesc="A library for making high-quality scientific graphics, fast data 
plotting and handling of large data arrays"
archs=('i686' 'x86_64')
depends=('gsl' 'libjpeg' 'libgif' 'libpng' 'libgomp' 'libgl' 'hdf5')
@@ -22,7 +22,7 @@ sha1sums=('79c733a50c235c14ba089ef5583985b83383114f' \
subpkgs=('mathgl-qt' 'mathgl-fltk' 'mathgl-glut' 'mathgl-python' 
'mathgl-octave')
subdescs=('QT interface for Mathgl library' 'FLTK interface for Mathgl library' 
'GLUT interface for Mathgl library'  \
'Python interface for Mathgl library' 'Octave interface for Mathgl library')
-subdepends=('libqtgui' 'fltk' 'freeglut' 'python>=2.6 python-numeric' 'octave')
+subdepends=('libqtgui' 'fltk' 'freeglut' 'numpy' 'octave')
subrodepends=('mathgl' 'mathgl' 'mathgl' 'mathgl' 'mathgl')
subgroups=('xlib-extra' 'xlib-extra' 'xlib-extra' 'xlib-extra' 'xlib-extra')
subarchs=('i686 x86_64' 'i686 x86_64' 'i686 x86_64' 'i686 x86_64' 'i686 x86_64')
@@ -30,24 +30,26 @@ subinstall=("" "" "" "" "mgloctave.install")


build() {
-       # fix a mislocation of arrayobject.h
-       Fsed "numpy/arrayobject.h" "Numeric/arrayobject.h" lang/numpy.i
+       # find numpy headers location
+       NUMPY_HEADER=`python -c "import numpy;print numpy.get_include();"` || 
Fdie
Fconf
+       # fix a mislocation of arrayobject.h
+       Fsed "PYTHON_HEADERS = -I/usr/include/python2.6" "PYTHON_HEADERS = 
-I/usr/include/python2.6 -I${NUMPY_HEADER}" lang/Makefile
# use v16 symbols for hdf5 library
-       Fsed "DEFS = -DHAVE_CONFIG_H" "DEFS = -DHAVE_CONFIG_H -DH5_USE_16_API" 
mgl/Makefile
+       Fsed "DEFS = -DHAVE_CONFIG_H" "DEFS = -DHAVE_CONFIG_H -DH5_USE_16_API" 
mgl/Makefile
Fmakeinstall
# Qt interface
Fsplit mathgl-qt usr/bin/mgl_qt_example
Fsplit mathgl-qt usr/lib/libmgl-qt.*
# Fltk interface
Fsplit mathgl-fltk usr/lib/libmgl-fltk.*
-       Fsplit mathgl-fltk usr/bin/mgl_fltk_example
+       Fsplit mathgl-fltk usr/bin/mgl_fltk_example
Fsplit mathgl-fltk usr/bin/mglview
# Glut interface
Fsplit mathgl-glut usr/bin/mgl_glut_example
Fsplit mathgl-glut usr/lib/libmgl-glut.*
# Python interface
-       Fsplit mathgl-python usr/lib/python2.6
+       Fsplit mathgl-python usr/lib/python*
#  Octave interface
Fsplit mathgl-octave usr/share/mathgl/octave
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to