1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
7 CMAKE_MAKEFILE_GENERATOR="ninja"
9 inherit cmake-utils python-r1
11 DESCRIPTION="A Modern Multiscale Simulation Package for Soft Matter Systems"
12 HOMEPAGE="https://www.espresso-pp.de"
15 if [[ ${PV} = 9999 ]]; then
16 EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
19 SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
20 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
26 RESTRICT="!test? ( test )"
28 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
30 RDEPEND="${PYTHON_DEPS}
32 dev-libs/boost:=[python,mpi,${PYTHON_USEDEP}]
34 >=dev-python/mpi4py-2[${PYTHON_USEDEP}]"
37 S="${WORKDIR}/${MY_PN}-${PV}"
40 src_configure_internal() {
46 cmake-utils_src_configure
48 python_foreach_impl src_configure_internal
52 python_foreach_impl cmake-utils_src_make
56 python_foreach_impl cmake-utils_src_test
60 python_foreach_impl cmake-utils_src_install