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

commit 21aeebf381f50c1a112ea788cc743dd09cfa0ffb
Author: Elentir <elen...@mailoo.org>
Date:   Tue Dec 22 21:23:19 2009 +0100

mathgl-1.9-2-i686

* fix depends
* add hdf5 and gif support
* enable python and octave interfaces and associated subpkgs

diff --git a/source/xlib-extra/mathgl/FrugalBuild 
b/source/xlib-extra/mathgl/FrugalBuild
index 473efe3..44ea232 100644
--- a/source/xlib-extra/mathgl/FrugalBuild
+++ b/source/xlib-extra/mathgl/FrugalBuild
@@ -1,38 +1,55 @@
-# Compiling Time: 0.61 SBU
+# Compiling Time: 2.08 SBU
# Maintainer: Elentir <elen...@mailoo.org>

pkgname=mathgl
pkgver=1.9
-pkgrel=1
+pkgrel=2
pkgdesc="A library for making high-quality scientific graphics, fast data 
plotting and handling of large data arrays"
archs=('i686' 'x86_64')
-depends=('fltk' 'gsl' 'libjpeg' 'libtiff' 'libgomp' 'libgl')
-makedepends=('python' )
+depends=('gsl' 'libjpeg' 'libgif' 'libpng' 'libgomp' 'libgl' 'hdf5')
+makedepends=('swig')
groups=('xlib-extra')
_F_sourceforge_dirname=$pkgname
_F_sourceforge_ext=".tgz"
# 1.9.0.1version is a windows release and is broken on linux
_F_archive_grepv="1.9.0.1"
Finclude sourceforge
-Fconfopts="$Fconfopts --enable-fltk --enable-glut --enable-qt --enable-jpeg 
--enable-tiff"
-sha1sums=('79c733a50c235c14ba089ef5583985b83383114f')
+source=($source mgloctave.install)
+Fconfopts="$Fconfopts --enable-fltk --enable-glut --enable-qt --enable-jpeg 
--enable-gif --enable-hdf5 --enable-python --enable-octave"
+sha1sums=('79c733a50c235c14ba089ef5583985b83383114f' \
+          '9c9d3b6b62fb8f0dd0e33639d9ad3d160820547e')
+
+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')
+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')
+subinstall=("" "" "" "" "mgloctave.install")

-subpkgs=('mathgl-qt' 'mathgl-fltk' 'mathgl-glut')
-subdescs=('QT interface for Mathgl library' 'FLTK interface for Mathgl 
library' 'GLUT interface for Mathgl library')
-subdepends=('libqtgui' 'fltk' 'freeglut')
-subrodepends=('mathgl' 'mathgl' 'mathgl')
-subgroups=('xlib-extra' 'xlib-extra' 'xlib-extra')
-subarchs=('i686 x86_64' 'i686 x86_64' 'i686 x86_64')

build() {
-       Fbuild
+       # fix a mislocation of arrayobject.h
+       Fsed "numpy/arrayobject.h" "Numeric/arrayobject.h" lang/numpy.i
+       Fconf
+       # use v16 symbols for hdf5 library
+       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
+       #  Octave interface
+       Fsplit mathgl-octave usr/share/mathgl/octave
}

# optimization OK
diff --git a/source/xlib-extra/mathgl/mgloctave.install 
b/source/xlib-extra/mathgl/mgloctave.install
new file mode 100644
index 0000000..5bd0abf
--- /dev/null
+++ b/source/xlib-extra/mathgl/mgloctave.install
@@ -0,0 +1,18 @@
+post_install()
+{
+       octave -q -H --no-site-file --eval "pkg install -global 
/usr/share/mathgl/octave/mathgl.tar.gz;"
+}
+
+post_upgrade()
+{
+       post_install
+}
+
+post_remove()
+{
+       octave -q -H --no-site-file --eval "pkg uninstall mathgl;"
+}
+
+op=$1
+shift
+$op $*
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to