mate-session-manager-1.16.0.ebuild 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit mate
  5. if [[ ${PV} != 9999 ]]; then
  6. KEYWORDS="~amd64 ~arm ~x86"
  7. fi
  8. DESCRIPTION="MATE session manager"
  9. HOMEPAGE="http://mate-desktop.org/"
  10. LICENSE="GPL-2 LGPL-2 FDL-1.1"
  11. SLOT="0"
  12. IUSE="debug elibc_FreeBSD gnome-keyring ipv6 systemd upower"
  13. # x11-misc/xdg-user-dirs{,-gtk} are needed to create the various XDG_*_DIRs, and
  14. # create .config/user-dirs.dirs which is read by glib to get G_USER_DIRECTORY_*
  15. # xdg-user-dirs-update is run during login (see 10-user-dirs-update-gnome below).
  16. COMMON_DEPEND=">=dev-libs/dbus-glib-0.76
  17. >=dev-libs/glib-2.36:2
  18. dev-libs/libxslt
  19. sys-apps/dbus
  20. x11-libs/gdk-pixbuf:2
  21. x11-libs/libICE
  22. x11-libs/libSM
  23. x11-libs/libX11
  24. x11-libs/libXau
  25. x11-libs/libXext
  26. x11-libs/libXrender
  27. x11-libs/libXtst
  28. x11-libs/pango
  29. x11-libs/xtrans
  30. virtual/libintl
  31. elibc_FreeBSD? ( dev-libs/libexecinfo )
  32. >=x11-libs/gtk+-3.14:3
  33. systemd? ( sys-apps/systemd )
  34. upower? ( || ( >=sys-power/upower-0.9.23 >=sys-power/upower-pm-utils-0.9.23 ) )"
  35. RDEPEND="${COMMON_DEPEND}
  36. x11-apps/xdpyinfo
  37. x11-misc/xdg-user-dirs
  38. x11-misc/xdg-user-dirs-gtk
  39. gnome-keyring? ( gnome-base/gnome-keyring )"
  40. DEPEND="${COMMON_DEPEND}
  41. >=dev-util/intltool-0.40:*
  42. >=dev-lang/perl-5
  43. >=sys-devel/gettext-0.10.40:*
  44. virtual/pkgconfig:*
  45. !<gnome-base/gdm-2.20.4"
  46. MATE_FORCE_AUTORECONF=true
  47. src_configure() {
  48. mate_src_configure \
  49. --docdir="${EPREFIX}/usr/share/doc/${PF}" \
  50. $(use_with systemd) \
  51. $(use_enable debug) \
  52. $(use_enable ipv6) \
  53. $(use_enable upower)
  54. }
  55. src_install() {
  56. mate_src_install
  57. dodir /etc/X11/Sessions/
  58. exeinto /etc/X11/Sessions/
  59. doexe "${FILESDIR}"/MATE
  60. dodir /usr/share/mate/applications/
  61. insinto /usr/share/mate/applications/
  62. doins "${FILESDIR}"/defaults.list
  63. dodir /etc/X11/xinit/xinitrc.d/
  64. exeinto /etc/X11/xinit/xinitrc.d/
  65. doexe "${FILESDIR}"/15-xdg-data-mate
  66. # This should be done in MATE too, see Gentoo bug #270852
  67. doexe "${FILESDIR}"/10-user-dirs-update-mate
  68. }