/[gentoo-x86]/sci-mathematics/freemat/freemat-4.0.ebuild
Gentoo

Contents of /sci-mathematics/freemat/freemat-4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri May 4 07:46:50 2012 UTC (23 months, 2 weeks ago) by jdhore
Branch: MAIN
Changes since 1.5: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/freemat/freemat-4.0.ebuild,v 1.5 2012/03/10 10:36:03 ssuominen Exp $
4
5 EAPI="2"
6 inherit eutils cmake-utils fdo-mime
7
8 MY_PN=FreeMat
9 MY_P=${MY_PN}-${PV}
10
11 DESCRIPTION="Environment for rapid engineering and scientific processing"
12 HOMEPAGE="http://freemat.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/freemat/${MY_P}-Source.tar.gz"
14
15 IUSE="volpack"
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86"
19
20 RDEPEND="dev-libs/libpcre
21 media-libs/portaudio
22 sci-libs/arpack
23 sci-libs/fftw:3.0
24 sci-libs/umfpack
25 sys-libs/ncurses
26 virtual/lapack
27 virtual/glu
28 virtual/opengl
29 x11-libs/qt-gui:4
30 x11-libs/qt-opengl:4
31 x11-libs/qt-svg:4
32 volpack? ( media-libs/volpack )"
33
34 DEPEND="${RDEPEND}
35 virtual/pkgconfig"
36
37 S="${WORKDIR}/${MY_P}.1-Source"
38
39 src_prepare(){
40 epatch \
41 "${FILESDIR}"/${P}-gcc45.patch \
42 "${FILESDIR}"/${P}-no_implicit_GLU.patch
43 }
44
45 src_configure() {
46 rm -f CMakeCache.txt libs/lib*/*.moc.* src/*.moc.*
47 mycmakeargs="${mycmakeargs}
48 -DUSE_LLVM=OFF
49 -DFORCE_BUNDLED_PCRE=OFF
50 -DFORCE_BUNDLED_UMFPACK=OFF
51 -DFORCE_BUNDLED_PORTAUDIO=OFF
52 -DFORCE_BUNDLED_ZLIB=OFF
53 -DFORCE_BUNDLED_AMD=OFF
54 $(cmake-utils_use_with volpack VOLPACK)"
55 cmake-utils_src_configure
56 }
57
58 src_install() {
59 cmake-utils_src_install
60 dodoc ChangeLog || die "dodoc failed"
61 newicon images/freemat_small_mod_64.png ${PN}.png
62 make_desktop_entry FreeMat FreeMat
63 }
64
65 pkg_postinst() {
66 fdo-mime_desktop_database_update
67 elog "Before using ${MY_PN}, do (as a normal user)"
68 elog "FreeMat -i /usr/share/${MY_P}"
69 elog "Then start ${MY_PN}, choose Tools -> Path Tool,"
70 elog "select /usr/share/${MY_P}/toolbox and Add With Subfolders"
71 }
72
73 pkg_postrm() {
74 fdo-mime_desktop_database_update
75 }

  ViewVC Help
Powered by ViewVC 1.1.20