kst-2.0.8.ebuild 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit cmake-utils multilib qmake-utils
  5. MY_P=Kst-${PV}
  6. DESCRIPTION="Fast real-time large-dataset viewing and plotting tool"
  7. HOMEPAGE="https://kst.kde.org/"
  8. SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
  9. LICENSE="GPL-2 LGPL-2 FDL-1.2"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE="debug qt5 test"
  13. RESTRICT="test"
  14. RDEPEND="
  15. !qt5? (
  16. dev-qt/designer:4
  17. dev-qt/qtcore:4
  18. dev-qt/qtgui:4
  19. dev-qt/qtopengl:4
  20. dev-qt/qtsvg:4
  21. )
  22. qt5? (
  23. dev-qt/designer:5
  24. dev-qt/qtconcurrent:5
  25. dev-qt/qtcore:5
  26. dev-qt/qtgui:5
  27. dev-qt/qtnetwork:5
  28. dev-qt/qtopengl:5
  29. dev-qt/qtprintsupport:5
  30. dev-qt/qtwidgets:5
  31. dev-qt/qtxml:5
  32. )
  33. sci-libs/cfitsio
  34. sci-libs/getdata
  35. sci-libs/gsl
  36. sci-libs/netcdf-cxx:3
  37. "
  38. DEPEND="${RDEPEND}
  39. test? (
  40. !qt5? ( dev-qt/qttest:4 )
  41. qt5? ( dev-qt/qttest:5 )
  42. )
  43. "
  44. S=${WORKDIR}/${MY_P}
  45. DOCS=( AUTHORS README.kstScript )
  46. PATCHES=( "${FILESDIR}/${P}-includes.patch" )
  47. src_configure() {
  48. local mycmakeargs=(
  49. -Dkst_install_libdir="$(get_libdir)"
  50. -Dkst_pch=OFF
  51. -Dkst_release=$(usex debug OFF ON)
  52. -Dkst_rpath=OFF
  53. -Dkst_svnversion=OFF
  54. $(cmake-utils_use test kst_test)
  55. $(cmake-utils_use qt5 kst_qt5)
  56. )
  57. use !qt5 && mycmakeargs+=( -DQT_LCONVERT_EXECUTABLE="$(qt4_get_bindir)/lconvert" )
  58. cmake-utils_src_configure
  59. }