commit: 60eed070466bfcfd1222b60e96f8ef7ef7a0d441 Author: Michal Vu <saigon-tech <AT> tuta <DOT> io> AuthorDate: Tue Aug 13 08:43:05 2024 +0000 Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net> CommitDate: Tue Aug 13 08:43:05 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=60eed070
x11-misc/ly: Fixing Prefixes in ly-1.0.2 that were not properly handled in the previous ebuild version Signed-off-by: Michal Vu <saigon-tech <AT> tuta.io> x11-misc/ly/ly-1.0.2.ebuild | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/x11-misc/ly/ly-1.0.2.ebuild b/x11-misc/ly/ly-1.0.2.ebuild index 28335a1f1..d46e48aa8 100644 --- a/x11-misc/ly/ly-1.0.2.ebuild +++ b/x11-misc/ly/ly-1.0.2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit edo pam systemd +inherit edo pam systemd prefix DESCRIPTION="Ly - a TUI display manager" HOMEPAGE="https://github.com/fairyglade/ly" @@ -30,6 +30,8 @@ DEPEND=" || ( dev-lang/zig-bin:${EZIG_MIN} dev-lang/zig:${EZIG_MIN} ) sys-libs/pam x11-libs/libxcb + x11-apps/xrdb + x11-apps/xmessage " RDEPEND=" x11-base/xorg-server @@ -115,8 +117,15 @@ src_unpack() { ezig fetch --global-cache-dir "${WORKDIR}/deps" "${DISTDIR}/ziglibini-${ZIGLIBINI}.tar.gz" } +src_prepare(){ + default + # Adjusting absolute paths in the following files to use Gentoo's ${EPREFIX} + hprefixify "${RES}/config.ini" "${RES}/xsetup.sh" "${RES}/wsetup.sh" +} + src_compile() { - ezig build --system "${WORKDIR}/deps/p" -Doptimize=ReleaseSafe + # Building ly & accomodate for prefixed environment + ezig build --system "${WORKDIR}/deps/p" -Doptimize=ReleaseSafe -Ddata_directory="${EPREFIX}/etc/ly" } src_install() {