analitza-16.12.3.ebuild 840 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. KDE_TEST="forceoptional-recursive"
  5. VIRTUALX_REQUIRED="test"
  6. inherit kde5
  7. DESCRIPTION="KDE library for mathematical features"
  8. KEYWORDS="~amd64 ~x86"
  9. IUSE="eigen opengl"
  10. DEPEND="
  11. $(add_qt_dep qtdeclarative)
  12. $(add_qt_dep qtgui)
  13. $(add_qt_dep qtsvg)
  14. $(add_qt_dep qtwidgets)
  15. $(add_qt_dep qtxml)
  16. eigen? ( dev-cpp/eigen:3 )
  17. opengl? (
  18. $(add_qt_dep qtopengl)
  19. virtual/opengl
  20. )
  21. "
  22. RDEPEND="${DEPEND}"
  23. src_prepare() {
  24. if ! use test; then
  25. sed -i \
  26. -e "/add_subdirectory(examples)/ s/^/#DONT/" \
  27. analitzaplot/CMakeLists.txt || die
  28. fi
  29. kde5_src_prepare
  30. }
  31. src_configure() {
  32. local mycmakeargs=(
  33. $(cmake-utils_use_find_package eigen Eigen3)
  34. $(cmake-utils_use_find_package opengl OpenGL)
  35. )
  36. kde5_src_configure
  37. }