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 committed 2024-05-12 19:00:28 +02:00
1 parent 3bb00484a9
commit a36e877ff0
2 files changed
+13 -6

No files matched your search

@@ -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
}
+6 -3
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
}