mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
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:
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user