caja-extensions-1.12.0-r2.ebuild 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. MATE_LA_PUNT="yes"
  5. inherit mate
  6. if [[ ${PV} != 9999 ]]; then
  7. KEYWORDS="amd64 ~arm x86"
  8. fi
  9. DESCRIPTION="Several Caja extensions"
  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. SENDTO="cdr gajim +mail pidgin upnp"
  13. IUSE="gksu gtk3 image-converter +open-terminal share +wallpaper ${SENDTO}"
  14. RDEPEND=">=dev-libs/glib-2.36:2
  15. >=mate-base/caja-1.7[gtk3(-)=]
  16. virtual/libintl:0
  17. x11-libs/gdk-pixbuf:2
  18. cdr? ( >=app-cdr/brasero-2.32.1:0= )
  19. gajim? (
  20. net-im/gajim:0
  21. >=dev-libs/dbus-glib-0.60:0
  22. >=sys-apps/dbus-1:0
  23. )
  24. gksu? ( x11-libs/gksu )
  25. !gtk3? ( >=x11-libs/gtk+-2.24:2 )
  26. gtk3? ( >=x11-libs/gtk+-3.0:3 )
  27. image-converter? ( virtual/imagemagick-tools )
  28. open-terminal? ( >=mate-base/mate-desktop-1.7[gtk3(-)=] )
  29. pidgin? ( >=dev-libs/dbus-glib-0.60:0 )
  30. upnp? ( >=net-libs/gupnp-0.13:0= )"
  31. DEPEND="${RDEPEND}
  32. dev-util/gtk-doc
  33. dev-util/gtk-doc-am
  34. >=dev-util/intltool-0.18:*
  35. sys-devel/gettext:*
  36. virtual/pkgconfig:*
  37. !!mate-extra/mate-file-manager-open-terminal
  38. !!mate-extra/mate-file-manager-sendto
  39. !!mate-extra/mate-file-manager-image-converter
  40. !!mate-extra/mate-file-manager-share"
  41. src_configure() {
  42. local sendto_plugins="removable-devices"
  43. use cdr && sendto_plugins+=",caja-burn"
  44. use mail && sendto_plugins+=",emailclient"
  45. use pidgin && sendto_plugins+=",pidgin"
  46. use gajim && sendto_plugins+=",gajim"
  47. use upnp && sendto_plugins+=",upnp"
  48. mate_src_configure \
  49. --enable-sendto \
  50. --with-sendto-plugins=${sendto_plugins}\
  51. --with-gtk=$(usex gtk3 3.0 2.0) \
  52. $(use_enable gksu) \
  53. $(use_enable image-converter) \
  54. $(use_enable open-terminal) \
  55. $(use_enable share) \
  56. $(use_enable wallpaper)
  57. }