From 90061e9a748419f7a3e2e23ca9e10623c294a938 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Wed, 14 Apr 2021 09:07:09 -0400 Subject: x11-misc/xsnap: fix build with -native-symlinks Removed no longer necessary sed for toolchain vars and swapped DEPEND with BDEPEND to put imake in the right block Closes: https://bugs.gentoo.org/726242 Signed-off-by: Ionen Wolkens Signed-off-by: Joonas Niilola --- x11-misc/xsnap/xsnap-1.5.15-r2.ebuild | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'x11-misc/xsnap') diff --git a/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild b/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild index e28502a5b0ca..dd43dcab6432 100644 --- a/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild +++ b/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild @@ -24,12 +24,12 @@ RDEPEND=" ${COMMON_DEPEND} media-fonts/font-misc-misc " -DEPEND=" - ${COMMON_DEPEND} +DEPEND="${COMMON_DEPEND}" +BDEPEND=" app-text/rman dev-lang/perl x11-base/xorg-proto - x11-misc/imake + >=x11-misc/imake-1.0.8-r1 " DOCS=( AUTHORS Changelog README ) PATCHES=( "${FILESDIR}"/${P}-root_name.patch ) @@ -46,21 +46,18 @@ src_prepare() { sed -i \ -e '/^LOCALEDIR=/d' \ po/Makefile || die +} - xmkmf || die - - sed -i \ - -e '/ CC = /d' \ - -e '/ LD = /d' \ - -e '/ CDEBUGFLAGS = /d' \ - -e '/ CCOPTIONS = /d' \ - -e 's|CPP = cpp|CPP = $(CC)|g' \ - Makefile || die +src_configure() { + CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \ + IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die } src_compile() { - tc-export CC - emake CCOPTIONS="${CFLAGS}" EXTRA_LDOPTIONS="${LDFLAGS}" + emake \ + CC="$(tc-getCC)" \ + CDEBUGFLAGS="${CFLAGS}" \ + EXTRA_LDOPTIONS="${LDFLAGS}" } src_install() { -- cgit v1.2.3-65-gdbad