skanlite-2.0.1.ebuild 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. KDE_HANDBOOK="true"
  5. inherit kde5
  6. DESCRIPTION="KDE image scanning application"
  7. HOMEPAGE="http://www.kde.org/applications/graphics/skanlite/"
  8. SRC_URI="mirror://kde/stable/${PN}/2.0/${P}.tar.xz"
  9. LICENSE="|| ( GPL-2 GPL-3 ) handbook? ( FDL-1.2+ )"
  10. KEYWORDS="amd64 x86"
  11. IUSE=""
  12. DEPEND="
  13. $(add_frameworks_dep kconfig)
  14. $(add_frameworks_dep kconfigwidgets)
  15. $(add_frameworks_dep kcoreaddons)
  16. $(add_frameworks_dep ki18n)
  17. $(add_frameworks_dep kio)
  18. $(add_frameworks_dep kjobwidgets)
  19. $(add_frameworks_dep kwidgetsaddons)
  20. $(add_frameworks_dep kxmlgui)
  21. $(add_kdeapps_dep libksane)
  22. $(add_qt_dep qtgui)
  23. $(add_qt_dep qtwidgets)
  24. media-libs/libpng:0=
  25. "
  26. RDEPEND="${DEPEND}
  27. !kde-misc/skanlite:4
  28. "
  29. src_prepare() {
  30. kde5_src_prepare
  31. cmake_comment_add_subdirectory autotests
  32. cmake_comment_add_subdirectory tests
  33. sed -i -e "/TextWidgets/d" CMakeLists.txt || die
  34. use handbook || sed -i -e "/DocTools/d" CMakeLists.txt || die
  35. }