You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.1 KiB
82 lines
2.1 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
inherit gnome.org readme.gentoo-r1 meson xdg
|
||
|
|
||
|
DESCRIPTION="JavaScript extensions for GNOME Shell"
|
||
|
HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShell/Extensions"
|
||
|
|
||
|
LICENSE="GPL-2+"
|
||
|
SLOT="0"
|
||
|
IUSE="examples test"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
|
COMMON_DEPEND="
|
||
|
>=dev-libs/glib-2.26:2
|
||
|
>=gnome-base/libgtop-2.28.3[introspection]
|
||
|
>=app-eselect/eselect-gnome-shell-extensions-20111211
|
||
|
"
|
||
|
RDEPEND="${COMMON_DEPEND}
|
||
|
>=dev-libs/gjs-1.29
|
||
|
dev-libs/gobject-introspection:=
|
||
|
dev-libs/atk[introspection]
|
||
|
gnome-base/gnome-menus:3[introspection]
|
||
|
>=gnome-base/gnome-shell-3.14.2
|
||
|
media-libs/clutter:1.0[introspection]
|
||
|
net-libs/telepathy-glib[introspection]
|
||
|
x11-libs/gdk-pixbuf:2[introspection]
|
||
|
x11-libs/gtk+:3[introspection]
|
||
|
x11-libs/pango[introspection]
|
||
|
x11-themes/adwaita-icon-theme
|
||
|
x11-wm/mutter[introspection]
|
||
|
"
|
||
|
DEPEND="${COMMON_DEPEND}
|
||
|
dev-lang/sassc
|
||
|
>=sys-devel/gettext-0.19.8
|
||
|
virtual/pkgconfig
|
||
|
test? ( dev-lang/spidermonkey:52 )
|
||
|
"
|
||
|
|
||
|
RESTRICT="!test? ( test )"
|
||
|
|
||
|
DISABLE_AUTOFORMATTING="yes"
|
||
|
DOC_CONTENTS="Installed extensions installed are initially disabled by default.
|
||
|
To change the system default and enable some extensions, you can use
|
||
|
# eselect gnome-shell-extensions
|
||
|
|
||
|
Alternatively, to enable/disable extensions on a per-user basis,
|
||
|
you can use the https://extensions.gnome.org/ web interface, the
|
||
|
gnome-extra/gnome-tweak-tool GUI, or modify the org.gnome.shell
|
||
|
enabled-extensions gsettings key from the command line or a script."
|
||
|
|
||
|
src_configure() {
|
||
|
meson_src_configure \
|
||
|
-Dextension_set=all \
|
||
|
-Dclassic_mode=true
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
meson_src_install
|
||
|
|
||
|
local example="example@gnome-shell-extensions.gcampax.github.com"
|
||
|
if use examples; then
|
||
|
mv "${ED}usr/share/gnome-shell/extensions/${example}" \
|
||
|
"${ED}usr/share/doc/${PF}/" || die
|
||
|
else
|
||
|
rm -r "${ED}usr/share/gnome-shell/extensions/${example}" || die
|
||
|
fi
|
||
|
|
||
|
readme.gentoo_create_doc
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
xdg_pkg_postinst
|
||
|
|
||
|
ebegin "Updating list of installed extensions"
|
||
|
eselect gnome-shell-extensions update
|
||
|
eend $?
|
||
|
|
||
|
readme.gentoo_print_elog
|
||
|
}
|