summaryrefslogtreecommitdiff
path: root/mate-extra/mate-screensaver
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /mate-extra/mate-screensaver
reinit the tree, so we can have metadata
Diffstat (limited to 'mate-extra/mate-screensaver')
-rw-r--r--mate-extra/mate-screensaver/Manifest12
-rw-r--r--mate-extra/mate-screensaver/files/xss-conversion.txt22
-rw-r--r--mate-extra/mate-screensaver/mate-screensaver-1.12.0-r1.ebuild116
-rw-r--r--mate-extra/mate-screensaver/mate-screensaver-1.14.1.ebuild118
-rw-r--r--mate-extra/mate-screensaver/mate-screensaver-1.16.0.ebuild118
-rw-r--r--mate-extra/mate-screensaver/mate-screensaver-1.18.1.ebuild116
-rw-r--r--mate-extra/mate-screensaver/metadata.xml16
7 files changed, 518 insertions, 0 deletions
diff --git a/mate-extra/mate-screensaver/Manifest b/mate-extra/mate-screensaver/Manifest
new file mode 100644
index 000000000000..b736152d4f3b
--- /dev/null
+++ b/mate-extra/mate-screensaver/Manifest
@@ -0,0 +1,12 @@
+AUX xss-conversion.txt 1026 SHA256 f1bcc5e85d45e53e6170d0cdf25dd3d10020aeef545cf2fdea5e3b4b30ec86c8 SHA512 149d28bf7ff9dffe75f0a59408d91eff6537ec27a9457bf2419efe78e9b39a11796b341176e6ba4b1a183cc3ead080abe0ba85f51a3d57b0ff54dae8a3ec312a WHIRLPOOL 95492336413595cd91fbf31dc44f616500714ec11ddedcbdf98e9c18b0d0897d83b3f5ef82fe410cdd45409060a2560a873b67141576ed3a196bc33f87734ee3
+DIST mate-screensaver-1.12.0.tar.xz 4868924 SHA256 198cb5159bd6321c90e0069115909be52eb4382de25cb9c4ba33fa29e3fdc693 SHA512 01bdef496560eb8e9118b0ff66863568aaa6df872e7947d0a92fe9fcb1d305618b28928ea95c65a3367e3e4e79e9bdab7a8266287c8e3db2a5210b955d412c8d WHIRLPOOL 2cf7db69a1609cd785eef50c070743722cd190633a3b34b4cc87c11aa46164106a785dd027e728121e18a671c1b36cd5d20d30f232011a1ac6a4ff5f37953dc4
+DIST mate-screensaver-1.14.1.tar.xz 4912772 SHA256 e903932d9e3b01b527abf8b4957d68797afd1b6b035854bcbbd5e4e6934da5c6 SHA512 28b5834450da9d7d2fd3a77504f244e69212e751435bd41a957f30a5231db312dba37ee39442c63a40098bb3d1e1fade81ea423f9d59b29fc5d1201522d1d8f8 WHIRLPOOL c39b1f2ee9bb3082a038c765c9c007c500470ab4c73d5221d3d5e49de9c54fa950e9eeabec9f02f4791f7ade984076574ad8c25357af43bf5ff39d3623cff74b
+DIST mate-screensaver-1.16.0.tar.xz 4918240 SHA256 fda3051346f4d23b383142fe5a86abb7e745c4a3fbcd9ac0c449fbc8a1cb5aa5 SHA512 e25d654ce4090108a0d1c38c3a7d7315c3c3b6226f694ad1833c6d2d26c6682bf52450809b33c75b1276c3ad6cbfe709df44556cdc9a0c2e7faa66373efcdc9d WHIRLPOOL 6a6c43d6f628f566d90288b065d89980a9173395e14914962b60445f21d8161297de595ac5af8650ccf3dcfb21a44fcd13c928eb48826149aba4ad5f417e28b1
+DIST mate-screensaver-1.18.1.tar.xz 4923504 SHA256 32bd34ac058e4a9206da5eeea07902f8f9321e76961f766aded605a71c08d135 SHA512 6e41a44e0d12af6080e69461a86b66b8ac4696dcf2b140d8e31b07945f4ac8848c872e9b1c07a6cf706042d3254567848c177a726038a862514471104242e807 WHIRLPOOL f8cd6bac92440c0ee45a587cf83d5060ed6e48bcbe99ffe641c158672162a4f04d5f52dc0eb34d6d77bf861a2775add439a9e25c5b752798c61fa998b336b20b
+EBUILD mate-screensaver-1.12.0-r1.ebuild 3161 SHA256 df4e46de1b2441f9bfbb2056ef6931cf624fef0f6a9cd9f81c300618ee964c32 SHA512 98d6bbb3cb567947fb72c9f6f4c701efde4ca0221b2d67b1e07f6ff1bb33cda88d2499605314210d7e44ecef3684a4efcd330cd1fe773524aca2509a36479e50 WHIRLPOOL f0c7d57a06cff00ea5915e93aa2da82573af2abfdd3734c8f135dbef6f425003dd4ac8f26d9f4518f3966550c293b5cfe79dcb487e3f4fcaa44a62dcc2808c64
+EBUILD mate-screensaver-1.14.1.ebuild 3203 SHA256 1faa55c22b1be8e9d30a67a82b84cc04c53a8f856a77b79960523c249bbc9c72 SHA512 3a5e247804609e8b670680188789909c324182416dc7902db724ab265d86784d3f5ec89dc5b323a08e46b73bc976684f1f81e258c10ce974a678764ef9c7c1e6 WHIRLPOOL d71cbf81b8d257043218ce1a93426759b6d588e38f0cc216fb59803c4224e040d4d74eea21044102c20ea05b44e11852786e918c96fe7d4d4926cf876e54d20b
+EBUILD mate-screensaver-1.16.0.ebuild 3203 SHA256 1faa55c22b1be8e9d30a67a82b84cc04c53a8f856a77b79960523c249bbc9c72 SHA512 3a5e247804609e8b670680188789909c324182416dc7902db724ab265d86784d3f5ec89dc5b323a08e46b73bc976684f1f81e258c10ce974a678764ef9c7c1e6 WHIRLPOOL d71cbf81b8d257043218ce1a93426759b6d588e38f0cc216fb59803c4224e040d4d74eea21044102c20ea05b44e11852786e918c96fe7d4d4926cf876e54d20b
+EBUILD mate-screensaver-1.18.1.ebuild 3103 SHA256 e2af1d2531a06b36ed92c8813a6253eee1ffd48ef7c0732c4aa888e25c03b9dc SHA512 e88dab619e0cb8171fe9f1785bfa089a43ad65356b2d9390d9f0e7b6eba69aaf6a9f3a614aa1751b77756f930cb391a065dc7476ddb5098e6fe17ab7ebfa8ca5 WHIRLPOOL c34573f03737da790651ed78b81a8f1e0e8446139a24af6c5d6c33c8457f9f526e56e303338343b99efd92eb2aa07822e96cc5ba943e3d817f319f22046fdc1b
+MISC ChangeLog 6570 SHA256 4e8fa441f51ac3ba5e5e3bd06dcaa9b3915d860965e01f265e009b2874f06fa2 SHA512 b03d64dd60ce271f6daa271f9d4c8445026201886a29ed95cebb1c9771323dc0491929bcb95ac1162bd7b13633c7874e5263ceef0cfd84ceaa1595c640f1703b WHIRLPOOL 1a6e64933ed9466e37200d16332dd67ed08b8caf784cd85b340c1e582331de8924edea0f7085d11f5d46649f1c80926e0dca29406fbc05f624c9159594db7800
+MISC ChangeLog-2015 3292 SHA256 8cb4c78a7a90d1ae4da8bbb8de1a7a402a563b790a88c7098e9def8e62c7d615 SHA512 b4ff895b3b0e8dd573a9a95f8e6682800ad92a1d647b51c98c7df1341fb7900bf4a7c5755b7c900151a59303357005d4cee1970ac394468817a1affccb7523c5 WHIRLPOOL 9958cc43e7949ea316798491488cb43ad6ddd3be2928b8610e2ef7f33a1f1d7b89148a712f2c731f1ed7f1dd04a81d0172bd3e271016d25e30edc85263d00576
+MISC metadata.xml 508 SHA256 818913e7a6c5290f88a594b47ed24c64d15cbb7f8520f97a6f462c4ca03e1000 SHA512 03f079381cf35a7c0d33ec93f9aba9e8924dd010e1d67ea64508d1fca59fe56685ccc06b2a721006c1144e16a217b32156b67205c9ee8e8d39410406612cc3e2 WHIRLPOOL 11b1305ac55ca69d11f3c30f435b05dbe4bc1fdfaa9a3f34d277f04e91105801a948ec35aeb534554d2e564a7375d0d66a50484ffd34605f2e9d3964fffd6cb3
diff --git a/mate-extra/mate-screensaver/files/xss-conversion.txt b/mate-extra/mate-screensaver/files/xss-conversion.txt
new file mode 100644
index 000000000000..d69e50619589
--- /dev/null
+++ b/mate-extra/mate-screensaver/files/xss-conversion.txt
@@ -0,0 +1,22 @@
+There is a conversion script which you can use to convert XScreenSaver
+screensavers to the gnome-screensaver format. The conversion script is located
+in the documentation directory (/usr/share/doc/${PF}/).
+
+The migrate-xscreensaver-config.sh and xscreensaver-config.xsl files will be
+needed to convert the screensaver. Make sure to enable the executable bit on
+the script (chmod +x migrate-xscreensaver-config.sh).
+
+The script takes the module to convert and creates a .desktop file corresponding
+to the module.
+
+migrate-xscreensaver-config.sh /usr/share/xscreensaver/config/*.xml
+
+The above command should convert all xscreensaver modules.
+
+You must copy the desktop files into /usr/share/applications/gnome-screensavers (cp
+*.desktop /usr/share/applications/screensavers), and the executables from
+/usr/lib/misc/xscreensaver into /usr/libexec/gnome-screensaver
+(cp /usr/lib/misc/xscreensaver/* /usr/libexec/gnome-screensaver)
+
+Going to the gnome-screensaver-preferences dialog should now show the new
+modules in the list.
diff --git a/mate-extra/mate-screensaver/mate-screensaver-1.12.0-r1.ebuild b/mate-extra/mate-screensaver/mate-screensaver-1.12.0-r1.ebuild
new file mode 100644
index 000000000000..9b529f0d14c8
--- /dev/null
+++ b/mate-extra/mate-screensaver/mate-screensaver-1.12.0-r1.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit mate multilib readme.gentoo-r1
+
+if [[ ${PV} != 9999 ]]; then
+ KEYWORDS="amd64 ~arm x86"
+fi
+
+DESCRIPTION="Replaces xscreensaver, integrating with the MATE desktop"
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="X debug consolekit gtk3 kernel_linux libnotify opengl pam systemd"
+
+DOC_CONTENTS="
+ Information for converting screensavers is located in
+ /usr/share/doc/${PF}/xss-conversion.txt*
+"
+
+RDEPEND="
+ >=dev-libs/dbus-glib-0.71:0
+ >=dev-libs/glib-2.36:2
+ gnome-base/dconf:0
+ >=mate-base/libmatekbd-1.7.1[gtk3(-)=]
+ >=mate-base/mate-desktop-1.9.4[gtk3(-)=]
+ >=mate-base/mate-menus-1.6
+ >=mate-base/mate-session-manager-1.6
+ >=sys-apps/dbus-0.30:0
+ >=x11-libs/gdk-pixbuf-2.14:2
+ >=x11-libs/libX11-1:0
+ x11-libs/cairo:0
+ x11-libs/libXext:0
+ x11-libs/libXrandr:0
+ x11-libs/libXScrnSaver:0
+ x11-libs/libXxf86misc:0
+ x11-libs/libXxf86vm:0
+ x11-libs/libxklavier:0
+ x11-libs/pango:0
+ virtual/libintl:0
+ consolekit? ( sys-auth/consolekit:0 )
+ !gtk3? ( >=x11-libs/gtk+-2.24:2 )
+ gtk3? ( >=x11-libs/gtk+-3.0:3 )
+ libnotify? ( >=x11-libs/libnotify-0.7:0 )
+ opengl? ( virtual/opengl:0 )
+ pam? ( gnome-base/gnome-keyring:0 virtual/pam:0 )
+ !pam? ( kernel_linux? ( sys-apps/shadow:0 ) )
+ systemd? ( sys-apps/systemd:0= )
+ !!<gnome-extra/gnome-screensaver-3:0"
+
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.50.1:*
+ sys-devel/gettext:*
+ x11-proto/randrproto:0
+ x11-proto/scrnsaverproto:0
+ x11-proto/xextproto:0
+ x11-proto/xf86miscproto:0
+ virtual/pkgconfig:*"
+
+src_configure() {
+ mate_src_configure \
+ --enable-locking \
+ --with-kbd-layout-indicator \
+ --with-xf86gamma-ext \
+ --with-xscreensaverdir=/usr/share/xscreensaver/config \
+ --with-xscreensaverhackdir=/usr/$(get_libdir)/misc/xscreensaver \
+ --with-gtk=$(usex gtk3 3.0 2.0) \
+ $(use_with X x) \
+ $(use_with consolekit console-kit) \
+ $(use_with libnotify) \
+ $(use_with opengl libgl) \
+ $(use_with systemd) \
+ $(use_enable debug) \
+ $(use_enable pam)
+}
+
+src_install() {
+ mate_src_install
+
+ # Install the conversion script in the documentation.
+ dodoc "${S}"/data/migrate-xscreensaver-config.sh
+ dodoc "${S}"/data/xscreensaver-config.xsl
+ dodoc "${FILESDIR}"/xss-conversion.txt
+
+ # Non PAM users will need this suid to read the password hashes.
+ # OpenPAM users will probably need this too when
+ # https://bugzilla.gnome.org/show_bug.cgi?id=370847
+ # is fixed.
+ if ! use pam ; then
+ fperms u+s /usr/libexec/mate-screensaver-dialog
+ fi
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ mate_pkg_postinst
+
+ if has_version "<x11-base/xorg-server-1.5.3-r4" ; then
+ ewarn "You have a too old xorg-server installation. This will cause"
+ ewarn "mate-screensaver to eat up your CPU. Please consider upgrading."
+ echo
+ fi
+
+ if has_version "<x11-misc/xscreensaver-4.22-r2" ; then
+ ewarn "You have xscreensaver installed, you probably want to disable it."
+ ewarn "To prevent a duplicate screensaver entry in the menu, you need to"
+ ewarn "build xscreensaver with -gnome in the USE flags."
+ ewarn "echo \"x11-misc/xscreensaver -gnome\" >> /etc/portage/package.use"
+ echo
+ fi
+
+ readme.gentoo_print_elog
+}
diff --git a/mate-extra/mate-screensaver/mate-screensaver-1.14.1.ebuild b/mate-extra/mate-screensaver/mate-screensaver-1.14.1.ebuild
new file mode 100644
index 000000000000..4bedd8f149c9
--- /dev/null
+++ b/mate-extra/mate-screensaver/mate-screensaver-1.14.1.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit mate multilib readme.gentoo-r1
+
+if [[ ${PV} != 9999 ]]; then
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+DESCRIPTION="Replaces xscreensaver, integrating with the MATE desktop"
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="X debug consolekit gtk3 kernel_linux libnotify opengl pam systemd"
+
+DOC_CONTENTS="
+ Information for converting screensavers is located in
+ /usr/share/doc/${PF}/xss-conversion.txt*
+"
+
+COMMON_DEPEND="
+ >=dev-libs/dbus-glib-0.71:0
+ >=dev-libs/glib-2.36:2
+ gnome-base/dconf:0
+ >=mate-base/libmatekbd-1.7.1[gtk3(-)=]
+ >=mate-base/mate-desktop-1.9.4[gtk3(-)=]
+ >=mate-base/mate-menus-1.6
+ >=sys-apps/dbus-0.30:0
+ >=x11-libs/gdk-pixbuf-2.14:2
+ >=x11-libs/libX11-1:0
+ x11-libs/cairo:0
+ x11-libs/libXext:0
+ x11-libs/libXrandr:0
+ x11-libs/libXScrnSaver:0
+ x11-libs/libXxf86misc:0
+ x11-libs/libXxf86vm:0
+ x11-libs/libxklavier:0
+ x11-libs/pango:0
+ virtual/libintl:0
+ consolekit? ( sys-auth/consolekit:0 )
+ !gtk3? ( >=x11-libs/gtk+-2.24:2 )
+ gtk3? ( >=x11-libs/gtk+-3.0:3 )
+ libnotify? ( >=x11-libs/libnotify-0.7:0 )
+ opengl? ( virtual/opengl:0 )
+ pam? ( gnome-base/gnome-keyring:0 virtual/pam:0 )
+ !pam? ( kernel_linux? ( sys-apps/shadow:0 ) )
+ systemd? ( sys-apps/systemd:0= )
+ !!<gnome-extra/gnome-screensaver-3:0"
+
+RDEPEND="${COMMON_DEPEND}
+ >=mate-base/mate-session-manager-1.6"
+
+DEPEND="${COMMON_DEPEND}
+ >=dev-util/intltool-0.50.1:*
+ sys-devel/gettext:*
+ x11-proto/randrproto:0
+ x11-proto/scrnsaverproto:0
+ x11-proto/xextproto:0
+ x11-proto/xf86miscproto:0
+ virtual/pkgconfig:*"
+
+src_configure() {
+ mate_src_configure \
+ --enable-locking \
+ --with-kbd-layout-indicator \
+ --with-xf86gamma-ext \
+ --with-xscreensaverdir=/usr/share/xscreensaver/config \
+ --with-xscreensaverhackdir=/usr/$(get_libdir)/misc/xscreensaver \
+ --with-gtk=$(usex gtk3 3.0 2.0) \
+ $(use_with X x) \
+ $(use_with consolekit console-kit) \
+ $(use_with libnotify) \
+ $(use_with opengl libgl) \
+ $(use_with systemd) \
+ $(use_enable debug) \
+ $(use_enable pam)
+}
+
+src_install() {
+ mate_src_install
+
+ # Install the conversion script in the documentation.
+ dodoc "${S}"/data/migrate-xscreensaver-config.sh
+ dodoc "${S}"/data/xscreensaver-config.xsl
+ dodoc "${FILESDIR}"/xss-conversion.txt
+
+ # Non PAM users will need this suid to read the password hashes.
+ # OpenPAM users will probably need this too when
+ # https://bugzilla.gnome.org/show_bug.cgi?id=370847
+ # is fixed.
+ if ! use pam ; then
+ fperms u+s /usr/libexec/mate-screensaver-dialog
+ fi
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ mate_pkg_postinst
+
+ if has_version "<x11-base/xorg-server-1.5.3-r4" ; then
+ ewarn "You have a too old xorg-server installation. This will cause"
+ ewarn "mate-screensaver to eat up your CPU. Please consider upgrading."
+ echo
+ fi
+
+ if has_version "<x11-misc/xscreensaver-4.22-r2" ; then
+ ewarn "You have xscreensaver installed, you probably want to disable it."
+ ewarn "To prevent a duplicate screensaver entry in the menu, you need to"
+ ewarn "build xscreensaver with -gnome in the USE flags."
+ ewarn "echo \"x11-misc/xscreensaver -gnome\" >> /etc/portage/package.use"
+ echo
+ fi
+
+ readme.gentoo_print_elog
+}
diff --git a/mate-extra/mate-screensaver/mate-screensaver-1.16.0.ebuild b/mate-extra/mate-screensaver/mate-screensaver-1.16.0.ebuild
new file mode 100644
index 000000000000..4bedd8f149c9
--- /dev/null
+++ b/mate-extra/mate-screensaver/mate-screensaver-1.16.0.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit mate multilib readme.gentoo-r1
+
+if [[ ${PV} != 9999 ]]; then
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+DESCRIPTION="Replaces xscreensaver, integrating with the MATE desktop"
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="X debug consolekit gtk3 kernel_linux libnotify opengl pam systemd"
+
+DOC_CONTENTS="
+ Information for converting screensavers is located in
+ /usr/share/doc/${PF}/xss-conversion.txt*
+"
+
+COMMON_DEPEND="
+ >=dev-libs/dbus-glib-0.71:0
+ >=dev-libs/glib-2.36:2
+ gnome-base/dconf:0
+ >=mate-base/libmatekbd-1.7.1[gtk3(-)=]
+ >=mate-base/mate-desktop-1.9.4[gtk3(-)=]
+ >=mate-base/mate-menus-1.6
+ >=sys-apps/dbus-0.30:0
+ >=x11-libs/gdk-pixbuf-2.14:2
+ >=x11-libs/libX11-1:0
+ x11-libs/cairo:0
+ x11-libs/libXext:0
+ x11-libs/libXrandr:0
+ x11-libs/libXScrnSaver:0
+ x11-libs/libXxf86misc:0
+ x11-libs/libXxf86vm:0
+ x11-libs/libxklavier:0
+ x11-libs/pango:0
+ virtual/libintl:0
+ consolekit? ( sys-auth/consolekit:0 )
+ !gtk3? ( >=x11-libs/gtk+-2.24:2 )
+ gtk3? ( >=x11-libs/gtk+-3.0:3 )
+ libnotify? ( >=x11-libs/libnotify-0.7:0 )
+ opengl? ( virtual/opengl:0 )
+ pam? ( gnome-base/gnome-keyring:0 virtual/pam:0 )
+ !pam? ( kernel_linux? ( sys-apps/shadow:0 ) )
+ systemd? ( sys-apps/systemd:0= )
+ !!<gnome-extra/gnome-screensaver-3:0"
+
+RDEPEND="${COMMON_DEPEND}
+ >=mate-base/mate-session-manager-1.6"
+
+DEPEND="${COMMON_DEPEND}
+ >=dev-util/intltool-0.50.1:*
+ sys-devel/gettext:*
+ x11-proto/randrproto:0
+ x11-proto/scrnsaverproto:0
+ x11-proto/xextproto:0
+ x11-proto/xf86miscproto:0
+ virtual/pkgconfig:*"
+
+src_configure() {
+ mate_src_configure \
+ --enable-locking \
+ --with-kbd-layout-indicator \
+ --with-xf86gamma-ext \
+ --with-xscreensaverdir=/usr/share/xscreensaver/config \
+ --with-xscreensaverhackdir=/usr/$(get_libdir)/misc/xscreensaver \
+ --with-gtk=$(usex gtk3 3.0 2.0) \
+ $(use_with X x) \
+ $(use_with consolekit console-kit) \
+ $(use_with libnotify) \
+ $(use_with opengl libgl) \
+ $(use_with systemd) \
+ $(use_enable debug) \
+ $(use_enable pam)
+}
+
+src_install() {
+ mate_src_install
+
+ # Install the conversion script in the documentation.
+ dodoc "${S}"/data/migrate-xscreensaver-config.sh
+ dodoc "${S}"/data/xscreensaver-config.xsl
+ dodoc "${FILESDIR}"/xss-conversion.txt
+
+ # Non PAM users will need this suid to read the password hashes.
+ # OpenPAM users will probably need this too when
+ # https://bugzilla.gnome.org/show_bug.cgi?id=370847
+ # is fixed.
+ if ! use pam ; then
+ fperms u+s /usr/libexec/mate-screensaver-dialog
+ fi
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ mate_pkg_postinst
+
+ if has_version "<x11-base/xorg-server-1.5.3-r4" ; then
+ ewarn "You have a too old xorg-server installation. This will cause"
+ ewarn "mate-screensaver to eat up your CPU. Please consider upgrading."
+ echo
+ fi
+
+ if has_version "<x11-misc/xscreensaver-4.22-r2" ; then
+ ewarn "You have xscreensaver installed, you probably want to disable it."
+ ewarn "To prevent a duplicate screensaver entry in the menu, you need to"
+ ewarn "build xscreensaver with -gnome in the USE flags."
+ ewarn "echo \"x11-misc/xscreensaver -gnome\" >> /etc/portage/package.use"
+ echo
+ fi
+
+ readme.gentoo_print_elog
+}
diff --git a/mate-extra/mate-screensaver/mate-screensaver-1.18.1.ebuild b/mate-extra/mate-screensaver/mate-screensaver-1.18.1.ebuild
new file mode 100644
index 000000000000..7024c0e10d58
--- /dev/null
+++ b/mate-extra/mate-screensaver/mate-screensaver-1.18.1.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit mate multilib readme.gentoo-r1
+
+if [[ ${PV} != 9999 ]]; then
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+DESCRIPTION="Replaces xscreensaver, integrating with the MATE desktop"
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="X debug consolekit kernel_linux libnotify opengl pam systemd"
+
+DOC_CONTENTS="
+ Information for converting screensavers is located in
+ /usr/share/doc/${PF}/xss-conversion.txt*
+"
+
+COMMON_DEPEND="
+ >=dev-libs/dbus-glib-0.71:0
+ >=dev-libs/glib-2.36:2
+ gnome-base/dconf:0
+ >=mate-base/libmatekbd-1.17.0
+ >=mate-base/mate-desktop-1.17.0
+ >=mate-base/mate-menus-1.10.0
+ >=sys-apps/dbus-0.30:0
+ >=x11-libs/gdk-pixbuf-2.14:2
+ >=x11-libs/libX11-1:0
+ x11-libs/cairo:0
+ >=x11-libs/gtk+-3.14:3
+ x11-libs/libXext:0
+ x11-libs/libXrandr:0
+ x11-libs/libXScrnSaver:0
+ x11-libs/libXxf86misc:0
+ x11-libs/libXxf86vm:0
+ x11-libs/libxklavier:0
+ x11-libs/pango:0
+ virtual/libintl:0
+ consolekit? ( sys-auth/consolekit:0 )
+ libnotify? ( >=x11-libs/libnotify-0.7:0 )
+ opengl? ( virtual/opengl:0 )
+ pam? ( gnome-base/gnome-keyring:0 virtual/pam:0 )
+ !pam? ( kernel_linux? ( sys-apps/shadow:0 ) )
+ systemd? ( sys-apps/systemd:0= )
+ !!<gnome-extra/gnome-screensaver-3:0"
+
+RDEPEND="${COMMON_DEPEND}
+ >=mate-base/mate-session-manager-1.6"
+
+DEPEND="${COMMON_DEPEND}
+ >=dev-util/intltool-0.50.1:*
+ sys-devel/gettext:*
+ x11-proto/randrproto:0
+ x11-proto/scrnsaverproto:0
+ x11-proto/xextproto:0
+ x11-proto/xf86miscproto:0
+ virtual/pkgconfig:*"
+
+src_configure() {
+ mate_src_configure \
+ --enable-locking \
+ --with-kbd-layout-indicator \
+ --with-xf86gamma-ext \
+ --with-xscreensaverdir=/usr/share/xscreensaver/config \
+ --with-xscreensaverhackdir=/usr/$(get_libdir)/misc/xscreensaver \
+ $(use_with X x) \
+ $(use_with consolekit console-kit) \
+ $(use_with libnotify) \
+ $(use_with opengl libgl) \
+ $(use_with systemd) \
+ $(use_enable debug) \
+ $(use_enable pam)
+}
+
+src_install() {
+ mate_src_install
+
+ # Install the conversion script in the documentation.
+ dodoc "${S}"/data/migrate-xscreensaver-config.sh
+ dodoc "${S}"/data/xscreensaver-config.xsl
+ dodoc "${FILESDIR}"/xss-conversion.txt
+
+ # Non PAM users will need this suid to read the password hashes.
+ # OpenPAM users will probably need this too when
+ # https://bugzilla.gnome.org/show_bug.cgi?id=370847
+ # is fixed.
+ if ! use pam ; then
+ fperms u+s /usr/libexec/mate-screensaver-dialog
+ fi
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ mate_pkg_postinst
+
+ if has_version "<x11-base/xorg-server-1.5.3-r4" ; then
+ ewarn "You have a too old xorg-server installation. This will cause"
+ ewarn "mate-screensaver to eat up your CPU. Please consider upgrading."
+ echo
+ fi
+
+ if has_version "<x11-misc/xscreensaver-4.22-r2" ; then
+ ewarn "You have xscreensaver installed, you probably want to disable it."
+ ewarn "To prevent a duplicate screensaver entry in the menu, you need to"
+ ewarn "build xscreensaver with -gnome in the USE flags."
+ ewarn "echo \"x11-misc/xscreensaver -gnome\" >> /etc/portage/package.use"
+ echo
+ fi
+
+ readme.gentoo_print_elog
+}
diff --git a/mate-extra/mate-screensaver/metadata.xml b/mate-extra/mate-screensaver/metadata.xml
new file mode 100644
index 000000000000..a0d6c3ac7d57
--- /dev/null
+++ b/mate-extra/mate-screensaver/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>mate@gentoo.org</email>
+ <name>Gentoo MATE Desktop</name>
+ </maintainer>
+ <use>
+ <flag name="consolekit">Enable support for
+ <pkg>sys-auth/consolekit</pkg></flag>
+ <flag name="gtk3">Build with GTK+3 instead of GTK+2</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">mate-desktop/mate-screensaver</remote-id>
+ </upstream>
+</pkgmetadata>