remmina-1.2.0_rc16-r1.ebuild 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit cmake-utils eutils gnome2-utils
  5. MY_PV="${PV//_rc/-rcgit.}"
  6. DESCRIPTION="A GTK+ RDP, VNC, XDMCP and SSH client"
  7. HOMEPAGE="http://remmina.org/"
  8. SRC_URI="https://github.com/FreeRDP/Remmina/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
  9. LICENSE="GPL-2+"
  10. SLOT="0"
  11. KEYWORDS="amd64 x86"
  12. IUSE="ayatana crypt rdp gnome-keyring nls spice ssh telepathy webkit zeroconf"
  13. RDEPEND="
  14. dev-libs/glib:2
  15. net-libs/libvncserver
  16. x11-libs/libxkbfile
  17. x11-libs/gdk-pixbuf
  18. x11-libs/gtk+:3
  19. x11-libs/libX11
  20. virtual/freedesktop-icon-theme
  21. ayatana? ( dev-libs/libappindicator:3 )
  22. crypt? ( dev-libs/libgcrypt:0= )
  23. rdp? ( ~net-misc/freerdp-2.0.0_pre20160722 )
  24. gnome-keyring? ( app-crypt/libsecret )
  25. spice? ( net-misc/spice-gtk[gtk3] )
  26. ssh? ( net-libs/libssh[sftp]
  27. x11-libs/vte:2.91 )
  28. telepathy? ( net-libs/telepathy-glib )
  29. webkit? ( net-libs/webkit-gtk:4 )
  30. zeroconf? ( net-dns/avahi[gtk3] )
  31. "
  32. DEPEND="${RDEPEND}
  33. dev-util/intltool
  34. virtual/pkgconfig
  35. nls? ( sys-devel/gettext )
  36. "
  37. DOCS=( README.md )
  38. S="${WORKDIR}/Remmina-${MY_PV}"
  39. src_configure() {
  40. local mycmakeargs=(
  41. -DWITH_APPINDICATOR=$(usex ayatana)
  42. -DWITH_GCRYPT=$(usex crypt)
  43. -DWITH_FREERDP=$(usex rdp freerdp)
  44. -DWITH_LIBSECRET=$(usex gnome-keyring)
  45. -DWITH_GETTEXT=$(usex nls)
  46. -DWITH_TRANSLATIONS=$(usex nls)
  47. -DWITH_SPICE=$(usex spice)
  48. -DWITH_LIBSSH=$(usex ssh)
  49. -DWITH_VTE=$(usex ssh)
  50. -DWITH_TELEPATHY=$(usex telepathy)
  51. -DWITH_SURVEY=$(usex webkit)
  52. -DWITH_AVAHI=$(usex zeroconf)
  53. -DGTK_VERSION=3
  54. )
  55. cmake-utils_src_configure
  56. }
  57. pkg_preinst() {
  58. gnome2_icon_savelist
  59. }
  60. pkg_postinst() {
  61. gnome2_icon_cache_update
  62. elog "To get additional features, some optional runtime dependencies"
  63. elog "may be installed:"
  64. elog ""
  65. optfeature "encrypted VNC connections" net-libs/libvncserver[gcrypt]
  66. optfeature "XDMCP support" x11-base/xorg-server[xephyr]
  67. }
  68. pkg_postrm() {
  69. gnome2_icon_cache_update
  70. }