summaryrefslogtreecommitdiff
path: root/app-eselect/eselect-gnome-shell-extensions
diff options
context:
space:
mode:
Diffstat (limited to 'app-eselect/eselect-gnome-shell-extensions')
-rw-r--r--app-eselect/eselect-gnome-shell-extensions/Manifest3
-rw-r--r--app-eselect/eselect-gnome-shell-extensions/eselect-gnome-shell-extensions-20180306.ebuild48
-rw-r--r--app-eselect/eselect-gnome-shell-extensions/metadata.xml8
3 files changed, 59 insertions, 0 deletions
diff --git a/app-eselect/eselect-gnome-shell-extensions/Manifest b/app-eselect/eselect-gnome-shell-extensions/Manifest
new file mode 100644
index 000000000000..a2526ef9272f
--- /dev/null
+++ b/app-eselect/eselect-gnome-shell-extensions/Manifest
@@ -0,0 +1,3 @@
+DIST eselect-gnome-shell-extensions-20180306.tar.xz 2676 BLAKE2B 846e282f99828ce795ba98557bb97301f576895c46e98ae0c079dfee8461146756c85573c1ce24e4ca3690d2ea8383dd988e40d3fe271a32b1987e027b47e3ae SHA512 2c0b9119219d8f3c54201f9865e1a9dd6889ccf26537802c591e89adb545f38aca13fa6b1119fe52d4183daf4adb6d2b1053b252d2756778b31626688092196d
+EBUILD eselect-gnome-shell-extensions-20180306.ebuild 1581 BLAKE2B 9355c0f010daa96bdf7d49702588fd2c9ef9375120434d64435b88deafe961329ec080f981a8b69ad081710c849140a1b24cce259495953e57f2edb4e5984d9f SHA512 242c02f1fb2d0f60d23b6336d4bce8e3750872cbfccf05b67eb9577f967c571ed0d2e5efabe1ae5aefdacc0ae8db84b4fa3779e6205d490c43802afb70b3bad2
+MISC metadata.xml 249 BLAKE2B e71e1b95fee768c696704acbf7e3cf0e599ed2bc8de92bae0141d1194ef9e842bdc292798904487a9b90ddfda9b0e84abd3b76b1518576c1d288240e4e46f110 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506
diff --git a/app-eselect/eselect-gnome-shell-extensions/eselect-gnome-shell-extensions-20180306.ebuild b/app-eselect/eselect-gnome-shell-extensions/eselect-gnome-shell-extensions-20180306.ebuild
new file mode 100644
index 000000000000..ab57eba3daec
--- /dev/null
+++ b/app-eselect/eselect-gnome-shell-extensions/eselect-gnome-shell-extensions-20180306.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Manages system defaults for GNOME Shell extensions"
+HOMEPAGE="https://www.gentoo.org/"
+SRC_URI="https://dev.gentoo.org/~leio/distfiles/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+# gnome-shell schemas are used in pkg_postinst
+COMMON_DEPEND="app-admin/eselect
+ >=dev-libs/glib-2.26:2
+ gnome-base/gsettings-desktop-schemas
+ gnome-base/gnome-shell"
+RDEPEND="${COMMON_DEPEND}
+ dev-lang/perl
+ dev-perl/JSON"
+DEPEND="${COMMON_DEPEND}
+ app-arch/xz-utils"
+
+src_install() {
+ insinto "/usr/share/eselect/modules"
+ doins gnome-shell-extensions.eselect
+ keepdir "/etc/eselect/gnome-shell-extensions"
+ # The actual gschema override file will be created in pkg_postinst.
+ dosym "../../../../etc/eselect/gnome-shell-extensions/${PN}.gschema.override" \
+ "/usr/share/glib-2.0/schemas/${PN}.gschema.override"
+}
+
+pkg_postinst() {
+ einfo "Updating list of installed extensions"
+ eselect gnome-shell-extensions update || die
+ local keyname="disabled-extensions"
+ has_version ">=gnome-base/gnome-shell-3.1.90" &&
+ keyname="enabled-extensions"
+ elog
+ elog "eselect gnome-shell-extensions manages the system default value of"
+ elog "the org.gnome.shell ${keyname} key. To override the default"
+ elog "for an individual user, use the gsettings command, e.g."
+ elog "\$ gsettings set org.gnome.shell ${keyname} \"['foo', 'bar']\""
+ elog "To undo per-user changes and use the system default, do"
+ elog "\$ gsettings reset org.gnome.shell ${keyname}"
+ elog
+}
diff --git a/app-eselect/eselect-gnome-shell-extensions/metadata.xml b/app-eselect/eselect-gnome-shell-extensions/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/app-eselect/eselect-gnome-shell-extensions/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>