remmina-1.2.0_rc18.ebuild 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 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_pre20161219 )
  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. zeroconf? ( net-dns/avahi[gtk3] )
  30. "
  31. DEPEND="${RDEPEND}
  32. dev-util/intltool
  33. virtual/pkgconfig
  34. nls? ( sys-devel/gettext )
  35. "
  36. DOCS=( README.md )
  37. S="${WORKDIR}/Remmina-${MY_PV}"
  38. src_configure() {
  39. local mycmakeargs=(
  40. -DWITH_APPINDICATOR=$(usex ayatana)
  41. -DWITH_GCRYPT=$(usex crypt)
  42. -DWITH_FREERDP=$(usex rdp freerdp)
  43. -DWITH_LIBSECRET=$(usex gnome-keyring)
  44. -DWITH_GETTEXT=$(usex nls)
  45. -DWITH_TRANSLATIONS=$(usex nls)
  46. -DWITH_SPICE=$(usex spice)
  47. -DWITH_LIBSSH=$(usex ssh)
  48. -DWITH_VTE=$(usex ssh)
  49. -DWITH_TELEPATHY=$(usex telepathy)
  50. -DWITH_AVAHI=$(usex zeroconf)
  51. -DGTK_VERSION=3
  52. )
  53. cmake-utils_src_configure
  54. }
  55. pkg_preinst() {
  56. gnome2_icon_savelist
  57. }
  58. pkg_postinst() {
  59. gnome2_icon_cache_update
  60. elog "To get additional features, some optional runtime dependencies"
  61. elog "may be installed:"
  62. elog ""
  63. optfeature "encrypted VNC connections" net-libs/libvncserver[gcrypt]
  64. optfeature "XDMCP support" x11-base/xorg-server[xephyr]
  65. }
  66. pkg_postrm() {
  67. gnome2_icon_cache_update
  68. }