summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2010-03-08 18:13:36 +0000
committerAndrey Grozin <grozin@gentoo.org>2010-03-08 18:13:36 +0000
commit01fe3814cce8dbe438f224ea5594b5caaaeeaee0 (patch)
tree791563662cdf994833378afe7f1b470e5b4dd948 /sci-libs/mathgl
parentstable x86, security bug 301310 (diff)
downloadhistorical-01fe3814cce8dbe438f224ea5594b5caaaeeaee0.tar.gz
historical-01fe3814cce8dbe438f224ea5594b5caaaeeaee0.tar.bz2
historical-01fe3814cce8dbe438f224ea5594b5caaaeeaee0.zip
Version bump
Package-Manager: portage-2.2_rc66/cvs/Linux i686
Diffstat (limited to 'sci-libs/mathgl')
-rw-r--r--sci-libs/mathgl/ChangeLog9
-rw-r--r--sci-libs/mathgl/Manifest18
-rw-r--r--sci-libs/mathgl/files/mathgl-1.10.1-gcc43.patch (renamed from sci-libs/mathgl/files/mathgl-1.9.0.1-gcc43.patch)0
-rw-r--r--sci-libs/mathgl/files/mathgl-1.9.0.1-hdf5.patch55
-rw-r--r--sci-libs/mathgl/mathgl-1.10.1.ebuild112
5 files changed, 125 insertions, 69 deletions
diff --git a/sci-libs/mathgl/ChangeLog b/sci-libs/mathgl/ChangeLog
index 7844e0f730a0..87d77a4617c1 100644
--- a/sci-libs/mathgl/ChangeLog
+++ b/sci-libs/mathgl/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-libs/mathgl
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.12 2010/02/12 04:20:46 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.13 2010/03/08 18:13:35 grozin Exp $
+
+*mathgl-1.10.1 (09 Mar 2010)
+
+ 09 Mar 2010; Andrey Grozin <grozin@gentoo.org>
+ -files/mathgl-1.9.0.1-gcc43.patch, -files/mathgl-1.9.0.1-hdf5.patch,
+ +mathgl-1.10.1.ebuild, +files/mathgl-1.10.1-gcc43.patch:
+ Version bump
12 Feb 2010; SĂ©bastien Fabbro <bicatali@gentoo.org> mathgl-1.10.ebuild:
Removed mpi use flag in favor of checking if hdf5 was built with mpi, see
diff --git a/sci-libs/mathgl/Manifest b/sci-libs/mathgl/Manifest
index 4f5c4b7416ad..f854f0fe6885 100644
--- a/sci-libs/mathgl/Manifest
+++ b/sci-libs/mathgl/Manifest
@@ -1,17 +1,9 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX mathgl-1.10-gcc43.patch 345 RMD160 81d76baed06d779853dd96ce169f5bef620629b2 SHA1 e50c8e600cb243c809d3a6648344bbe29146666d SHA256 2165125d4677b882548530dc21a0368bf7ed27cab516ee6f78604f98b3b60ac9
-AUX mathgl-1.9.0.1-gcc43.patch 345 RMD160 81d76baed06d779853dd96ce169f5bef620629b2 SHA1 e50c8e600cb243c809d3a6648344bbe29146666d SHA256 2165125d4677b882548530dc21a0368bf7ed27cab516ee6f78604f98b3b60ac9
-AUX mathgl-1.9.0.1-hdf5.patch 2232 RMD160 73826c20a1e6504d6d510b9895f2bf8dc2c29e3d SHA1 bc87b61d9f113642a862d0b63e48aa984db32d2c SHA256 e7dc51c67e673ee1abd38bef980ccb929c6f787493e496a9c0ea7658d10be830
+AUX mathgl-1.10.1-gcc43.patch 345 RMD160 81d76baed06d779853dd96ce169f5bef620629b2 SHA1 e50c8e600cb243c809d3a6648344bbe29146666d SHA256 2165125d4677b882548530dc21a0368bf7ed27cab516ee6f78604f98b3b60ac9
+DIST STIX_font.tgz 2450541 RMD160 7595c2b99c5982d72b1ef551ab8f9d65237e5466 SHA1 3cbc4f5090cd37d1b35d594150357550d2639f81 SHA256 6408290fd4a5267637a88507344a8f07b908ce72f46ef93d09e068fedb67e8fe
+DIST mathgl-1.10.1.tgz 2037231 RMD160 ef373d2286cad705d9fc8d461d4a3e30bd4364f8 SHA1 2a016ae7abf74c2409c8888bdb0fd75d99a0586f SHA256 39fd65bfa12cbf230229f7a9b7b7712982f7ae8fa813a20300b82af8afcbe15e
DIST mathgl-1.10.tgz 4474028 RMD160 8a9f938c921e287bb968fbb163e404d00e520f2e SHA1 f0a541c66fefd44336fea183c6ed97346eb15d03 SHA256 a3fdef1f035bfb7769ba8b9316279171ca0c19e20e238671dfabe4b17be3996f
+EBUILD mathgl-1.10.1.ebuild 2555 RMD160 6089dde3aae661dd1ef336bb1cba16764138e444 SHA1 3ecbac6c4256ea5c41e11e2d693ff95a742ceb73 SHA256 447e21d26b0a69a7119899578b768e9e020bbb5cb6702f30ec41ddfc6cb1f7e8
EBUILD mathgl-1.10.ebuild 2424 RMD160 02b9be9d186f4e80712cfdff557cdb3589a0cbba SHA1 d7eb4dc78d3682541a6d2302a21b1e5e8a7efe9d SHA256 5724f3f21f910110b43ab0dad659981aad106645b45a5faf9303979f5db33526
-MISC ChangeLog 2530 RMD160 2c4224410f9208fa7864efc75891cab0db976b3a SHA1 7fb4971114656bfdd04482e598b4a868f8a605d3 SHA256 33101feabdc16cbdb7fff599fcb1e3893201b5640fefc532fbe946cd64728ba8
+MISC ChangeLog 2753 RMD160 c874089105748e116fde5b5a6cb51f6fea7d48f3 SHA1 bea3562e2f0312b4718ac671114f9de59c310e57 SHA256 bd88e536aa2fbabdc2a7ab6243b27e7d031cd5a29bdd521813c54064b81e5a77
MISC metadata.xml 403 RMD160 58842b16ab72ab3b23b8d29eaf00dd2c05da11c9 SHA1 de3dde83893663018de696e3e07010a276db0fff SHA256 2e033d0243bbbafcb9397978f74e7bf0edcb03cfb6f2d2d5ff9e22cdf5e77a42
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.14 (GNU/Linux)
-
-iEYEARECAAYFAkt01ygACgkQ1ycZbhPLE2BUlgCgodu92ZvF3bJFx/CZbtjuyilD
-6GYAoKw4tjSxDv+trziGEi+h6O/cUEpB
-=spsV
------END PGP SIGNATURE-----
diff --git a/sci-libs/mathgl/files/mathgl-1.9.0.1-gcc43.patch b/sci-libs/mathgl/files/mathgl-1.10.1-gcc43.patch
index 7a639bb9a4ab..7a639bb9a4ab 100644
--- a/sci-libs/mathgl/files/mathgl-1.9.0.1-gcc43.patch
+++ b/sci-libs/mathgl/files/mathgl-1.10.1-gcc43.patch
diff --git a/sci-libs/mathgl/files/mathgl-1.9.0.1-hdf5.patch b/sci-libs/mathgl/files/mathgl-1.9.0.1-hdf5.patch
deleted file mode 100644
index e0337f824dba..000000000000
--- a/sci-libs/mathgl/files/mathgl-1.9.0.1-hdf5.patch
+++ /dev/null
@@ -1,55 +0,0 @@
---- mathgl-1.9.0.1.orig/configure.ac 2009-07-08 11:29:13.000000000 +0200
-+++ mathgl-1.9.0.1/configure.ac 2009-08-26 11:09:55.123551155 +0200
-@@ -153,6 +153,7 @@
-
- AC_CHECK_LIB([hdf5], [main], [(test x$all = xtrue || test x$hdf5 = xtrue) && HDF5_LIBS=-lhdf5 AC_SUBST(HDF5_LIBS)],
- [(test x$all = xtrue || test x$hdf5 = xtrue) && echo "Please install hdf5 library" && exit])
-+AC_CHECK_LIB([hdf5], [H5Literate], [(test x$all = xtrue || test x$hdf5 = xtrue) && HDF5_FLAGS="-DHAVE_HDF5 -DHAVE_HDF5_18" AC_SUBST(HDF5_FLAGS)], [])
- AM_CONDITIONAL(USE_HDF5, (test x$all = xtrue || test x$hdf5 = xtrue))
-
- AC_ARG_ENABLE(gif,
---- mathgl-1.9.0.1.orig/mgl/mgl_data_io.cpp 2009-07-08 11:28:45.000000000 +0200
-+++ mathgl-1.9.0.1/mgl/mgl_data_io.cpp 2009-08-26 11:29:45.067804785 +0200
-@@ -919,7 +919,11 @@
- hid_t hf,hd,hs;
- hsize_t dims[3];
- long rank = 3, res;
-+#ifdef HAVE_HDF5_18
-+ H5Eset_auto(H5E_DEFAULT,0,0);
-+#else
- H5Eset_auto(0,0);
-+#endif
- res=H5Fis_hdf5(fname);
- if(res>0 && !rewrite) hf = H5Fopen(fname, H5F_ACC_RDWR, H5P_DEFAULT);
- else hf = H5Fcreate(fname, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
-@@ -929,10 +933,18 @@
- else { rank = 3; dims[0] = nz; dims[1] = ny; dims[2] = nx; }
- hs = H5Screate_simple(rank, dims, 0);
- #if(MGL_USE_DOUBLE==1)
-+#ifdef HAVE_HDF5_18
-+ hd = H5Dcreate(hf, data, H5T_NATIVE_DOUBLE, hs, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
-+#else /* ! HAVE_HDF5_18 */
- hd = H5Dcreate(hf, data, H5T_NATIVE_DOUBLE, hs, H5P_DEFAULT);
-+#endif /* HAVE_HDF5_18 */
- H5Dwrite(hd, H5T_NATIVE_DOUBLE, hs, hs, H5P_DEFAULT, a);
- #else
-+#ifdef HAVE_HDF5_18
-+ hd = H5Dcreate(hf, data, H5T_NATIVE_FLOAT, hs, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
-+#else /* ! HAVE_HDF5_18 */
- hd = H5Dcreate(hf, data, H5T_NATIVE_FLOAT, hs, H5P_DEFAULT);
-+#endif /* HAVE_HDF5_18 */
- H5Dwrite(hd, H5T_NATIVE_FLOAT, hs, hs, H5P_DEFAULT, a);
- #endif
- H5Dclose(hd); H5Sclose(hs); H5Fclose(hf);
-@@ -944,7 +956,11 @@
- hsize_t dims[3];
- long rank;
- hf = H5Fopen(fname, H5F_ACC_RDONLY, H5P_DEFAULT);
-+#ifdef HAVE_HDF5_18
-+ hd = H5Dopen(hf,data,H5P_DEFAULT);
-+#else
- hd = H5Dopen(hf,data);
-+#endif
- hs = H5Dget_space(hd);
- rank = H5Sget_simple_extent_ndims(hs);
- if(rank>0 && rank<=3)
diff --git a/sci-libs/mathgl/mathgl-1.10.1.ebuild b/sci-libs/mathgl/mathgl-1.10.1.ebuild
new file mode 100644
index 000000000000..db749295ddd7
--- /dev/null
+++ b/sci-libs/mathgl/mathgl-1.10.1.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-1.10.1.ebuild,v 1.1 2010/03/08 18:13:35 grozin Exp $
+
+EAPI=2
+WX_GTK_VER=2.8
+inherit autotools wxwidgets python versionator toolchain-funcs
+
+DESCRIPTION="Math Graphics Library"
+HOMEPAGE="http://mathgl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz mirror://sourceforge/${PN}/STIX_font.tgz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc fltk gif glut gsl hdf5 jpeg octave python qt4 wxwidgets"
+
+RDEPEND="media-libs/libpng
+ virtual/glu
+ python? ( dev-python/numpy )
+ glut? ( virtual/glut )
+ fltk? ( x11-libs/fltk:1.1 )
+ gif? ( media-libs/giflib )
+ jpeg? ( media-libs/jpeg )
+ hdf5? ( >=sci-libs/hdf5-1.8 )
+ gsl? ( sci-libs/gsl )
+ octave? ( sci-mathematics/octave )
+ qt4? ( x11-libs/qt-gui:4 )
+ wxwidgets? ( x11-libs/wxGTK:2.8 )"
+DEPEND="${RDEPEND}
+ >=sys-devel/libtool-2.2.4
+ doc? ( app-text/texi2html virtual/texi2dvi )
+ python? ( dev-lang/swig )
+ octave? ( dev-lang/swig )"
+
+pkg_setup() {
+ if ! version_is_at_least "4.3.0" "$(gcc-version)"; then
+ eerror "You need >=gcc-4.3.0 to compile this package"
+ die "Wrong gcc version"
+ fi
+ if use hdf5 && has_version sci-libs/hdf5[mpi]; then
+ export CC=mpicc
+ export CXX=mpicxx
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ mkdir "${S}"/fonts
+ cd "${S}"/fonts
+ unpack STIX_font.tgz
+}
+
+src_prepare() {
+ # bug #267061
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+
+ # correct location of numpy/arrayobject.h
+ if use python; then
+ local numpy_h
+ numpy_h=$(python_get_sitedir)/numpy/core/include/numpy/arrayobject.h
+ einfo "fixing numpy.i"
+ sed -e "s|<numpy/arrayobject.h>|\"${numpy_h}\"|" \
+ -i lang/numpy.i \
+ || die "sed failed"
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --docdir="${ROOT}"usr/share/doc/${PF} \
+ $(use_enable glut) \
+ $(use_enable qt4 qt) \
+ $(use_enable wxwidgets wx) \
+ $(use_enable fltk) \
+ $(use_enable gif) \
+ $(use_enable jpeg) \
+ $(use_enable hdf5 hdf5_18) \
+ $(use_enable python) \
+ $(use_enable octave) \
+ $(use_enable gsl) \
+ $(use_enable doc docs)
+}
+
+src_compile() {
+ # see bug #249627
+ local JOBS
+ use doc && JOBS=-j1
+ emake ${JOBS} || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README AUTHORS || die "dodoc failed"
+}
+
+pkg_postinst() {
+ if use octave; then
+ octave <<-EOF
+ pkg install /usr/share/${PN}/octave/${PN}.tar.gz
+ EOF
+ fi
+}
+
+pkg_prerm() {
+ if use octave; then
+ octave <<-EOF
+ pkg uninstall ${PN}
+ EOF
+ fi
+}