summaryrefslogtreecommitdiff
blob: 2e8489c90388332f4aeec14e32d1af223b33106d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit gnome2-utils

DESCRIPTION="Unofficial gnome based session with different default settings and extensions"
HOMEPAGE="https://gitlab.com/pachoramos/pch-session"
SRC_URI="https://gitlab.com/pachoramos/${PN}/-/archive/${PV}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="bluetooth qt5 webp"

RDEPEND="
	>=gnome-base/gnome-shell-43
	>=gnome-extra/gnome-shell-extensions-43
	>=gnome-extra/gnome-shell-extension-alphabetical-grid-26.0
	>=gnome-extra/gnome-shell-extension-appindicator-46
	>=gnome-extra/gnome-shell-extension-applications-overview-tooltip-16
	>=gnome-extra/gnome-shell-extension-bing-wallpaper-43
	>=gnome-extra/gnome-shell-extension-control-blur-effect-on-lock-screen-20220323-r1
	>=gnome-extra/gnome-shell-extension-dash-to-panel-52
	>=gnome-extra/gnome-shell-extension-desktop-icons-ng-47
	>=gnome-extra/gnome-shell-extension-gsconnect-54
	>=gnome-extra/gnome-shell-extension-weather-in-the-clock-20221024
	>=gnome-extra/gnome-tweaks-40.10

	>=gnome-extra/gnome-clocks-43.0
	>=gnome-extra/seahorse-nautilus-3.11.92_p20220906
	>=media-fonts/fonts-meta-2
	x11-themes/papirus-icon-theme

	bluetooth? ( >=gnome-extra/gnome-shell-extension-bluetooth-quick-connect-30 )
	qt5? ( x11-themes/adwaita-qt )
	webp? ( gui-libs/gdk-pixbuf-loader-webp )
"
BDEPEND=""
DEPEND=""

src_prepare() {
	default
	if ! use bluetooth; then
		sed -i -e \
			's:"bluetooth-quick-connect@bjarosze.gmail.com",::g' \
			usr/share/gnome-shell/modes/pch*.json || die
	fi
}

pkg_preinst() {
	gnome2_schemas_update
}

src_install() {
	insinto /usr
	doins -r usr/.
	einstalldocs
}

pkg_postinst() {
	gnome2_schemas_update
}

pkg_postrm() {
	gnome2_schemas_update
}