summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2007-08-13 15:16:24 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2007-08-13 15:16:24 +0000
commit0e7ec7a4c11c5e9a632618b29ecf3dff201a7774 (patch)
tree24a591939ed2e5968e967ea5ec77eced29576d23 /sci-mathematics
parentVersion bump. (diff)
downloadgentoo-2-0e7ec7a4c11c5e9a632618b29ecf3dff201a7774.tar.gz
gentoo-2-0e7ec7a4c11c5e9a632618b29ecf3dff201a7774.tar.bz2
gentoo-2-0e7ec7a4c11c5e9a632618b29ecf3dff201a7774.zip
Version bump.
(Portage version: 2.1.2.11)
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/freemat/ChangeLog8
-rw-r--r--sci-mathematics/freemat/files/digest-freemat-3.33
-rw-r--r--sci-mathematics/freemat/files/freemat-3.3-pointer.patch11
-rw-r--r--sci-mathematics/freemat/freemat-3.3.ebuild56
4 files changed, 77 insertions, 1 deletions
diff --git a/sci-mathematics/freemat/ChangeLog b/sci-mathematics/freemat/ChangeLog
index a03da0669889..d6e676489ff2 100644
--- a/sci-mathematics/freemat/ChangeLog
+++ b/sci-mathematics/freemat/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-mathematics/freemat
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/freemat/ChangeLog,v 1.1 2007/08/01 22:46:32 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/freemat/ChangeLog,v 1.2 2007/08/13 15:16:24 bicatali Exp $
+
+*freemat-3.3 (13 Aug 2007)
+
+ 13 Aug 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/freemat-3.3-pointer.patch, +freemat-3.3.ebuild:
+ Version bump
*freemat-3.2 (01 Aug 2007)
diff --git a/sci-mathematics/freemat/files/digest-freemat-3.3 b/sci-mathematics/freemat/files/digest-freemat-3.3
new file mode 100644
index 000000000000..0e40a234a7cb
--- /dev/null
+++ b/sci-mathematics/freemat/files/digest-freemat-3.3
@@ -0,0 +1,3 @@
+MD5 9338ea3743a5970c8d2da23ad19ae76e FreeMat-3.3.tar.gz 5853012
+RMD160 c92aca682552c639ee8ea8104d02482b246d17ff FreeMat-3.3.tar.gz 5853012
+SHA256 ba83b6119561ed5df0d2799115254c584b72f66afb26b239ee054de49b1b7706 FreeMat-3.3.tar.gz 5853012
diff --git a/sci-mathematics/freemat/files/freemat-3.3-pointer.patch b/sci-mathematics/freemat/files/freemat-3.3-pointer.patch
new file mode 100644
index 000000000000..e8e8001fe706
--- /dev/null
+++ b/sci-mathematics/freemat/files/freemat-3.3-pointer.patch
@@ -0,0 +1,11 @@
+--- libs/libFreeMat/Compiler.cpp.orig 2007-08-13 15:38:31.861045269 +0100
++++ libs/libFreeMat/Compiler.cpp 2007-08-13 15:39:11.255290219 +0100
+@@ -732,7 +732,7 @@
+ sprintf(buffer,"%g",topval.d);
+ break;
+ case pointer:
+- sprintf(buffer,"%x",(unsigned)topval.p);
++ sprintf(buffer,"%x",(size_t)topval.p);
+ }
+ return buffer;
+ }
diff --git a/sci-mathematics/freemat/freemat-3.3.ebuild b/sci-mathematics/freemat/freemat-3.3.ebuild
new file mode 100644
index 000000000000..920112d3b75b
--- /dev/null
+++ b/sci-mathematics/freemat/freemat-3.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/freemat/freemat-3.3.ebuild,v 1.1 2007/08/13 15:16:24 bicatali Exp $
+
+inherit eutils flag-o-matic autotools qt4
+
+MY_PN=FreeMat
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Environment for rapid engineering and scientific prototyping and data processing"
+HOMEPAGE="http://freemat.sourceforge.net/"
+SRC_URI="mirror://sourceforge/freemat/${MY_P}.tar.gz"
+
+IUSE="ncurses ffcall fftw umfpack arpack"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-libs/libpcre
+ virtual/lapack
+ dev-util/pkgconfig
+ ncurses? ( >=sys-libs/ncurses-5.4 )
+ umfpack? ( sci-libs/umfpack )
+ arpack? ( sci-libs/arpack )
+ fftw? ( >=sci-libs/fftw-3 )
+ portaudio? ( media-libs/portaudio )"
+
+RDEPEND="${DEPEND}
+ ffcall? ( dev-libs/ffcall )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # fix 64bits pointer
+ epatch "${FILESDIR}"/${P}-pointer.patch
+}
+
+
+src_compile() {
+ # -O3 won't compile for freemat-3.2
+ replace-flags "-O3" "-O2"
+ econf $(use_with ncurses) || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README AUTHORS ChangeLog
+}
+
+pkg_postint() {
+ einfo "Initializing freemat data directory"
+ FreeMat -i /usr/share/${MY_P}
+}