cinnamon-screensaver-2.8.0-r1.ebuild 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. GCONF_DEBUG="yes"
  5. PYTHON_COMPAT=( python2_7 )
  6. inherit autotools eutils gnome2 multilib python-single-r1
  7. DESCRIPTION="Screensaver for Cinnamon"
  8. HOMEPAGE="http://cinnamon.linuxmint.com/"
  9. SRC_URI="https://github.com/linuxmint/cinnamon-screensaver/archive/${PV}.tar.gz -> ${P}.tar.gz"
  10. LICENSE="GPL-2+"
  11. SLOT="0"
  12. IUSE="doc pam systemd"
  13. KEYWORDS="amd64 x86"
  14. COMMON_DEPEND="
  15. >=dev-libs/glib-2.37.3:2[dbus]
  16. >=x11-libs/gtk+-3.1.4:3[introspection]
  17. >=gnome-extra/cinnamon-desktop-2.6.3:0=[systemd=]
  18. >=gnome-base/gsettings-desktop-schemas-0.1.7
  19. >=gnome-base/libgnomekbd-3.6
  20. >=dev-libs/dbus-glib-0.78
  21. net-libs/webkit-gtk:4[introspection]
  22. sys-apps/dbus
  23. x11-libs/libxklavier
  24. x11-libs/libX11
  25. x11-libs/libXext
  26. x11-libs/libXrandr
  27. x11-libs/libXScrnSaver
  28. x11-libs/libXxf86misc
  29. x11-libs/libXxf86vm
  30. x11-themes/adwaita-icon-theme
  31. ${PYTHON_DEPS}
  32. pam? ( virtual/pam )
  33. systemd? ( >=sys-apps/systemd-31:0= )
  34. "
  35. # our cinnamon-1.8 ebuilds installed a cinnamon-screensaver.desktop hack
  36. RDEPEND="
  37. !~gnome-extra/cinnamon-1.8.8.1
  38. !systemd? ( sys-auth/consolekit )
  39. dev-python/pygobject:3[${PYTHON_USEDEP}]
  40. "
  41. DEPEND="${COMMON_DEPEND}
  42. >=dev-util/intltool-0.35
  43. gnome-base/gnome-common
  44. sys-devel/gettext
  45. virtual/pkgconfig
  46. x11-proto/xextproto
  47. x11-proto/randrproto
  48. x11-proto/scrnsaverproto
  49. x11-proto/xf86miscproto
  50. doc? (
  51. app-text/xmlto
  52. app-text/docbook-xml-dtd:4.1.2
  53. app-text/docbook-xml-dtd:4.4 )
  54. "
  55. pkg_setup() {
  56. python_setup
  57. }
  58. src_prepare() {
  59. epatch "${FILESDIR}"/${PN}-2.6.3-automagic-logind.patch
  60. epatch "${FILESDIR}"/${PN}-2.8.0-webkit4.patch #566572
  61. # Fix xscreensaver paths for gentoo
  62. sed -e "s#/usr/lib/xscreensaver/#${EPREFIX}/usr/$(get_libdir)/misc/xscreensaver/#" \
  63. -i data/screensavers/xscreensaver@cinnamon.org/main || die
  64. python_fix_shebang data/screensavers
  65. epatch_user
  66. eautoreconf
  67. gnome2_src_prepare
  68. }
  69. src_configure() {
  70. DOCS="AUTHORS ChangeLog HACKING NEWS README"
  71. gnome2_src_configure \
  72. $(use_enable doc docbook-docs) \
  73. $(use_enable pam locking) \
  74. $(use_enable systemd logind) \
  75. --with-mit-ext \
  76. --with-pam-prefix=/etc \
  77. --with-xf86gamma-ext \
  78. --with-kbd-layout-indicator
  79. # Do not use --without-console-kit, it would provide no benefit: there is
  80. # no build-time or run-time check for consolekit, $PN merely listens to
  81. # consolekit's messages over dbus.
  82. }
  83. pkg_postinst() {
  84. gnome2_pkg_postinst
  85. if ! has_version x11-misc/xscreensaver; then
  86. elog "${PN} can use screensavers from x11-misc/xscreensaver"
  87. fi
  88. }