gui-apps/gtklock-extras: fix /usr/local install location to /usr

* update EAPI 7 -> 8

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
Gonçalo Negrier Duarte
2023-08-03 19:13:59 +01:00
parent d994e303bf
commit befeaae517

View File

@@ -1,7 +1,7 @@
# Copyright 1999-2023 Gentoo Authors # Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=8
inherit git-r3 inherit git-r3
DESCRIPTION="Gtklock modules" DESCRIPTION="Gtklock modules"
@@ -26,43 +26,47 @@ DEPEND="${RDEPEND}"
IUSE="playerctl powerbar userinfo" IUSE="playerctl powerbar userinfo"
REQUIRED_USE="|| ( playerctl powerbar userinfo )" REQUIRED_USE="|| ( playerctl powerbar userinfo )"
src_compile() { src_prepare() {
if use powerbar; then if use powerbar; then
pushd gtklock-powerbar-module || die cd "${S}/gtklock-powerbar-module" || die
emake eapply "${S}/gtklock-powerbar-module.patch"
popd || die cd "${S}" || die
fi fi
if use playerctl; then if use playerctl; then
pushd gtklock-playerctl-module || die cd "${S}/gtklock-playerctl-module" || die
emake eapply "${S}/gtklock-playerctl-module.patch"
popd || die cd "${S}" || die
fi fi
if use userinfo; then if use userinfo; then
pushd gtklock-userinfo-module || die cd "${S}/gtklock-userinfo-module" || die
emake eapply "${S}/gtklock-userinfo-module.patch"
popd || die cd "${S}" || die
fi fi
eapply_user
} }
src_install() { src_install() {
dodir /usr/local/lib/gtklock dodir /usr/local/lib/gtklock
if use powerbar; then if use powerbar; then
pushd gtklock-powerbar-module || die pushd gtklock-powerbar-module || die
insinto /usr/local/lib/gtklock && doins powerbar-module.so emake
emake DESTDIR="${D}" install
popd || die popd || die
fi fi
if use playerctl; then if use playerctl; then
pushd gtklock-playerctl-module || die pushd gtklock-playerctl-module || die
insinto /usr/local/lib/gtklock && doins playerctl-module.so emake
emake DESTDIR="${D}" install
popd || die popd || die
fi fi
if use userinfo; then if use userinfo; then
pushd gtklock-userinfo-module || die pushd gtklock-userinfo-module || die
insinto /usr/local/lib/gtklock && doins userinfo-module.so emake
emake DESTDIR="${D}" install
popd || die popd || die
fi fi
} }