mate-session-manager-1.14.1.ebuild 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 gtk3 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. !gtk3? ( >=x11-libs/gtk+-2.14:2 )
  33. gtk3? ( >=x11-libs/gtk+-3.0:3 )
  34. systemd? ( sys-apps/systemd )
  35. upower? ( || ( >=sys-power/upower-0.9.23 >=sys-power/upower-pm-utils-0.9.23 ) )"
  36. RDEPEND="${COMMON_DEPEND}
  37. x11-apps/xdpyinfo
  38. x11-misc/xdg-user-dirs
  39. x11-misc/xdg-user-dirs-gtk
  40. gnome-keyring? ( gnome-base/gnome-keyring )"
  41. DEPEND="${COMMON_DEPEND}
  42. >=dev-util/intltool-0.40:*
  43. >=dev-lang/perl-5
  44. >=sys-devel/gettext-0.10.40:*
  45. virtual/pkgconfig:*
  46. !<gnome-base/gdm-2.20.4"
  47. MATE_FORCE_AUTORECONF=true
  48. src_configure() {
  49. mate_src_configure \
  50. --docdir="${EPREFIX}/usr/share/doc/${PF}" \
  51. --with-gtk=$(usex gtk3 3.0 2.0) \
  52. $(use_with systemd) \
  53. $(use_enable debug) \
  54. $(use_enable ipv6) \
  55. $(use_enable upower)
  56. }
  57. src_install() {
  58. mate_src_install
  59. dodir /etc/X11/Sessions/
  60. exeinto /etc/X11/Sessions/
  61. doexe "${FILESDIR}"/MATE
  62. dodir /usr/share/mate/applications/
  63. insinto /usr/share/mate/applications/
  64. doins "${FILESDIR}"/defaults.list
  65. dodir /etc/X11/xinit/xinitrc.d/
  66. exeinto /etc/X11/xinit/xinitrc.d/
  67. doexe "${FILESDIR}"/15-xdg-data-mate
  68. # This should be done in MATE too, see Gentoo bug #270852
  69. doexe "${FILESDIR}"/10-user-dirs-update-mate
  70. }