mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 13:03:31 -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}"
|
RDEPEND="${DEPEND}"
|
||||||
BDEPEND="dev-util/wayland-scanner"
|
BDEPEND="dev-util/wayland-scanner"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
sed '/^CFLAGS/{s/=/:=/;s/-Werror//;s/$/ $(CFLAGS)/}' \
|
||||||
|
-i Makefile || die
|
||||||
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
emake CC="$(tc-getCC)"
|
emake CC="$(tc-getCC)"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
# Need to install to /usr instead of /usr/local
|
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||||
# and the Makefile doens't handle DESTDIR properly
|
|
||||||
emake PREFIX="${D}"/usr install
|
|
||||||
}
|
}
|
||||||
@@ -24,12 +24,15 @@ DEPEND="dev-libs/wayland"
|
|||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
BDEPEND="dev-util/wayland-scanner"
|
BDEPEND="dev-util/wayland-scanner"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
sed '/^CFLAGS/s/-Werror//' -i Makefile || die
|
||||||
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
emake CC="$(tc-getCC)"
|
emake CC="$(tc-getCC)"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
# Need to install to /usr instead of /usr/local
|
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||||
# and the Makefile doens't handle DESTDIR properly
|
|
||||||
emake PREFIX="${D}"/usr install
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user