summaryrefslogtreecommitdiff
blob: bf3dbf1a7e00522d0d76c52e01a68f8f75c7097f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

PYTHON_COMPAT=( python2_7 )
inherit distutils-r1

DESCRIPTION="XMDS - The eXtensible Multi-Dimensional Simulator"
HOMEPAGE="http://www.xmds.org"
SRC_URI="mirror://sourceforge/xmds/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc examples mpi"

DEPEND="dev-python/cheetah[${PYTHON_USEDEP}]"
RDEPEND=">=sci-libs/fftw-3.3.1:3.0=[mpi?]
		mpi? ( virtual/mpi )
		dev-python/numpy[${PYTHON_USEDEP}]
		dev-python/pyparsing[${PYTHON_USEDEP}]
		dev-python/lxml[${PYTHON_USEDEP}]
		dev-python/mpmath[${PYTHON_USEDEP}]
		dev-python/h5py[${PYTHON_USEDEP}]
		sci-libs/atlas
		sci-libs/hdf5
		sci-libs/gsl"
#virtual/cblas

python_install_all() {
	use doc && HTML_DOCS+=( documentation/. )
	if use examples; then
		docompress -x "/usr/share/doc/${PF}/examples"
		dodoc -r examples
	fi
	distutils-r1_python_install_all
}

pkg_postinst() {
	elog "Configure XMDS2 by typing"
	elog "xmds2 --reconfigure"
	elog "See http://www.xmds.org/installation.html for further informations"
}