1 |
commit: 13d728bc761b9c0350b7ccb32372e2234bb5a824 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 16 18:08:58 2019 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 16 18:09:36 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13d728bc |
7 |
|
8 |
net-news/snownews: fix compilation with ncurses |
9 |
|
10 |
This package now requires unicode support for ncurses, |
11 |
otherwise compilation will fails. Fix the pkgconfig handling, |
12 |
drop the unicode USE flag and always require unicode support. |
13 |
|
14 |
Fixes: https://bugs.gentoo.org/690224 |
15 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
16 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
17 |
|
18 |
net-news/snownews/snownews-1.6.10.ebuild | 7 ++++--- |
19 |
1 file changed, 4 insertions(+), 3 deletions(-) |
20 |
|
21 |
diff --git a/net-news/snownews/snownews-1.6.10.ebuild b/net-news/snownews/snownews-1.6.10.ebuild |
22 |
index c718b5a16d6..e05f9d4fe08 100644 |
23 |
--- a/net-news/snownews/snownews-1.6.10.ebuild |
24 |
+++ b/net-news/snownews/snownews-1.6.10.ebuild |
25 |
@@ -11,11 +11,11 @@ SRC_URI="https://github.com/kouya/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
26 |
LICENSE="GPL-3" |
27 |
SLOT="0" |
28 |
KEYWORDS="amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos" |
29 |
-IUSE="unicode" |
30 |
+IUSE="" |
31 |
|
32 |
COMMON_DEPEND=" |
33 |
>=dev-libs/libxml2-2.5.6 |
34 |
- >=sys-libs/ncurses-5.3:0=[unicode?] |
35 |
+ >=sys-libs/ncurses-5.3:0=[unicode] |
36 |
" |
37 |
RDEPEND=" |
38 |
${COMMON_DEPEND} |
39 |
@@ -32,7 +32,8 @@ BDEPEND="virtual/pkgconfig" |
40 |
src_prepare() { |
41 |
default |
42 |
tc-export PKG_CONFIG |
43 |
- sed -i 's|-lncurses|`\\$(PKG_CONFIG) --libs '"$(usex unicode ncursesw ncurses)"'`|' configure || die |
44 |
+ local libs=$(${PKG_CONFIG} --libs ncursesw) |
45 |
+ sed -i "s|-lncursesw\?|${libs}|" configure Config.mk.in || die |
46 |
sed -i 's|$(INSTALL) -s snownews|$(INSTALL) snownews|' Makefile || die |
47 |
} |