From 184941c89e405cdc7c302779a45a4b27c0f51705 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Wed, 14 Apr 2021 10:01:23 -0400 Subject: 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 Signed-off-by: Joonas Niilola --- x11-plugins/wmnet/wmnet-1.06-r2.ebuild | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'x11-plugins/wmnet') diff --git a/x11-plugins/wmnet/wmnet-1.06-r2.ebuild b/x11-plugins/wmnet/wmnet-1.06-r2.ebuild index 21b7b7b3f0d1..df7520120959 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() { -- cgit v1.2.3-65-gdbad