blob: f3d1e7c2b1e8ecc763b50365a124282876733ee6 (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1 gnome2-utils xdg
DESCRIPTION="Aplication able to temporarily inhibit the screensaver"
HOMEPAGE="https://codeberg.org/WhyNotHugo/caffeine-ng"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
else
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
SLOT="0"
RDEPEND="
>=dev-python/ewmh-0.1.4[${PYTHON_USEDEP}]
dev-python/pygobject:3[${PYTHON_USEDEP}]
>=dev-python/pyxdg-0.25[${PYTHON_USEDEP}]
dev-python/dbus-python[${PYTHON_USEDEP}]
>=dev-python/docopt-0.6.2[${PYTHON_USEDEP}]
dev-python/pulsectl[${PYTHON_USEDEP}]
>=dev-python/setproctitle-1.1.10[${PYTHON_USEDEP}]
dev-libs/libappindicator:3
"
src_prepare() {
sed "/wheel/d" -i setup.py || die
sed "s/;TrayIcon;DesktopUtility//" -i share/applications/caffeine.desktop || die
gunzip share/man/man1/caffeine.1.gz || die
distutils-r1_src_prepare
}
pkg_postinst() {
gnome2_gconf_install
gnome2_schemas_update
xdg_pkg_postinst
}
pkg_postrm() {
gnome2_gconf_uninstall
gnome2_schemas_update
xdg_pkg_postrm
}
|