kmail-16.12.3.ebuild 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. KDE_HANDBOOK="forceoptional"
  5. KDE_TEST="forceoptional"
  6. QT_MINIMAL="5.7.0"
  7. VIRTUALX_REQUIRED="test"
  8. inherit kde5
  9. DESCRIPTION="Email client, supporting POP3 and IMAP mailboxes."
  10. HOMEPAGE="https://www.kde.org/applications/internet/kmail/"
  11. LICENSE="GPL-2+ handbook? ( FDL-1.2+ )"
  12. KEYWORDS="~amd64 ~x86"
  13. IUSE=""
  14. COMMON_DEPEND="
  15. $(add_frameworks_dep kbookmarks)
  16. $(add_frameworks_dep kcmutils)
  17. $(add_frameworks_dep kcodecs)
  18. $(add_frameworks_dep kcompletion)
  19. $(add_frameworks_dep kconfig)
  20. $(add_frameworks_dep kconfigwidgets)
  21. $(add_frameworks_dep kcoreaddons)
  22. $(add_frameworks_dep kcrash)
  23. $(add_frameworks_dep kdbusaddons)
  24. $(add_frameworks_dep kguiaddons)
  25. $(add_frameworks_dep ki18n)
  26. $(add_frameworks_dep kiconthemes)
  27. $(add_frameworks_dep kitemviews)
  28. $(add_frameworks_dep kio)
  29. $(add_frameworks_dep kjobwidgets)
  30. $(add_frameworks_dep knotifications)
  31. $(add_frameworks_dep knotifyconfig)
  32. $(add_frameworks_dep kparts)
  33. $(add_frameworks_dep kservice)
  34. $(add_frameworks_dep ktextwidgets)
  35. $(add_frameworks_dep kwidgetsaddons)
  36. $(add_frameworks_dep kwindowsystem)
  37. $(add_frameworks_dep kxmlgui)
  38. $(add_frameworks_dep sonnet)
  39. $(add_kdeapps_dep akonadi)
  40. $(add_kdeapps_dep akonadi-contacts)
  41. $(add_kdeapps_dep akonadi-mime)
  42. $(add_kdeapps_dep akonadi-search)
  43. $(add_kdeapps_dep kcalcore)
  44. $(add_kdeapps_dep kcontacts)
  45. $(add_kdeapps_dep kdepim-apps-libs)
  46. $(add_kdeapps_dep kidentitymanagement)
  47. $(add_kdeapps_dep kmailtransport)
  48. $(add_kdeapps_dep kmime)
  49. $(add_kdeapps_dep kontactinterface)
  50. $(add_kdeapps_dep kpimtextedit)
  51. $(add_kdeapps_dep libgravatar)
  52. $(add_kdeapps_dep libkdepim)
  53. $(add_kdeapps_dep libkleo)
  54. $(add_kdeapps_dep libksieve)
  55. $(add_kdeapps_dep libktnef)
  56. $(add_kdeapps_dep mailcommon)
  57. $(add_kdeapps_dep messagelib)
  58. $(add_kdeapps_dep pimcommon)
  59. $(add_qt_dep qtdbus)
  60. $(add_qt_dep qtgui)
  61. $(add_qt_dep qtnetwork)
  62. $(add_qt_dep qtwebengine 'widgets')
  63. $(add_qt_dep qtwidgets)
  64. $(add_qt_dep qtxml)
  65. >=app-crypt/gpgme-1.7.1[cxx,qt5]
  66. "
  67. DEPEND="${COMMON_DEPEND}
  68. $(add_kdeapps_dep kcalutils)
  69. $(add_kdeapps_dep kldap)
  70. dev-libs/libxslt
  71. test? ( $(add_kdeapps_dep akonadi 'sqlite,tools') )
  72. "
  73. RDEPEND="${COMMON_DEPEND}
  74. !kde-apps/kdepim:5
  75. !kde-apps/kdepim-common-libs:4
  76. !kde-apps/ktnef
  77. $(add_kdeapps_dep kdepim-runtime)
  78. "
  79. src_prepare() {
  80. cmake-utils_src_prepare
  81. if ! use handbook; then
  82. sed -i ktnef/CMakeLists.txt -e "/add_subdirectory(doc)/ s/^/#DONT/" || die
  83. fi
  84. }
  85. pkg_postinst() {
  86. kde5_pkg_postinst
  87. if ! has_version "kde-apps/kdepim-addons:${SLOT}" ; then
  88. echo
  89. elog "Install kde-apps/kdepim-addons:${SLOT} for fancy e-mail headers and various useful plugins."
  90. echo
  91. fi
  92. if ! has_version "kde-apps/kleopatra:${SLOT}" ; then
  93. echo
  94. elog "Install kde-apps/kleopatra:${SLOT} to get a crypto config and certificate details GUI."
  95. echo
  96. fi
  97. }