commit:     184941c89e405cdc7c302779a45a4b27c0f51705
Author:     Ionen Wolkens <sudinave <AT> gmail <DOT> com>
AuthorDate: Wed Apr 14 14:01:23 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Apr 15 06:38:58 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=184941c8

x11-plugins/wmnet: fix build with -native-symlinks

Also swapped DEPEND with BDEPEND to put imake in the right block.

Closes: https://bugs.gentoo.org/726238
Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 x11-plugins/wmnet/wmnet-1.06-r2.ebuild | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/x11-plugins/wmnet/wmnet-1.06-r2.ebuild 
b/x11-plugins/wmnet/wmnet-1.06-r2.ebuild
index 21b7b7b3f0d..df752012095 100644
--- a/x11-plugins/wmnet/wmnet-1.06-r2.ebuild
+++ b/x11-plugins/wmnet/wmnet-1.06-r2.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
+inherit toolchain-funcs
+
 DESCRIPTION="WMnet is a dock.app network monitor"
 HOMEPAGE="https://www.dockapps.net/wmnet";
 SRC_URI="https://www.dockapps.net/download/${P}.tar.gz
@@ -15,16 +17,24 @@ IUSE=""
 
 RDEPEND="x11-libs/libX11
        x11-libs/libXext"
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
        x11-base/xorg-proto
-       x11-misc/imake
+       >=x11-misc/imake-1.0.8-r1
        app-text/rman"
 
 PATCHES=( "${WORKDIR}"/${P}-misc.patch )
 
+src_configure() {
+       CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
+               IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die "xmkmf failed"
+}
+
 src_compile() {
-       xmkmf || die "xmkmf failed."
-       emake CDEBUGFLAGS="${CFLAGS}" LDOPTIONS="${LDFLAGS}"
+       emake \
+               CC="$(tc-getCC)" \
+               CDEBUGFLAGS="${CFLAGS}" \
+               LDOPTIONS="${LDFLAGS}"
 }
 
 src_install() {

Reply via email to