1 |
commit: 184941c89e405cdc7c302779a45a4b27c0f51705 |
2 |
Author: Ionen Wolkens <sudinave <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Apr 14 14:01:23 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 15 06:38:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=184941c8 |
7 |
|
8 |
x11-plugins/wmnet: fix build with -native-symlinks |
9 |
|
10 |
Also swapped DEPEND with BDEPEND to put imake in the right block. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/726238 |
13 |
Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com> |
14 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 |
|
16 |
x11-plugins/wmnet/wmnet-1.06-r2.ebuild | 20 +++++++++++++++----- |
17 |
1 file changed, 15 insertions(+), 5 deletions(-) |
18 |
|
19 |
diff --git a/x11-plugins/wmnet/wmnet-1.06-r2.ebuild b/x11-plugins/wmnet/wmnet-1.06-r2.ebuild |
20 |
index 21b7b7b3f0d..df752012095 100644 |
21 |
--- a/x11-plugins/wmnet/wmnet-1.06-r2.ebuild |
22 |
+++ b/x11-plugins/wmnet/wmnet-1.06-r2.ebuild |
23 |
@@ -1,8 +1,10 @@ |
24 |
-# Copyright 1999-2020 Gentoo Authors |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
EAPI=7 |
29 |
|
30 |
+inherit toolchain-funcs |
31 |
+ |
32 |
DESCRIPTION="WMnet is a dock.app network monitor" |
33 |
HOMEPAGE="https://www.dockapps.net/wmnet" |
34 |
SRC_URI="https://www.dockapps.net/download/${P}.tar.gz |
35 |
@@ -15,16 +17,24 @@ IUSE="" |
36 |
|
37 |
RDEPEND="x11-libs/libX11 |
38 |
x11-libs/libXext" |
39 |
-DEPEND="${RDEPEND} |
40 |
+DEPEND="${RDEPEND}" |
41 |
+BDEPEND=" |
42 |
x11-base/xorg-proto |
43 |
- x11-misc/imake |
44 |
+ >=x11-misc/imake-1.0.8-r1 |
45 |
app-text/rman" |
46 |
|
47 |
PATCHES=( "${WORKDIR}"/${P}-misc.patch ) |
48 |
|
49 |
+src_configure() { |
50 |
+ CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \ |
51 |
+ IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die "xmkmf failed" |
52 |
+} |
53 |
+ |
54 |
src_compile() { |
55 |
- xmkmf || die "xmkmf failed." |
56 |
- emake CDEBUGFLAGS="${CFLAGS}" LDOPTIONS="${LDFLAGS}" |
57 |
+ emake \ |
58 |
+ CC="$(tc-getCC)" \ |
59 |
+ CDEBUGFLAGS="${CFLAGS}" \ |
60 |
+ LDOPTIONS="${LDFLAGS}" |
61 |
} |
62 |
|
63 |
src_install() { |