diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2011-11-06 01:42:33 +0000 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2011-11-06 01:42:33 +0000 |
commit | 703daa5f78a4bc7aa61b521023e8651baeb9d9cc (patch) | |
tree | 01d1283cf5cce149a50dda5574d445ed7cfae2d9 /app-admin/eselect-gnome-shell-extensions | |
parent | Stable on amd64 wrt bug #385967 (diff) | |
download | historical-703daa5f78a4bc7aa61b521023e8651baeb9d9cc.tar.gz historical-703daa5f78a4bc7aa61b521023e8651baeb9d9cc.tar.bz2 historical-703daa5f78a4bc7aa61b521023e8651baeb9d9cc.zip |
Add eselect module for setting systemwide gnome shell extensions defaults from the gnome overlay.
Package-Manager: portage-2.2.0_alpha72/cvs/Linux x86_64
Diffstat (limited to 'app-admin/eselect-gnome-shell-extensions')
4 files changed, 80 insertions, 0 deletions
diff --git a/app-admin/eselect-gnome-shell-extensions/ChangeLog b/app-admin/eselect-gnome-shell-extensions/ChangeLog new file mode 100644 index 000000000000..3b5ce178b930 --- /dev/null +++ b/app-admin/eselect-gnome-shell-extensions/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-admin/eselect-gnome-shell-extensions +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-gnome-shell-extensions/ChangeLog,v 1.1 2011/11/06 01:42:33 tetromino Exp $ + +*eselect-gnome-shell-extensions-20110911 (06 Nov 2011) + + 06 Nov 2011; Alexandre Rostovtsev <tetromino@gentoo.org> + +eselect-gnome-shell-extensions-20110911.ebuild, +metadata.xml: + Add eselect module for setting systemwide gnome shell extensions defaults + from the gnome overlay. + diff --git a/app-admin/eselect-gnome-shell-extensions/Manifest b/app-admin/eselect-gnome-shell-extensions/Manifest new file mode 100644 index 000000000000..6a75fc324b1f --- /dev/null +++ b/app-admin/eselect-gnome-shell-extensions/Manifest @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +DIST eselect-gnome-shell-extensions-20110911.tar.xz 2684 RMD160 ddf4f1dea589a9a0410f59d7f9e6d58303f0bff3 SHA1 cf8bc0ebd822c1a53d2aea54ae195ea9a3b03c08 SHA256 2e6ee5cdd968ce4cb34d81487d72f3ce95c3709d7a528f34e73743678cfb4da9 +EBUILD eselect-gnome-shell-extensions-20110911.ebuild 1754 RMD160 952f5c0b7ac888cf1bf3812a4c3168fad7141371 SHA1 bde29e585b39952404dbb64cdc892ca17f30af63 SHA256 4b14de836d40b0a019cde3ddaf2437a34eee41f24bc13c7be78120c8d6869c3f +MISC ChangeLog 540 RMD160 2d0571830c3540f175d3e5fa8148acdb1a3e292d SHA1 093c42efa215491a9514944dc51b49001dc63c77 SHA256 081d6099160a5adf698bfcff8668d9e11495aebc49dc5b997c5379ff5dc51c55 +MISC metadata.xml 158 RMD160 c0e2bae8e91bb6be8922bac5e4f597302e06587e SHA1 38f78e9790bcd4382b4a49aa226aa6dda1d3a3d7 SHA256 3a7dbca0fdc557de69783e0663e2d76ddab129ea8a19b2d0ef6d3e5d1b947ce1 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iF4EAREIAAYFAk615g8ACgkQdjK8w9WeBnDKGAD9G/Z8CQ0sw/NwqEK2w58JJ221 +fWq6mb9gId/+7C+ahIQA/RPncybS05nN4yCM/ommDvPYXu3mHhDLDzenqMDHNoq4 +=Agum +-----END PGP SIGNATURE----- diff --git a/app-admin/eselect-gnome-shell-extensions/eselect-gnome-shell-extensions-20110911.ebuild b/app-admin/eselect-gnome-shell-extensions/eselect-gnome-shell-extensions-20110911.ebuild new file mode 100644 index 000000000000..549daf322c60 --- /dev/null +++ b/app-admin/eselect-gnome-shell-extensions/eselect-gnome-shell-extensions-20110911.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-gnome-shell-extensions/eselect-gnome-shell-extensions-20110911.ebuild,v 1.1 2011/11/06 01:42:33 tetromino Exp $ + +EAPI="4" + +DESCRIPTION="Manages system defaults for GNOME Shell extensions" +HOMEPAGE="http://www.gentoo.org" +SRC_URI="http://dev.gentoo.org/~tetromino/distfiles/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# 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 greated 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-admin/eselect-gnome-shell-extensions/metadata.xml b/app-admin/eselect-gnome-shell-extensions/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/app-admin/eselect-gnome-shell-extensions/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> |