labplot-9999.ebuild 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. EGIT_BRANCH="frameworks"
  5. KDE_HANDBOOK="forceoptional"
  6. inherit kde5
  7. DESCRIPTION="Scientific data analysis and visualisation based on KDE Frameworks"
  8. HOMEPAGE="https://www.kde.org/applications/education/labplot/"
  9. [[ ${KDE_BUILD_TYPE} != live ]] && SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}-kf5.tar.xz"
  10. LICENSE="GPL-2"
  11. KEYWORDS=""
  12. IUSE="cantor fftw fits hdf5 netcdf"
  13. [[ ${KDE_BUILD_TYPE} != live ]] && S="${WORKDIR}/${P}-kf5"
  14. COMMON_DEPEND="
  15. $(add_frameworks_dep karchive)
  16. $(add_frameworks_dep kcompletion)
  17. $(add_frameworks_dep kconfig)
  18. $(add_frameworks_dep kconfigwidgets)
  19. $(add_frameworks_dep kcoreaddons)
  20. $(add_frameworks_dep kdelibs4support)
  21. $(add_frameworks_dep ki18n)
  22. $(add_frameworks_dep kiconthemes)
  23. $(add_frameworks_dep kio)
  24. $(add_frameworks_dep knewstuff)
  25. $(add_frameworks_dep ktextwidgets)
  26. $(add_frameworks_dep kwidgetsaddons)
  27. $(add_frameworks_dep kxmlgui)
  28. $(add_qt_dep qtconcurrent)
  29. $(add_qt_dep qtgui)
  30. $(add_qt_dep qtprintsupport)
  31. $(add_qt_dep qtsvg)
  32. $(add_qt_dep qtwidgets)
  33. >=sci-libs/gsl-1.15:=
  34. cantor? ( $(add_kdeapps_dep cantor) )
  35. fftw? ( sci-libs/fftw:3.0= )
  36. fits? ( sci-libs/cfitsio:= )
  37. hdf5? ( sci-libs/hdf5:= )
  38. netcdf? ( sci-libs/netcdf:= )
  39. "
  40. DEPEND="${COMMON_DEPEND}
  41. sys-devel/gettext
  42. x11-misc/shared-mime-info
  43. "
  44. RDEPEND="${COMMON_DEPEND}
  45. !sci-visualization/labplot:4
  46. "
  47. src_prepare() {
  48. if ! use handbook && [[ ${KDE_BUILD_TYPE} != live ]]; then
  49. cmake_comment_add_subdirectory doc-translations
  50. fi
  51. kde5_src_prepare
  52. }
  53. src_configure() {
  54. local mycmakeargs=(
  55. -DENABLE_CANTOR=$(usex cantor)
  56. -DENABLE_FFTW=$(usex fftw)
  57. -DENABLE_FITS=$(usex fits)
  58. -DENABLE_HDF5=$(usex hdf5)
  59. -DENABLE_NETCDF=$(usex netcdf)
  60. )
  61. kde5_src_configure
  62. }