1 |
commit: 97d6e3e6839898829e8cce211b97a7fa77f5d06e |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 3 13:23:54 2018 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 3 13:31:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97d6e3e6 |
7 |
|
8 |
www-client/w3m: fix dependency for w3m-img |
9 |
|
10 |
Closes: https://bugs.gentoo.org/605930 |
11 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
12 |
|
13 |
www-client/w3m/files/w3m-img-fb.patch | 10 ++++++++++ |
14 |
www-client/w3m/metadata.xml | 1 + |
15 |
www-client/w3m/w3m-0.5.3-r9.ebuild | 32 ++++++++++++++++++-------------- |
16 |
3 files changed, 29 insertions(+), 14 deletions(-) |
17 |
|
18 |
diff --git a/www-client/w3m/files/w3m-img-fb.patch b/www-client/w3m/files/w3m-img-fb.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..677d89d3bcd |
21 |
--- /dev/null |
22 |
+++ b/www-client/w3m/files/w3m-img-fb.patch |
23 |
@@ -0,0 +1,10 @@ |
24 |
+--- a/w3mimg/fb/fb_imlib2.c |
25 |
++++ b/w3mimg/fb/fb_imlib2.c |
26 |
+@@ -3,7 +3,6 @@ |
27 |
+ fb_imlib2.c 0.3 Copyright (C) 2002, hito |
28 |
+ **************************************************************************/ |
29 |
+ |
30 |
+-#include <X11/Xlib.h> |
31 |
+ #include <Imlib2.h> |
32 |
+ #include "fb.h" |
33 |
+ #include "fb_img.h" |
34 |
|
35 |
diff --git a/www-client/w3m/metadata.xml b/www-client/w3m/metadata.xml |
36 |
index dd01429b95e..3a35f0fcc04 100644 |
37 |
--- a/www-client/w3m/metadata.xml |
38 |
+++ b/www-client/w3m/metadata.xml |
39 |
@@ -6,6 +6,7 @@ |
40 |
<name>Cjk</name> |
41 |
</maintainer> |
42 |
<use> |
43 |
+ <flag name="gdk-pixbuf">Enable support for <pkg>x11-libs/gdk-pixbuf</pkg></flag> |
44 |
<flag name="lynxkeymap">If you prefer Lynx-like key binding</flag> |
45 |
</use> |
46 |
<upstream> |
47 |
|
48 |
diff --git a/www-client/w3m/w3m-0.5.3-r9.ebuild b/www-client/w3m/w3m-0.5.3-r9.ebuild |
49 |
index 811e11b5efd..61d0335e916 100644 |
50 |
--- a/www-client/w3m/w3m-0.5.3-r9.ebuild |
51 |
+++ b/www-client/w3m/w3m-0.5.3-r9.ebuild |
52 |
@@ -15,22 +15,20 @@ SRC_URI="https://github.com/tats/${PN}/archive/v${PV}+${MY_REL}.tar.gz -> ${MY_P |
53 |
LICENSE="w3m" |
54 |
SLOT="0" |
55 |
KEYWORDS="alpha amd64 ~arm ~arm64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris" |
56 |
-IUSE="X fbcon gpm gtk imlib l10n_de l10n_ja libressl lynxkeymap nls nntp ssl unicode xface" |
57 |
+IUSE="X fbcon gdk-pixbuf gpm imlib l10n_de l10n_ja libressl lynxkeymap nls nntp ssl unicode xface" |
58 |
|
59 |
-# We cannot build w3m with gtk+2 w/o X because gtk+2 ebuild doesn't |
60 |
-# allow us to build w/o X, so we have to give up framebuffer w3mimg.... |
61 |
-RDEPEND=">=dev-libs/boehm-gc-6.2:= |
62 |
- >=sys-libs/ncurses-5.2-r3:0= |
63 |
- >=sys-libs/zlib-1.1.3-r2 |
64 |
+RDEPEND="dev-libs/boehm-gc:= |
65 |
+ sys-libs/ncurses:0= |
66 |
+ sys-libs/zlib |
67 |
X? ( |
68 |
x11-libs/libXdmcp |
69 |
x11-libs/libXext |
70 |
) |
71 |
- gtk? ( x11-libs/gdk-pixbuf ) |
72 |
- !gtk? ( |
73 |
- imlib? ( >=media-libs/imlib2-1.1.0[X] ) |
74 |
+ gdk-pixbuf? ( x11-libs/gdk-pixbuf[X?] ) |
75 |
+ !gdk-pixbuf? ( |
76 |
+ imlib? ( media-libs/imlib2[X?] ) |
77 |
) |
78 |
- gpm? ( >=sys-libs/gpm-1.19.3-r5 ) |
79 |
+ gpm? ( sys-libs/gpm ) |
80 |
ssl? ( |
81 |
!libressl? ( dev-libs/openssl:0= ) |
82 |
libressl? ( dev-libs/libressl:0= ) |
83 |
@@ -40,7 +38,13 @@ DEPEND="${RDEPEND} |
84 |
virtual/pkgconfig" |
85 |
S="${WORKDIR}/${MY_P}" |
86 |
|
87 |
-PATCHES=( "${FILESDIR}/${PN}-time.patch" ) |
88 |
+REQUIRED_USE="X? ( ?? ( gdk-pixbuf imlib ) ) |
89 |
+ fbcon? ( ?? ( gdk-pixbuf imlib ) )" |
90 |
+ |
91 |
+PATCHES=( |
92 |
+ "${FILESDIR}/${PN}-img-fb.patch" |
93 |
+ "${FILESDIR}/${PN}-time.patch" |
94 |
+) |
95 |
|
96 |
src_prepare() { |
97 |
default |
98 |
@@ -53,14 +57,14 @@ src_configure() { |
99 |
local myconf=() |
100 |
local image imagelib |
101 |
|
102 |
- if use gtk; then |
103 |
+ if use gdk-pixbuf; then |
104 |
imagelib="gtk2" |
105 |
elif use imlib; then |
106 |
imagelib="imlib2" |
107 |
fi |
108 |
if [[ -n "${imagelib}" ]]; then |
109 |
- use X && image="${image}${image:+,}x11" |
110 |
- use X && use fbcon && image="${image}${image:+,}fb" |
111 |
+ use X && image="${image}${image:+,}x11" |
112 |
+ use fbcon && image="${image}${image:+,}fb" |
113 |
fi |
114 |
# emacs-w3m doesn't like "--enable-m17n --disable-unicode," |
115 |
# so we better enable or disable both. Default to enable |