mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
x11-misc/caffeine-ng: fix stuff, drop live
Closes: https://bugs.gentoo.org/783795 Closes: https://bugs.gentoo.org/783798 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -3,48 +3,53 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8,9} )
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1 gnome2-utils
|
||||
|
||||
DESCRIPTION="Aplication able to temporarily inhibit the screensaver."
|
||||
DESCRIPTION="Aplication able to temporarily inhibit the screensaver"
|
||||
HOMEPAGE="https://github.com/caffeine-ng/caffeine-ng"
|
||||
if [[ ${PV} == 9999 ]];then
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="${HOMEPAGE}.git"
|
||||
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/caffeine-ng/caffeine-ng/releases/download/v${PV}/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
dev-python/pygobject:3
|
||||
>=dev-python/pyxdg-0.25
|
||||
dev-python/dbus-python
|
||||
>=dev-python/docopt-0.6.2
|
||||
>=dev-python/setproctitle-1.1.10
|
||||
dev-python/setuptools
|
||||
>=dev-python/wheel-0.29.0
|
||||
dev-python/setuptools_scm
|
||||
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
|
||||
x11-libs/gtk+:3
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_preinst(){
|
||||
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_preinst() {
|
||||
gnome2_schemas_savelist
|
||||
}
|
||||
|
||||
pkg_postinst(){
|
||||
pkg_postinst() {
|
||||
gnome2_gconf_install
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm(){
|
||||
pkg_postrm() {
|
||||
gnome2_gconf_uninstall
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8,9} )
|
||||
|
||||
inherit distutils-r1 gnome2-utils
|
||||
|
||||
DESCRIPTION="Aplication able to temporarily inhibit the screensaver."
|
||||
HOMEPAGE="https://github.com/caffeine-ng/caffeine-ng"
|
||||
if [[ ${PV} == 9999 ]];then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="${HOMEPAGE}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/caffeine-ng/caffeine-ng/releases/download/v${PV}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
dev-python/pygobject:3
|
||||
>=dev-python/pyxdg-0.25
|
||||
dev-python/dbus-python
|
||||
>=dev-python/docopt-0.6.2
|
||||
>=dev-python/setproctitle-1.1.10
|
||||
dev-python/setuptools
|
||||
>=dev-python/wheel-0.29.0
|
||||
dev-python/setuptools_scm
|
||||
dev-libs/libappindicator:3
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libnotify
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_preinst(){
|
||||
gnome2_schemas_savelist
|
||||
}
|
||||
|
||||
pkg_postinst(){
|
||||
gnome2_gconf_install
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm(){
|
||||
gnome2_gconf_uninstall
|
||||
gnome2_schemas_update
|
||||
}
|
||||
Reference in New Issue
Block a user