From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 60B0A1382C5 for ; Tue, 3 Apr 2018 13:32:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71CBFE0BD2; Tue, 3 Apr 2018 13:32:51 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 391A1E0BD2 for ; Tue, 3 Apr 2018 13:32:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4E45F335CEE for ; Tue, 3 Apr 2018 13:32:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A1306278 for ; Tue, 3 Apr 2018 13:32:46 +0000 (UTC) From: "Akinori Hattori" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Akinori Hattori" Message-ID: <1522762296.97d6e3e6839898829e8cce211b97a7fa77f5d06e.hattya@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/w3m/files/, www-client/w3m/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/w3m/files/w3m-img-fb.patch www-client/w3m/metadata.xml www-client/w3m/w3m-0.5.3-r9.ebuild X-VCS-Directories: www-client/w3m/files/ www-client/w3m/ X-VCS-Committer: hattya X-VCS-Committer-Name: Akinori Hattori X-VCS-Revision: 97d6e3e6839898829e8cce211b97a7fa77f5d06e X-VCS-Branch: master Date: Tue, 3 Apr 2018 13:32:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ec54d7a2-04a2-4a41-9165-a6d244ddde74 X-Archives-Hash: 69c3689111a04c203cf0a4fbae1295ac commit: 97d6e3e6839898829e8cce211b97a7fa77f5d06e Author: Akinori Hattori gentoo org> AuthorDate: Tue Apr 3 13:23:54 2018 +0000 Commit: Akinori Hattori gentoo 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 + #include + #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 @@ Cjk + Enable support for x11-libs/gdk-pixbuf If you prefer Lynx-like key binding 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