From a2347a922275f14589d34fbdbf284917c58bb988 Mon Sep 17 00:00:00 2001 From: Theo Anderson Date: Thu, 15 Apr 2021 17:49:27 +1200 Subject: [PATCH] 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 --- gui-apps/wev/wev-1.0.0.ebuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gui-apps/wev/wev-1.0.0.ebuild b/gui-apps/wev/wev-1.0.0.ebuild index 9e96f8688b..bc72849eb8 100644 --- a/gui-apps/wev/wev-1.0.0.ebuild +++ b/gui-apps/wev/wev-1.0.0.ebuild @@ -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 }