gui-apps/wev: add dev-{libs,util}/wayland-{protocols,scanner} bdependency

* respect LDFLAGS
* move PREFIX location fix to existing sed statement

Closes: https://bugs.gentoo.org/781056
Signed-off-by: Theo Anderson <telans@posteo.de>
This commit is contained in:
Theo Anderson
2021-04-15 17:49:27 +12:00
parent 0a98bf4c02
commit a2347a9222

View File

@@ -18,10 +18,16 @@ DEPEND="
RDEPEND="${DEPEND}"
BDEPEND="
app-text/scdoc
dev-libs/wayland-protocols
dev-util/wayland-scanner
virtual/pkgconfig
"
src_install() {
export PREFIX="${EPREFIX}/usr"
src_prepare() {
default
# Respect LDFLAGS
# Install to /usr/ not /usr/local/
sed -e 's/$(LIBS)/$(LIBS) $(LDFLAGS)/' \
-e 's/local//' \
-i Makefile || die
}