8d4ffa58395571d77ebdb0f609d0ce6e29af211c
[gentoo.git] /
1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI=7
5
6 # Workaround until https://bugzilla.gnome.org/show_bug.cgi?id=663725 is fixed
7 DESCRIPTION="Show tooltip with full name and description"
8 HOMEPAGE="https://github.com/RaphaelRochet/applications-overview-tooltip"
9 SRC_URI="https://github.com/RaphaelRochet/applications-overview-tooltip/archive/v${PV}.tar.gz -> ${P}.tar.gz"
10
11 # https://github.com/RaphaelRochet/applications-overview-tooltip/issues/7
12 LICENSE="public-domain"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE=""
16
17 # glib for glib-compile-schemas at build time, needed at runtime anyways
18 COMMON_DEPEND="
19         dev-libs/glib:2
20 "
21 RDEPEND="${COMMON_DEPEND}
22         app-eselect/eselect-gnome-shell-extensions
23         >=gnome-base/gnome-shell-3.20
24 "
25 DEPEND="${COMMON_DEPEND}"
26 BDEPEND=""
27
28 S="${WORKDIR}/${P/gnome-shell-extension-}"
29
30 src_install() {
31         einstalldocs
32         rm -f README.md || die
33         insinto /usr/share/gnome-shell/extensions/applications-overview-tooltip@RaphaelRochet
34         doins -r *
35         glib-compile-schemas "${ED}"/usr/share/gnome-shell/extensions/applications-overview-tooltip@RaphaelRochet/schemas || die
36 }
37
38 pkg_postinst() {
39         ebegin "Updating list of installed extensions"
40         eselect gnome-shell-extensions update
41         eend $?
42 }