summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2009-11-23 23:47:59 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2009-11-23 23:47:59 +0000
commit546357793dcadebc4d44f171070716f7e3e56ca1 (patch)
tree81d118ff9d974e224de0c88500a7ec3e560d6d3b /sci-mathematics/freemat
parentInitial imporrt. Ebuild inspired from bug #119354. Thanks Jennifer and Ivan H... (diff)
downloadgentoo-2-546357793dcadebc4d44f171070716f7e3e56ca1.tar.gz
gentoo-2-546357793dcadebc4d44f171070716f7e3e56ca1.tar.bz2
gentoo-2-546357793dcadebc4d44f171070716f7e3e56ca1.zip
Version bump. Switched to cmake. Most use flags are now mandatory. Added volpack support.
(Portage version: 2.2_rc51/cvs/Linux x86_64)
Diffstat (limited to 'sci-mathematics/freemat')
-rw-r--r--sci-mathematics/freemat/ChangeLog9
-rw-r--r--sci-mathematics/freemat/freemat-4.0.ebuild68
-rw-r--r--sci-mathematics/freemat/metadata.xml2
3 files changed, 78 insertions, 1 deletions
diff --git a/sci-mathematics/freemat/ChangeLog b/sci-mathematics/freemat/ChangeLog
index a69701a6693f..b190efc72e15 100644
--- a/sci-mathematics/freemat/ChangeLog
+++ b/sci-mathematics/freemat/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-mathematics/freemat
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/freemat/ChangeLog,v 1.18 2009/10/06 17:37:16 ayoy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/freemat/ChangeLog,v 1.19 2009/11/23 23:47:59 bicatali Exp $
+
+*freemat-4.0 (24 Nov 2009)
+
+ 24 Nov 2009; Sébastien Fabbro <bicatali@gentoo.org> +freemat-4.0.ebuild,
+ metadata.xml:
+ Version bump. Switched to cmake. Most use flags are now mandatory. Added
+ volpack support.
06 Oct 2009; Dominik Kapusta <ayoy@gentoo.org> freemat-3.6.ebuild:
Removed alternative dependency on Qt metapackage
diff --git a/sci-mathematics/freemat/freemat-4.0.ebuild b/sci-mathematics/freemat/freemat-4.0.ebuild
new file mode 100644
index 000000000000..3a240a8950e9
--- /dev/null
+++ b/sci-mathematics/freemat/freemat-4.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/freemat/freemat-4.0.ebuild,v 1.1 2009/11/23 23:47:59 bicatali Exp $
+
+EAPI="2"
+inherit eutils cmake-utils fdo-mime virtualx
+
+MY_PN=FreeMat
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Environment for rapid engineering and scientific processing"
+HOMEPAGE="http://freemat.sourceforge.net/"
+SRC_URI="mirror://sourceforge/freemat/${MY_P}-Source.tar.gz"
+
+IUSE="volpack"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-libs/libpcre
+ media-libs/portaudio
+ sci-libs/arpack
+ sci-libs/fftw:3.0
+ sci-libs/umfpack
+ sys-libs/ncurses
+ virtual/lapack
+ virtual/opengl
+ x11-libs/qt-gui:4
+ x11-libs/qt-opengl:4
+ x11-libs/qt-svg:4
+ volpack? ( media-libs/volpack )"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S="${WORKDIR}/${MY_P}.1-Source"
+
+src_configure() {
+ rm -f CMakeCache.txt
+ mycmakeargs="${mycmakeargs}
+ -DUSE_LLVM=OFF
+ -DFORCE_BUNDLED_PCRE=OFF
+ -DFORCE_BUNDLED_UMFPACK=OFF
+ -DFORCE_BUNDLED_PORTAUDIO=OFF
+ -DFORCE_BUNDLED_ZLIB=OFF
+ -DFORCE_BUNDLED_AMD=OFF
+ $(cmake-utils_use_with volpack VOLPACK)"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc ChangeLog || die "dodoc failed"
+ newicon images/freemat_small_mod_64.png ${PN}.png
+ make_desktop_entry FreeMat FreeMat
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ elog "Before using ${MY_PN}, do (as a normal user)"
+ elog "FreeMat -i /usr/share/${MY_P}"
+ elog "Then start ${MY_PN}, choose Tools -> Path Tool,"
+ elog "select /usr/share/${MY_P}/toolbox and Add With Subfolders"
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/sci-mathematics/freemat/metadata.xml b/sci-mathematics/freemat/metadata.xml
index 690ab59f5c6a..82a4a9c26c7e 100644
--- a/sci-mathematics/freemat/metadata.xml
+++ b/sci-mathematics/freemat/metadata.xml
@@ -16,5 +16,7 @@
<flag name='ffcall'>Enable use of <pkg>dev-libs/ffcall</pkg></flag>
<flag name='umfpack'>Add sparse solving via
<pkg>sci-libs/umfpack</pkg></flag>
+ <flag name='volpack'>Add volume rendering
+ via <pkg>media-libs/volpack</pkg></flag>
</use>
</pkgmetadata>