gui-apps/lswt: fix CFLAGS and support EPREFIX

Bug: https://bugs.gentoo.org/260867
Closes: https://bugs.gentoo.org/927846
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
Lucio Sauer
2024-05-12 18:58:55 +02:00
parent 3bb00484a9
commit a36e877ff0
2 changed files with 13 additions and 6 deletions

View File

@@ -24,12 +24,16 @@ DEPEND="dev-libs/wayland"
RDEPEND="${DEPEND}"
BDEPEND="dev-util/wayland-scanner"
src_prepare() {
default
sed '/^CFLAGS/{s/=/:=/;s/-Werror//;s/$/ $(CFLAGS)/}' \
-i Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
# Need to install to /usr instead of /usr/local
# and the Makefile doens't handle DESTDIR properly
emake PREFIX="${D}"/usr install
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
}

View File

@@ -24,12 +24,15 @@ DEPEND="dev-libs/wayland"
RDEPEND="${DEPEND}"
BDEPEND="dev-util/wayland-scanner"
src_prepare() {
default
sed '/^CFLAGS/s/-Werror//' -i Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
# Need to install to /usr instead of /usr/local
# and the Makefile doens't handle DESTDIR properly
emake PREFIX="${D}"/usr install
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
}