Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/xsnap/
Date: Thu, 15 Apr 2021 06:40:07
Message-Id: 1618468737.90061e9a748419f7a3e2e23ca9e10623c294a938.juippis@gentoo
1 commit: 90061e9a748419f7a3e2e23ca9e10623c294a938
2 Author: Ionen Wolkens <sudinave <AT> gmail <DOT> com>
3 AuthorDate: Wed Apr 14 13:07:09 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 15 06:38:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90061e9a
7
8 x11-misc/xsnap: fix build with -native-symlinks
9
10 Removed no longer necessary sed for toolchain vars and swapped
11 DEPEND with BDEPEND to put imake in the right block
12
13 Closes: https://bugs.gentoo.org/726242
14 Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com>
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 x11-misc/xsnap/xsnap-1.5.15-r2.ebuild | 25 +++++++++++--------------
18 1 file changed, 11 insertions(+), 14 deletions(-)
19
20 diff --git a/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild b/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild
21 index e28502a5b0c..dd43dcab643 100644
22 --- a/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild
23 +++ b/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild
24 @@ -24,12 +24,12 @@ RDEPEND="
25 ${COMMON_DEPEND}
26 media-fonts/font-misc-misc
27 "
28 -DEPEND="
29 - ${COMMON_DEPEND}
30 +DEPEND="${COMMON_DEPEND}"
31 +BDEPEND="
32 app-text/rman
33 dev-lang/perl
34 x11-base/xorg-proto
35 - x11-misc/imake
36 + >=x11-misc/imake-1.0.8-r1
37 "
38 DOCS=( AUTHORS Changelog README )
39 PATCHES=( "${FILESDIR}"/${P}-root_name.patch )
40 @@ -46,21 +46,18 @@ src_prepare() {
41 sed -i \
42 -e '/^LOCALEDIR=/d' \
43 po/Makefile || die
44 +}
45
46 - xmkmf || die
47 -
48 - sed -i \
49 - -e '/ CC = /d' \
50 - -e '/ LD = /d' \
51 - -e '/ CDEBUGFLAGS = /d' \
52 - -e '/ CCOPTIONS = /d' \
53 - -e 's|CPP = cpp|CPP = $(CC)|g' \
54 - Makefile || die
55 +src_configure() {
56 + CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
57 + IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
58 }
59
60 src_compile() {
61 - tc-export CC
62 - emake CCOPTIONS="${CFLAGS}" EXTRA_LDOPTIONS="${LDFLAGS}"
63 + emake \
64 + CC="$(tc-getCC)" \
65 + CDEBUGFLAGS="${CFLAGS}" \
66 + EXTRA_LDOPTIONS="${LDFLAGS}"
67 }
68
69 src_install() {