trojita-0.7-r1.ebuild 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. EGIT_REPO_URI="git://anongit.kde.org/${PN}.git"
  5. inherit cmake-utils fdo-mime gnome2-utils virtualx
  6. [[ ${PV} == 9999 ]] && inherit git-r3
  7. DESCRIPTION="A Qt IMAP e-mail client"
  8. HOMEPAGE="http://trojita.flaska.net/"
  9. if [[ ${PV} != 9999 ]]; then
  10. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
  11. KEYWORDS="amd64 x86"
  12. fi
  13. LICENSE="|| ( GPL-2 GPL-3 )"
  14. SLOT="0"
  15. IUSE="+crypt debug +dbus +password test +zlib"
  16. RDEPEND="
  17. dev-qt/qtcore:5
  18. dev-qt/qtgui:5
  19. dev-qt/qtnetwork:5[ssl]
  20. dev-qt/qtsql:5[sqlite]
  21. dev-qt/qtsvg:5
  22. dev-qt/qtwebkit:5
  23. dev-qt/qtwidgets:5
  24. crypt? (
  25. dev-libs/mimetic
  26. kde-apps/gpgmepp:5
  27. )
  28. dbus? ( dev-qt/qtdbus:5 )
  29. password? ( dev-libs/qtkeychain[qt5] )
  30. zlib? ( sys-libs/zlib )
  31. "
  32. DEPEND="${RDEPEND}
  33. dev-qt/linguist-tools:5
  34. test? ( dev-qt/qttest:5 )
  35. zlib? ( virtual/pkgconfig )
  36. "
  37. DOCS="README LICENSE"
  38. src_prepare() {
  39. cmake-utils_src_prepare
  40. # the build system is taking a look at `git describe ... --dirty` and
  41. # gentoo's modifications to CMakeLists.txt break these
  42. sed -i "s/--dirty//" "${S}/cmake/TrojitaVersion.cmake" || die "Cannot fix the version check"
  43. }
  44. src_configure() {
  45. local mycmakeargs=(
  46. -DWITH_CRYPTO_MESSAGES=$(usex crypt)
  47. -DWITH_GPGMEPP=$(usex crypt)
  48. -DWITH_MIMETIC=$(usex crypt)
  49. -DWITH_DBUS=$(usex dbus)
  50. -DWITH_QTKEYCHAINPLUGIN=$(usex password)
  51. -DWITH_TESTS=$(usex test)
  52. -DWITH_ZLIB=$(usex zlib)
  53. )
  54. cmake-utils_src_configure
  55. }
  56. src_test() {
  57. virtx cmake-utils_src_test
  58. }
  59. pkg_preinst() {
  60. gnome2_icon_savelist
  61. }
  62. pkg_postinst() {
  63. fdo-mime_desktop_database_update
  64. gnome2_icon_cache_update
  65. }
  66. pkg_postrm() {
  67. fdo-mime_desktop_database_update
  68. gnome2_icon_cache_update
  69. }