avogadro2-0.7.2.ebuild 981 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit cmake-utils
  5. MY_PN=avogadroapp
  6. MY_P=${MY_PN}-${PV}
  7. DESCRIPTION="Advanced molecule editor and visualizer 2"
  8. HOMEPAGE="http://www.openchemistry.org/"
  9. SRC_URI="mirror://sourceforge/project/avogadro/avogadro2/${PV}/${MY_P}.tar.gz"
  10. SLOT="0"
  11. LICENSE="BSD GPL-2+"
  12. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  13. IUSE="doc rpc test"
  14. RDEPEND="
  15. >=dev-cpp/eigen-3.2.0-r1
  16. dev-qt/qtcore:4
  17. dev-qt/qtgui:4
  18. dev-qt/qtopengl:4
  19. ~sci-libs/avogadrolibs-${PV}[qt4,opengl]
  20. sci-libs/hdf5
  21. rpc? ( sci-chemistry/molequeue )
  22. "
  23. DEPEND="${DEPEND}"
  24. RESTRICT=test
  25. S="${WORKDIR}"/${MY_P}
  26. src_prepare() {
  27. sed '/COPYING/d' -i CMakeLists.txt || die
  28. cmake-utils_src_prepare
  29. }
  30. src_configure() {
  31. local mycmakeargs=(
  32. $(cmake-utils_use_build doc DOCUMENTATION)
  33. $(cmake-utils_use rpc Avogadro_ENABLE_RPC)
  34. $(cmake-utils_use_enable test TESTING)
  35. )
  36. cmake-utils_src_configure
  37. }