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