espresso++-1.9.4.ebuild 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. PYTHON_COMPAT=( python2_7 )
  5. CMAKE_MAKEFILE_GENERATOR="ninja"
  6. inherit cmake-utils python-r1
  7. DESCRIPTION="A Modern Multiscale Simulation Package for Soft Matter Systems"
  8. HOMEPAGE="https://www.espresso-pp.de"
  9. MY_PN="${PN//+/p}"
  10. if [[ ${PV} = 9999 ]]; then
  11. EGIT_REPO_URI="git://github.com/${MY_PN}/${MY_PN}.git http://github.com/${MY_PN}/${MY_PN}.git"
  12. inherit git-r3
  13. else
  14. SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  15. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
  16. fi
  17. LICENSE="GPL-3"
  18. SLOT="0"
  19. IUSE="test"
  20. REQUIRED_USE="${PYTHON_REQUIRED_USE}"
  21. RDEPEND="${PYTHON_DEPS}
  22. virtual/mpi
  23. dev-libs/boost:=[python,mpi,${PYTHON_USEDEP}]
  24. sci-libs/fftw:3.0
  25. >=dev-python/mpi4py-2[${PYTHON_USEDEP}]"
  26. DEPEND="${RDEPEND}"
  27. S="${WORKDIR}/${MY_PN}-${PV}"
  28. src_configure() {
  29. src_configure_internal() {
  30. local mycmakeargs=(
  31. -DEXTERNAL_BOOST=ON
  32. -DEXTERNAL_MPI4PY=ON
  33. -DWITH_RC_FILES=OFF
  34. )
  35. cmake-utils_src_configure
  36. }
  37. python_foreach_impl src_configure_internal
  38. }
  39. src_compile() {
  40. python_foreach_impl cmake-utils_src_make
  41. }
  42. src_test() {
  43. python_foreach_impl cmake-utils_src_test
  44. }
  45. src_install() {
  46. python_foreach_impl cmake-utils_src_install
  47. }