Skip to content

Commit

Permalink
x11-misc/ly: Fixing Prefixes in ly-1.0.2 that were not properly handl…
Browse files Browse the repository at this point in the history
…ed in the previous ebuild version

Signed-off-by: Michal Vu <[email protected]>
  • Loading branch information
Michal Vu committed Aug 13, 2024
1 parent 8a7b2d1 commit 60eed07
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions x11-misc/ly/ly-1.0.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 60eed07

Please sign in to comment.