From: "Akinori Hattori" <hattya@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/w3m/files/, www-client/w3m/
Date: Tue, 3 Apr 2018 13:32:46 +0000 (UTC) [thread overview]
Message-ID: <1522762296.97d6e3e6839898829e8cce211b97a7fa77f5d06e.hattya@gentoo> (raw)
commit: 97d6e3e6839898829e8cce211b97a7fa77f5d06e
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 3 13:23:54 2018 +0000
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Tue Apr 3 13:31:36 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97d6e3e6
www-client/w3m: fix dependency for w3m-img
Closes: https://bugs.gentoo.org/605930
Package-Manager: Portage-2.3.24, Repoman-2.3.6
www-client/w3m/files/w3m-img-fb.patch | 10 ++++++++++
www-client/w3m/metadata.xml | 1 +
www-client/w3m/w3m-0.5.3-r9.ebuild | 32 ++++++++++++++++++--------------
3 files changed, 29 insertions(+), 14 deletions(-)
diff --git a/www-client/w3m/files/w3m-img-fb.patch b/www-client/w3m/files/w3m-img-fb.patch
new file mode 100644
index 00000000000..677d89d3bcd
--- /dev/null
+++ b/www-client/w3m/files/w3m-img-fb.patch
@@ -0,0 +1,10 @@
+--- a/w3mimg/fb/fb_imlib2.c
++++ b/w3mimg/fb/fb_imlib2.c
+@@ -3,7 +3,6 @@
+ fb_imlib2.c 0.3 Copyright (C) 2002, hito
+ **************************************************************************/
+
+-#include <X11/Xlib.h>
+ #include <Imlib2.h>
+ #include "fb.h"
+ #include "fb_img.h"
diff --git a/www-client/w3m/metadata.xml b/www-client/w3m/metadata.xml
index dd01429b95e..3a35f0fcc04 100644
--- a/www-client/w3m/metadata.xml
+++ b/www-client/w3m/metadata.xml
@@ -6,6 +6,7 @@
<name>Cjk</name>
</maintainer>
<use>
+ <flag name="gdk-pixbuf">Enable support for <pkg>x11-libs/gdk-pixbuf</pkg></flag>
<flag name="lynxkeymap">If you prefer Lynx-like key binding</flag>
</use>
<upstream>
diff --git a/www-client/w3m/w3m-0.5.3-r9.ebuild b/www-client/w3m/w3m-0.5.3-r9.ebuild
index 811e11b5efd..61d0335e916 100644
--- a/www-client/w3m/w3m-0.5.3-r9.ebuild
+++ b/www-client/w3m/w3m-0.5.3-r9.ebuild
@@ -15,22 +15,20 @@ SRC_URI="https://github.com/tats/${PN}/archive/v${PV}+${MY_REL}.tar.gz -> ${MY_P
LICENSE="w3m"
SLOT="0"
KEYWORDS="alpha amd64 ~arm ~arm64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
-IUSE="X fbcon gpm gtk imlib l10n_de l10n_ja libressl lynxkeymap nls nntp ssl unicode xface"
+IUSE="X fbcon gdk-pixbuf gpm imlib l10n_de l10n_ja libressl lynxkeymap nls nntp ssl unicode xface"
-# We cannot build w3m with gtk+2 w/o X because gtk+2 ebuild doesn't
-# allow us to build w/o X, so we have to give up framebuffer w3mimg....
-RDEPEND=">=dev-libs/boehm-gc-6.2:=
- >=sys-libs/ncurses-5.2-r3:0=
- >=sys-libs/zlib-1.1.3-r2
+RDEPEND="dev-libs/boehm-gc:=
+ sys-libs/ncurses:0=
+ sys-libs/zlib
X? (
x11-libs/libXdmcp
x11-libs/libXext
)
- gtk? ( x11-libs/gdk-pixbuf )
- !gtk? (
- imlib? ( >=media-libs/imlib2-1.1.0[X] )
+ gdk-pixbuf? ( x11-libs/gdk-pixbuf[X?] )
+ !gdk-pixbuf? (
+ imlib? ( media-libs/imlib2[X?] )
)
- gpm? ( >=sys-libs/gpm-1.19.3-r5 )
+ gpm? ( sys-libs/gpm )
ssl? (
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
@@ -40,7 +38,13 @@ DEPEND="${RDEPEND}
virtual/pkgconfig"
S="${WORKDIR}/${MY_P}"
-PATCHES=( "${FILESDIR}/${PN}-time.patch" )
+REQUIRED_USE="X? ( ?? ( gdk-pixbuf imlib ) )
+ fbcon? ( ?? ( gdk-pixbuf imlib ) )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-img-fb.patch"
+ "${FILESDIR}/${PN}-time.patch"
+)
src_prepare() {
default
@@ -53,14 +57,14 @@ src_configure() {
local myconf=()
local image imagelib
- if use gtk; then
+ if use gdk-pixbuf; then
imagelib="gtk2"
elif use imlib; then
imagelib="imlib2"
fi
if [[ -n "${imagelib}" ]]; then
- use X && image="${image}${image:+,}x11"
- use X && use fbcon && image="${image}${image:+,}fb"
+ use X && image="${image}${image:+,}x11"
+ use fbcon && image="${image}${image:+,}fb"
fi
# emacs-w3m doesn't like "--enable-m17n --disable-unicode,"
# so we better enable or disable both. Default to enable
next reply other threads:[~2018-04-03 13:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-03 13:32 Akinori Hattori [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-09-12 18:04 [gentoo-commits] repo/gentoo:master commit in: www-client/w3m/files/, www-client/w3m/ Sam James
2021-04-25 22:01 Sam James
2018-04-16 18:29 Mike Gilbert
2018-04-03 13:32 Akinori Hattori
2016-12-04 15:05 Yixun Lan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1522762296.97d6e3e6839898829e8cce211b97a7fa77f5d06e.hattya@gentoo \
--to=hattya@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox