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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri May 4 07:46:50 2012 UTC (2 years, 7 months ago) by jdhore
Branch: MAIN
Changes since 1.2: +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.1.ebuild,v 1.2 2012/04/12 23:38:41 bicatali Exp $
4
5 EAPI=4
6 inherit eutils cmake-utils fdo-mime python
7
8 RESTRICT_PYTHON_ABIS="2.4 2.5"
9 MY_PN=FreeMat
10 MY_P=${MY_PN}-${PV}
11
12 DESCRIPTION="Environment for rapid engineering and scientific processing"
13 HOMEPAGE="http://freemat.sourceforge.net/"
14 SRC_URI="mirror://sourceforge/freemat/${MY_P}-Source.tar.gz"
15
16 IUSE="volpack vtk"
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20
21 RDEPEND="dev-libs/libpcre
22 media-libs/portaudio
23 sci-libs/arpack
24 sci-libs/fftw:3.0
25 sci-libs/matio
26 sci-libs/umfpack
27 sys-libs/ncurses
28 virtual/glu
29 virtual/lapack
30 virtual/libffi
31 virtual/opengl
32 x11-libs/qt-gui:4
33 x11-libs/qt-opengl:4
34 x11-libs/qt-svg:4
35 volpack? ( media-libs/volpack )
36 vtk? ( sci-libs/vtk )"
37
38 DEPEND="${RDEPEND}
39 dev-lang/python
40 virtual/pkgconfig"
41
42 S="${WORKDIR}/${MY_P}-Source"
43
44 src_prepare(){
45 epatch \
46 "${FILESDIR}"/${P}-fixes.patch \
47 "${FILESDIR}"/${P}-have_fftw.patch \
48 "${FILESDIR}"/${P}-local_libffi.patch \
49 "${FILESDIR}"/${P}-portaudio.patch \
50 "${FILESDIR}"/${P}-use_llvm.patch \
51 "${FILESDIR}"/${P}-python3.patch
52 rm -f CMakeCache.txt
53 find . -type f -name '*.moc.cpp' -exec rm -f {} \;
54 find . -type f -name 'add.so' -exec rm -f {} \;
55 }
56
57 src_configure() {
58 mycmakeargs+=(
59 -DUSE_LLVM=OFF
60 -DUSE_ITK=OFF
61 -DFORCE_BUNDLED_PCRE=OFF
62 -DFORCE_BUNDLED_UMFPACK=OFF
63 -DFORCE_BUNDLED_PORTAUDIO=OFF
64 -DFORCE_BUNDLED_ZLIB=OFF
65 -DFORCE_BUNDLED_AMD=OFF
66 -DFFI_INCLUDE_DIR="$(pkg-config --cflags-only-I libffi | sed -e s/-I//)"
67 $(cmake-utils_use_with volpack VOLPACK)
68 $(cmake-utils_use_with vtk VTK)
69 )
70 cmake-utils_src_configure
71 }
72
73 src_install() {
74 cmake-utils_src_install -j1
75 dodoc ChangeLog
76 newicon images/freemat_small_mod_64.png ${PN}.png
77 make_desktop_entry FreeMat FreeMat
78 }
79
80 pkg_postinst() {
81 fdo-mime_desktop_database_update
82 elog "Before using ${MY_PN}, do (as a normal user)"
83 elog "FreeMat -i ${EROOT}usr/share/${MY_P}"
84 elog "Then start ${MY_PN}, choose Tools -> Path Tool,"
85 elog "select ${EROOT}usr/share/${MY_P}/toolbox and Add With Subfolders"
86 }
87
88 pkg_postrm() {
89 fdo-mime_desktop_database_update
90 }

  ViewVC Help
Powered by ViewVC 1.1.20