x11-misc/ly: Fixing Prefixes in ly-9999 and adjusting X11 related dependencies in 1.0.2/9999

Signed-off-by: Michal Vu <saigon-tech@tuta.io>
This commit is contained in:
Michal Vu
2024-08-13 11:11:44 +02:00
parent 60eed07046
commit 09034012fe
2 changed files with 12 additions and 6 deletions

View File

@@ -30,12 +30,12 @@ DEPEND="
|| ( dev-lang/zig-bin:${EZIG_MIN} dev-lang/zig:${EZIG_MIN} ) || ( dev-lang/zig-bin:${EZIG_MIN} dev-lang/zig:${EZIG_MIN} )
sys-libs/pam sys-libs/pam
x11-libs/libxcb x11-libs/libxcb
x11-apps/xrdb
x11-apps/xmessage
" "
RDEPEND=" RDEPEND="
x11-base/xorg-server x11-base/xorg-server
x11-apps/xauth x11-apps/xauth
x11-apps/xrdb
x11-apps/xmessage
sys-libs/ncurses sys-libs/ncurses
" "

View File

@@ -3,7 +3,7 @@
EAPI=8 EAPI=8
inherit edo pam systemd git-r3 inherit edo pam systemd git-r3 prefix
DESCRIPTION="Ly - a TUI display manager (live ebuild)" DESCRIPTION="Ly - a TUI display manager (live ebuild)"
HOMEPAGE="https://github.com/fairyglade/ly" HOMEPAGE="https://github.com/fairyglade/ly"
@@ -13,8 +13,6 @@ EGIT_REPO_URI="https://github.com/fairyglade/ly.git"
LICENSE="WTFPL-2" LICENSE="WTFPL-2"
SLOT="0" SLOT="0"
# KEYWORDS is omitted for live ebuilds
# Specify the required Zig version range # Specify the required Zig version range
EZIG_MIN="0.12" EZIG_MIN="0.12"
EZIG_MAX_EXCLUSIVE="0.13" EZIG_MAX_EXCLUSIVE="0.13"
@@ -28,6 +26,7 @@ RDEPEND="
x11-base/xorg-server x11-base/xorg-server
x11-apps/xauth x11-apps/xauth
sys-libs/ncurses sys-libs/ncurses
x11-apps/xrdb
" "
# Ignore QA warnings about missing build-id for Zig binaries # Ignore QA warnings about missing build-id for Zig binaries
@@ -172,8 +171,15 @@ src_unpack() {
ezig fetch --global-cache-dir "${WORKDIR}/deps" "https://github.com/ziglibs/ini/archive/${ZIGLIBINI}.tar.gz" ezig fetch --global-cache-dir "${WORKDIR}/deps" "https://github.com/ziglibs/ini/archive/${ZIGLIBINI}.tar.gz"
} }
# Compile the project
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() { src_compile() {
# Building ly & accomodate for prefixed environment
ezig build --system "${WORKDIR}/deps/p" -Doptimize=ReleaseSafe ezig build --system "${WORKDIR}/deps/p" -Doptimize=ReleaseSafe
} }