1 |
commit: 1c91a15ba84512dbd9d0a1236a0ede17b842069e |
2 |
Author: Viacheslav Ostroukh <slava <AT> ostroukh <DOT> me> |
3 |
AuthorDate: Tue Apr 24 11:06:51 2018 +0000 |
4 |
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 24 11:08:59 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c91a15b |
7 |
|
8 |
app-misc/vifm: Fix ncurses linking |
9 |
|
10 |
Closes: https://bugs.gentoo.org/651914 |
11 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
12 |
|
13 |
.../files/vifm-0.9.1-fix-ncurses-linking.patch | 60 ++++++++++++++++++++++ |
14 |
app-misc/vifm/vifm-0.9.1.ebuild | 6 ++- |
15 |
2 files changed, 65 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/app-misc/vifm/files/vifm-0.9.1-fix-ncurses-linking.patch b/app-misc/vifm/files/vifm-0.9.1-fix-ncurses-linking.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..40d41dcc8f1 |
20 |
--- /dev/null |
21 |
+++ b/app-misc/vifm/files/vifm-0.9.1-fix-ncurses-linking.patch |
22 |
@@ -0,0 +1,60 @@ |
23 |
+From 8196704a5dafa4c8e194f1643728ed45b4b55df6 Mon Sep 17 00:00:00 2001 |
24 |
+From: xaizek <xaizek@××××××.net> |
25 |
+Date: Mon, 9 Apr 2018 19:31:06 +0300 |
26 |
+Subject: [PATCH] fix ncurses linking |
27 |
+ |
28 |
+--- |
29 |
+ THANKS | 2 ++ |
30 |
+ configure | 2 +- |
31 |
+ configure.ac | 2 +- |
32 |
+ 3 files changed, 4 insertions(+), 2 deletions(-) |
33 |
+ |
34 |
+diff --git a/THANKS b/THANKS |
35 |
+index e708f4d3..faab4f8a 100644 |
36 |
+--- a/THANKS |
37 |
++++ b/THANKS |
38 |
+@@ -25,6 +25,7 @@ c02y |
39 |
+ Carl Mueller (carlmuller) |
40 |
+ Carlos Pita |
41 |
+ Charles Kauffman |
42 |
++Chema Alonso Josa (nimiux) |
43 |
+ Christian Fillion (cfillion) |
44 |
+ Christian Herdtweck |
45 |
+ Christoph (informationen) |
46 |
+@@ -128,6 +129,7 @@ Richard Benson |
47 |
+ Robert Sarkozi |
48 |
+ Roger Bongers |
49 |
+ Ross Hadden (rosshadden) |
50 |
++Ruslan Osmanov (rosmanov) |
51 |
+ Russell Urquhart |
52 |
+ SanLe |
53 |
+ santhoshr |
54 |
+diff --git a/configure b/configure |
55 |
+index 0054dbde..a3c9bd43 100755 |
56 |
+--- a/configure |
57 |
++++ b/configure |
58 |
+@@ -8707,7 +8707,7 @@ return curs_set (); |
59 |
+ return 0; |
60 |
+ } |
61 |
+ _ACEOF |
62 |
+-for ac_lib in '' tinfo; do |
63 |
++for ac_lib in '' tinfow; do |
64 |
+ if test -z "$ac_lib"; then |
65 |
+ ac_res="none required" |
66 |
+ else |
67 |
+diff --git a/configure.ac b/configure.ac |
68 |
+index 61b3ed5d..65e550a2 100644 |
69 |
+--- a/configure.ac |
70 |
++++ b/configure.ac |
71 |
+@@ -437,7 +437,7 @@ AC_CHECK_LIB(${curses_lib_name}, initscr, |
72 |
+ CPPFLAGS="$CPPFLAGS -I/usr/include/${curses_lib_name}" |
73 |
+ fi |
74 |
+ ncurses_found=yes] |
75 |
+- AC_SEARCH_LIBS([curs_set], [tinfo],, |
76 |
++ AC_SEARCH_LIBS([curs_set], [tinfow],, |
77 |
+ AC_MSG_ERROR(could not find a library providing curs_set))) |
78 |
+ dnl If libncursesw is not found on OS X, check for libncurses. On OS X it has |
79 |
+ dnl support of wide characters. |
80 |
+-- |
81 |
+2.16.1 |
82 |
+ |
83 |
|
84 |
diff --git a/app-misc/vifm/vifm-0.9.1.ebuild b/app-misc/vifm/vifm-0.9.1.ebuild |
85 |
index 283cc2139c3..fc8ca7c795a 100644 |
86 |
--- a/app-misc/vifm/vifm-0.9.1.ebuild |
87 |
+++ b/app-misc/vifm/vifm-0.9.1.ebuild |
88 |
@@ -28,14 +28,18 @@ RDEPEND=" |
89 |
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) |
90 |
" |
91 |
|
92 |
+PATCHES=( |
93 |
+ "${FILESDIR}/${P}-fix-ncurses-linking.patch" |
94 |
+) |
95 |
+ |
96 |
DOCS="AUTHORS FAQ NEWS README TODO" |
97 |
|
98 |
S="${WORKDIR}/${MY_P}" |
99 |
|
100 |
src_prepare() { |
101 |
+ default |
102 |
sed -i -e '/stat.h/a#include <sys/sysmacros.h>' "${S}/src/modes/file_info.c" \ |
103 |
|| die |
104 |
- eapply_user |
105 |
eautoreconf |
106 |
} |