summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-09-08 14:14:13 +0000
committerMamoru Komachi <usata@gentoo.org>2004-09-08 14:14:13 +0000
commit5d9e506af67dabf4ce9a3dded494fd8b8a545f49 (patch)
tree5eaca09f78dcbd345b9e0070a0755b63fe37045e /www-client/w3m-m17n
parentMoved from net-www/w3mmee to www-client/w3mmee. (Manifest recommit) (diff)
downloadgentoo-2-5d9e506af67dabf4ce9a3dded494fd8b8a545f49.tar.gz
gentoo-2-5d9e506af67dabf4ce9a3dded494fd8b8a545f49.tar.bz2
gentoo-2-5d9e506af67dabf4ce9a3dded494fd8b8a545f49.zip
Moved from net-www/w3m-m17n to www-client/w3m-m17n.
Diffstat (limited to 'www-client/w3m-m17n')
-rw-r--r--www-client/w3m-m17n/ChangeLog95
-rw-r--r--www-client/w3m-m17n/Manifest6
-rw-r--r--www-client/w3m-m17n/files/digest-w3m-m17n-0.4.23
-rw-r--r--www-client/w3m-m17n/files/w3m-m17n-0.4.2-imglib-gentoo.diff130
-rw-r--r--www-client/w3m-m17n/files/w3m-w3mman-gentoo.diff23
-rw-r--r--www-client/w3m-m17n/metadata.xml5
-rw-r--r--www-client/w3m-m17n/w3m-m17n-0.4.2.ebuild146
7 files changed, 408 insertions, 0 deletions
diff --git a/www-client/w3m-m17n/ChangeLog b/www-client/w3m-m17n/ChangeLog
new file mode 100644
index 000000000000..8420db29a3e4
--- /dev/null
+++ b/www-client/w3m-m17n/ChangeLog
@@ -0,0 +1,95 @@
+# ChangeLog for www-client/w3m-m17n
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/w3m-m17n/ChangeLog,v 1.1 2004/09/08 14:14:13 usata Exp $
+
+*w3m-m17n-0.4.2 (08 Sep 2004)
+
+ 08 Sep 2004; Mamoru KOMACHI <usata@gentoo.org> +metadata.xml,
+ +files/w3m-m17n-0.4.2-imglib-gentoo.diff, +files/w3m-w3mman-gentoo.diff,
+ +w3m-m17n-0.4.2.ebuild:
+ Moved from net-www/w3m-m17n to www-client/w3m-m17n.
+
+ 04 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
+ w3m-m17n-0.4.2.ebuild:
+ Masked w3m-m17n-0.4.2.ebuild stable for ppc
+
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ w3m-m17n-0.4.2.ebuild:
+ virtual/glibc -> virtual/libc
+
+ 25 Jun 2004; Aron Griffis <agriffis@gentoo.org> w3m-m17n-0.4.2.ebuild:
+ QA - fix use invocation
+
+ 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> w3m-m17n-0.4.2.ebuild:
+ Add inherit eutils
+
+*w3m-m17n-0.4.2 (25 Sep 2003)
+
+ 01 Nov 2003; Mamoru KOMACHI <usata@gentoo.org> w3m-m17n-0.4.2.ebuild:
+ Removed unused gtk IUSE flag and added nopixbuf IUSE flag (not listed).
+ Added pkg_setup to alert users who set USE="nopixbuf -imlib -imlib2".
+
+ 13 Oct 2003; Mamoru KOMACHI <usata@gentoo.org> w3m-m17n-0.4.2.ebuild,
+ w3m-m17n-20030916.ebuild:
+ Considered as stable. Removed old CVS snapshot (It blocks upgrade to
+ 0.4.2 for ~arch users).
+
+ 05 Oct 2003; Mamoru KOMACHI <usata@gentoo.org> w3m-m17n-0.4.2.ebuild,
+ files/w3m-m17n-0.4.2-gentoo.diff, files/w3m-m17n-0.4.2-imglib-gentoo.diff:
+ Fixed compilation breakage (due to CVS Id expansion in a patch).
+ Added nopixmap, imlib2 and migemo IUSE flags.
+
+ 25 Sep 2003; Mamoru KOMACHI <usata@gentoo.org> w3m-m17n-0.4.2.ebuild,
+ files/w3m-m17n-0.4.2-gentoo.diff:
+ Version bumped
+
+ 25 Sep 2003; Mamoru KOMACHI <usata@gentoo.org>
+ w3m-m17n-0.4.1.20030308-r1.ebuild, w3m-m17n-0.4.1.20030308.ebuild,
+ w3m-m17n-20030308-r1.ebuild, w3m-m17n-20030308-r2.ebuild,
+ w3m-m17n-20030308.ebuild:
+ Cleaned out old versions
+
+*w3m-m17n-20030916 (21 Sep 2003)
+
+ 25 Sep 2003; Mamoru KOMACHI <usata@gentoo.org>
+ w3m-m17n-0.4.1.20030308-r2.ebuild, w3m-m17n-20030916.ebuild,
+ files/w3m-w3mman-gentoo.diff:
+ Enables migemo support if app-emacs/migemo is installed.
+
+ 21 Sep 2003; Mamoru KOMACHI <usata@gentoo.org> w3m-m17n-20030916.ebuild:
+ Version bumped to the latest CVS snapshot. Rewrote econf part. Added
+ gtk, xface and ipv6 IUSE flag. Now DEPENDs on dev-libs/boehm-gc.
+
+*w3m-m17n-0.4.1.20030308-r2 (22 Aug 2003)
+
+ 22 Aug 2003; Mamoru KOMACHI <usata@gentoo.org>
+ w3m-m17n-0.4.1.20030308-r2.ebuild, w3m-m17n-20030308-r2.ebuild:
+ Fixed escape character problem of Japanese manpages with w3mman-m17n
+
+*w3m-m17n-0.4.1.20030308-r1 (21 Aug 2003)
+
+ 21 Aug 2003; Mamoru KOMACHI <usata@gentoo.org>
+ w3m-m17n-0.4.1.20030308-r1.ebuild:
+ Ditto
+
+*w3m-m17n-20030308-r1 (17 Aug 2003)
+
+ 17 Aug 2003; Mamoru KOMACHI <usata@gentoo.org> w3m-m17n-20030308-r1.ebuild:
+ Fixed w3mman-m17n default browser path. Create symlinks to w3m if
+ it is not installed.
+
+*w3m-m17n-0.4.1.20030308 (13 Aug 2003)
+
+ 13 Aug 2003; Mamoru KOMACHI <usata@gentoo.org>
+ w3m-m17n-0.4.1.20030308.ebuild, w3m-m17n-20030308.ebuild:
+ Added stable version. Added ~ppc and ~sparc keywords to snapshot
+ and marked unstable on x86 and alpha back. Corrected libungif
+ DEPEND. Enabled SSL certification, see #23714
+
+*w3m-m17n-20030308 (20 Jun 2003)
+
+ 20 Jun 2003; YAMAKURA Makoto <yakina@gentoo.org> w3m-m17n-20030308.ebuild,
+ files/digest-w3m-m17n-20030308,ChangeLog,Manifest:
+
+ Initial import. Ebuild submitted by Mamoru KOMACHI <usata@sodan.ecc.u-tokyo.ac.jp>.
+ Bug #21671
diff --git a/www-client/w3m-m17n/Manifest b/www-client/w3m-m17n/Manifest
new file mode 100644
index 000000000000..db959bfb9727
--- /dev/null
+++ b/www-client/w3m-m17n/Manifest
@@ -0,0 +1,6 @@
+MD5 11dca8dec5e0d985c2a39c53eb9b05f0 ChangeLog 3346
+MD5 e92a48548554c80cf90e18df17ff6a82 metadata.xml 156
+MD5 f0eb3c8a9921e3d6ae10603e5c3c2caf w3m-m17n-0.4.2.ebuild 3895
+MD5 84a4529fdf4d9541fb3a111080687261 files/digest-w3m-m17n-0.4.2 210
+MD5 f91cc75929689839efc1a8dfb0dcbd83 files/w3m-m17n-0.4.2-imglib-gentoo.diff 5019
+MD5 0fd075401455ce9205836b4267202e22 files/w3m-w3mman-gentoo.diff 1059
diff --git a/www-client/w3m-m17n/files/digest-w3m-m17n-0.4.2 b/www-client/w3m-m17n/files/digest-w3m-m17n-0.4.2
new file mode 100644
index 000000000000..e165441e0855
--- /dev/null
+++ b/www-client/w3m-m17n/files/digest-w3m-m17n-0.4.2
@@ -0,0 +1,3 @@
+MD5 baa9d375997cf495edf25216e0e3f3aa w3m-0.4.2+cvs-1.862.tar.gz 672615
+MD5 41677a08822d49baaf7e28cfc66206e1 w3m-cvs-1.859-m17n-1.diff.gz 86023
+MD5 5d9dd2828ecab3214a87454bbc2b10b4 libwc-20030224.tar.gz 1150077
diff --git a/www-client/w3m-m17n/files/w3m-m17n-0.4.2-imglib-gentoo.diff b/www-client/w3m-m17n/files/w3m-m17n-0.4.2-imglib-gentoo.diff
new file mode 100644
index 000000000000..c74bdc2cecdf
--- /dev/null
+++ b/www-client/w3m-m17n/files/w3m-m17n-0.4.2-imglib-gentoo.diff
@@ -0,0 +1,130 @@
+diff -urN w3m-0.4.2.ORIG/acinclude.m4 w3m-0.4.2/acinclude.m4
+--- w3m-0.4.2.ORIG/acinclude.m4 2003-09-25 18:16:27.000000000 +0900
++++ w3m-0.4.2/acinclude.m4 2003-10-05 07:02:28.000000000 +0900
+@@ -515,6 +515,12 @@
+ enable_image=x11,fb
+ fi;;
+ esac
++ AC_ARG_WITH(imglib,
++ [ --with-imglib=IMGLIB image library to link
++ (IMGLIB should be either gdk_pixbuf, imlib or imlib2.
++ Note that you need to use gdk_pixbuf or imlib2 to enable
++ inline image handler support for framebuffer device.)],
++ [test x"$with_imglib" = xyes || imglib="$with_imglib"])
+ fi
+ save_ifs="$IFS"; IFS=",";
+ for img in $enable_image; do
+@@ -555,19 +561,25 @@
+ [have_imlib2="yes"],
+ [have_imlib2="no"])])
+ if test x"$x11" = xyes; then
+- if test x"$have_gdkpixbuf" = xyes; then
++ if test x"$have_gdkpixbuf" = xyes \
++ -a -z "$with_imglib" \
++ -o x"$with_imglib" = xgdk_pixbuf; then
+ AC_DEFINE(USE_W3MIMG_X11)
+ AC_DEFINE(USE_GDKPIXBUF)
+ IMGOBJS="$IMGOBJS w3mimg/x11/x11_w3mimg.o"
+ IMGX11CFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
+ IMGX11LDFLAGS="`${GDKPIXBUF_CONFIG} --libs` -lgdk_pixbuf_xlib"
+- elif test x"$have_imlib" = xyes; then
++ elif test x"$have_imlib" = xyes \
++ -a -z "$with_imglib" \
++ -o x"$with_imglib" = ximlib; then
+ AC_DEFINE(USE_W3MIMG_X11)
+ AC_DEFINE(USE_IMLIB)
+ IMGOBJS="$IMGOBJS w3mimg/x11/x11_w3mimg.o"
+ IMGX11CFLAGS="`${IMLIB_CONFIG} --cflags`"
+ IMGX11LDFLAGS="`${IMLIB_CONFIG} --libs`"
+- elif test x"$have_imlib2" = xyes; then
++ elif test x"$have_imlib2" = xyes \
++ -a -z "$with_imglib" \
++ -o x"$with_imglib" = ximlib2; then
+ AC_DEFINE(USE_W3MIMG_X11)
+ AC_DEFINE(USE_IMLIB2)
+ IMGOBJS="$IMGOBJS w3mimg/x11/x11_w3mimg.o"
+@@ -578,13 +590,17 @@
+ fi
+ fi
+ if test x"$fb" = xyes; then
+- if test x"$have_gdkpixbuf" = xyes; then
++ if test x"$have_gdkpixbuf" = xyes \
++ -a -z "$with_imglib" \
++ -o x"$with_imglib" = xgdk_pixbuf; then
+ AC_DEFINE(USE_W3MIMG_FB)
+ AC_DEFINE(USE_GDKPIXBUF)
+ IMGOBJS="$IMGOBJS w3mimg/fb/fb_w3mimg.o w3mimg/fb/fb.o w3mimg/fb/fb_img.o"
+ IMGFBCFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
+ IMGFBLDFLAGS="`${GDKPIXBUF_CONFIG} --libs`"
+- elif test x"$have_imlib2" = xyes; then
++ elif test x"$have_imlib2" = xyes \
++ -a -z "$with_imglib" \
++ -o x"$with_imglib" = ximlib2; then
+ AC_DEFINE(USE_W3MIMG_FB)
+ AC_DEFINE(USE_IMLIB2)
+ IMGOBJS="$IMGOBJS w3mimg/fb/fb_w3mimg.o w3mimg/fb/fb.o w3mimg/fb/fb_img.o"
+diff -urN w3m-0.4.2.ORIG/aclocal.m4 w3m-0.4.2/aclocal.m4
+--- w3m-0.4.2.ORIG/aclocal.m4 2003-09-25 18:16:27.000000000 +0900
++++ w3m-0.4.2/aclocal.m4 2003-10-05 07:03:49.000000000 +0900
+@@ -527,6 +527,12 @@
+ enable_image=x11,fb
+ fi;;
+ esac
++ AC_ARG_WITH(imglib,
++ [ --with-imglib=IMGLIB image library to link
++ (IMGLIB should be either gdk_pixbuf, imlib or imlib2.
++ Note that you need to use gdk_pixbuf or imlib2 to enable
++ inline image handler support for framebuffer device.)],
++ [test x"$with_imglib" = xyes || imglib="$with_imglib"])
+ fi
+ save_ifs="$IFS"; IFS=",";
+ for img in $enable_image; do
+@@ -567,19 +573,25 @@
+ [have_imlib2="yes"],
+ [have_imlib2="no"])])
+ if test x"$x11" = xyes; then
+- if test x"$have_gdkpixbuf" = xyes; then
++ if test x"$have_gdkpixbuf" = xyes \
++ -a -z "$with_imglib" \
++ -o x"$with_imglib" = xgdk_pixbuf; then
+ AC_DEFINE(USE_W3MIMG_X11)
+ AC_DEFINE(USE_GDKPIXBUF)
+ IMGOBJS="$IMGOBJS w3mimg/x11/x11_w3mimg.o"
+ IMGX11CFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
+ IMGX11LDFLAGS="`${GDKPIXBUF_CONFIG} --libs` -lgdk_pixbuf_xlib"
+- elif test x"$have_imlib" = xyes; then
++ elif test x"$have_imlib" = xyes \
++ -a -z "$with_imglib" \
++ -o x"$with_imglib" = ximlib; then
+ AC_DEFINE(USE_W3MIMG_X11)
+ AC_DEFINE(USE_IMLIB)
+ IMGOBJS="$IMGOBJS w3mimg/x11/x11_w3mimg.o"
+ IMGX11CFLAGS="`${IMLIB_CONFIG} --cflags`"
+ IMGX11LDFLAGS="`${IMLIB_CONFIG} --libs`"
+- elif test x"$have_imlib2" = xyes; then
++ elif test x"$have_imlib2" = xyes \
++ -a -z "$with_imglib" \
++ -o x"$with_imglib" = ximlib2; then
+ AC_DEFINE(USE_W3MIMG_X11)
+ AC_DEFINE(USE_IMLIB2)
+ IMGOBJS="$IMGOBJS w3mimg/x11/x11_w3mimg.o"
+@@ -590,13 +602,17 @@
+ fi
+ fi
+ if test x"$fb" = xyes; then
+- if test x"$have_gdkpixbuf" = xyes; then
++ if test x"$have_gdkpixbuf" = xyes \
++ -a -z "$with_imglib" \
++ -o x"$with_imglib" = xgdk_pixbuf; then
+ AC_DEFINE(USE_W3MIMG_FB)
+ AC_DEFINE(USE_GDKPIXBUF)
+ IMGOBJS="$IMGOBJS w3mimg/fb/fb_w3mimg.o w3mimg/fb/fb.o w3mimg/fb/fb_img.o"
+ IMGFBCFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
+ IMGFBLDFLAGS="`${GDKPIXBUF_CONFIG} --libs`"
+- elif test x"$have_imlib2" = xyes; then
++ elif test x"$have_imlib2" = xyes \
++ -a -z "$with_imglib" \
++ -o x"$with_imglib" = ximlib2; then
+ AC_DEFINE(USE_W3MIMG_FB)
+ AC_DEFINE(USE_IMLIB2)
+ IMGOBJS="$IMGOBJS w3mimg/fb/fb_w3mimg.o w3mimg/fb/fb.o w3mimg/fb/fb_img.o"
diff --git a/www-client/w3m-m17n/files/w3m-w3mman-gentoo.diff b/www-client/w3m-m17n/files/w3m-w3mman-gentoo.diff
new file mode 100644
index 000000000000..be0f16e560fa
--- /dev/null
+++ b/www-client/w3m-m17n/files/w3m-w3mman-gentoo.diff
@@ -0,0 +1,23 @@
+diff -urN w3m-0.4.2.ORIG/scripts/w3mman/w3mman.in w3m-0.4.2/scripts/w3mman/w3mman.in
+--- w3m-0.4.2.ORIG/scripts/w3mman/w3mman.in 2003-09-25 00:58:27.000000000 +0900
++++ w3m-0.4.2/scripts/w3mman/w3mman.in 2003-09-25 03:12:38.000000000 +0900
+@@ -1,7 +1,7 @@
+ #!@PERL@
+
+ @W3M = split(' ', $ENV{'W3MMAN_W3M'} || '@W3M@');
+-$ENV{'W3MMAN_MAN'} ||= '@MAN@';
++$ENV{'W3MMAN_MAN'} ||= 'env LC_MESSAGES=${LC_MESSAGES:-${LC_ALL:-${LANG}}} LANG=C @MAN@';
+ $SCRIPT = 'file:///$LIB/w3mman2html.cgi';
+
+ sub usage {
+diff -urN w3m-0.4.2.ORIG/scripts/w3mman/w3mman2html.cgi.in w3m-0.4.2/scripts/w3mman/w3mman2html.cgi.in
+--- w3m-0.4.2.ORIG/scripts/w3mman/w3mman2html.cgi.in 2003-09-25 00:58:27.000000000 +0900
++++ w3m-0.4.2/scripts/w3mman/w3mman2html.cgi.in 2003-09-25 03:12:38.000000000 +0900
+@@ -1,6 +1,6 @@
+ #!@PERL@
+
+-$MAN = $ENV{'W3MMAN_MAN'} || '@MAN@';
++$MAN = $ENV{'W3MMAN_MAN'} || 'env LC_MESSAGES=${LC_MESSAGES:-${LC_ALL:-${LANG}}} LANG=C @MAN@';
+ $QUERY = $ENV{'QUERY_STRING'} || $ARGV[0];
+ $SCRIPT_NAME = $ENV{'SCRIPT_NAME'} || $0;
+ $CGI = "file://$SCRIPT_NAME";
diff --git a/www-client/w3m-m17n/metadata.xml b/www-client/w3m-m17n/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/www-client/w3m-m17n/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/www-client/w3m-m17n/w3m-m17n-0.4.2.ebuild b/www-client/w3m-m17n/w3m-m17n-0.4.2.ebuild
new file mode 100644
index 000000000000..3b8c272a2957
--- /dev/null
+++ b/www-client/w3m-m17n/w3m-m17n-0.4.2.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/w3m-m17n/w3m-m17n-0.4.2.ebuild,v 1.1 2004/09/08 14:14:13 usata Exp $
+
+inherit eutils
+
+W3M_CVS_PV="1.862"
+W3M_P="${P/-m17n/}+cvs-${W3M_CVS_PV}"
+
+W3M_M17N_CVS_PV="1.859"
+W3M_M17N_P="w3m-cvs-${W3M_M17N_CVS_PV}-m17n"
+LIBWC_PV="20030224"
+
+DESCRIPTION="Lightweight text based WWW browser w3m with multilingual extension"
+HOMEPAGE="http://w3m.sourceforge.net/
+ http://www2u.biglobe.ne.jp/~hsaka/w3m/
+ http://www.page.sannet.ne.jp/knabe/w3m/w3m.html"
+SRC_URI="mirror://gentoo/${W3M_P}.tar.gz
+ mirror://gentoo/libwc-${LIBWC_PV}.tar.gz
+ http://www.page.sannet.ne.jp/knabe/w3m/${W3M_M17N_P}-1.diff.gz"
+# nls? ( http://www.page.sannet.ne.jp/knabe/w3m/${W3M_M17N_P}-nls-1.diff.gz)
+
+LICENSE="w3m"
+SLOT="0"
+KEYWORDS="x86 alpha ppc sparc"
+IUSE="X nopixbuf imlib imlib2 xface migemo gpm ssl"
+#IUSE="nls"
+
+RDEPEND=">=sys-libs/ncurses-5.2-r3
+ >=sys-libs/zlib-1.1.3-r2
+ dev-lang/perl
+ >=dev-libs/boehm-gc-6.2
+ X? ( || ( !nopixbuf? ( >=media-libs/gdk-pixbuf-0.22.0 )
+ imlib2? ( >=media-libs/imlib2-1.0.5 )
+ imlib? ( >=media-libs/imlib-1.9.8 )
+ virtual/libc )
+ )
+ xface? ( media-libs/compface )
+ gpm? ( >=sys-libs/gpm-1.19.3-r5 )
+ migemo? ( >=app-text/migemo-0.40 )
+ ssl? ( >=dev-libs/openssl-0.9.6b )"
+
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4
+ >=sys-devel/autoconf-2.58"
+
+PROVIDE="virtual/textbrowser
+ virtual/w3m"
+
+S=${WORKDIR}/${P/-m17n/}
+
+pkg_setup() {
+ if use X && use nopixbuf && ! use imlib2 && ! use imlib ; then
+ ewarn
+ ewarn "If you set USE=\"nopixbuf\" (disable gdk-pixbuf for w3mimgdisplay),"
+ ewarn "you need to enable either imlib2 or imlib USE flag."
+ ewarn
+ die "w3m-m17n requires gdk-pixbuf, imlib2 or imlib for image support."
+ fi
+}
+
+src_unpack() {
+ unpack ${W3M_P}.tar.gz
+ cd ${S}
+
+ # libwc doesn't come with w3m-m17n now
+ unpack libwc-${LIBWC_PV}.tar.gz
+
+ unpack ${W3M_M17N_P}-1.diff.gz
+ sed -i -e "/^--- w3m\/version.c.in/,+8d" ${W3M_M17N_P}-1.diff || die
+ epatch ${W3M_M17N_P}-1.diff
+ sed -i -e "s/0.4.2/0.4.2-m17n-20030308/" version.c.in || die
+
+ epatch ${FILESDIR}/w3m-w3mman-gentoo.diff
+ #use nls && epatch ${DISTDIR}/${W3M_M17N_P}-nls-1.diff.gz
+ epatch ${FILESDIR}/${P}-imglib-gentoo.diff
+}
+
+src_compile() {
+ local myconf migemo_command imglib
+
+ if use X ; then
+ myconf="${myconf} --enable-image=x11,fb `use_enable xface`"
+ if ! use nopixbuf ; then
+ imglib="gdk_pixbuf"
+ elif use imlib2 ; then
+ imglib="imlib2"
+ elif use imlib ; then
+ imglib="imlib"
+ else
+ # defaults to gdk_pixbuf
+ imglib="gdk_pixbuf"
+ fi
+ else
+ myconf="${myconf} --enable-image=no"
+ fi
+
+ if use migemo ; then
+ migemo_command="migemo -t egrep /usr/share/migemo/migemo-dict"
+ else
+ migemo_command="no"
+ fi
+
+ export WANT_AUTOCONF=2.5
+ autoconf || die
+
+ econf --program-suffix=-m17n \
+ --enable-keymap=w3m \
+ --with-editor=/usr/bin/nano \
+ --with-mailer=/bin/mail \
+ --with-browser=/usr/bin/mozilla \
+ --with-termlib=ncurses \
+ --with-imglib="${imglib}" \
+ --with-migemo="${migemo_command}" \
+ `use_enable gpm mouse` \
+ `use_enable ssl digest-auth` \
+ `use_with ssl` \
+ ${myconf} || die
+
+ # make borks
+ emake -j1 package=w3m-m17n W3M=w3m-m17n || die "make failed"
+}
+
+src_install() {
+ make package=w3m-m17n DESTDIR=${D} install || die
+
+ # w3mman and manpages conflict with those from w3m
+ mv ${D}/usr/bin/w3mman{,-m17n}
+ mv ${D}/usr/share/man/man1/w3mman{,-m17n}.1
+ #mv ${D}/usr/share/man/man1/w3m{,-m17n}.1
+ #mv ${D}/usr/share/man/ja/man1/w3m{,-m17n}.1
+
+ if ! has_version 'net-www/w3m' ; then
+ dosym /usr/bin/w3m{-m17n,}
+ dosym /usr/bin/w3mman{-m17n,}
+ dosym /usr/share/man/ja/man1/w3m{-m17n,}.1
+ dosym /usr/share/man/man1/w3m{-m17n,}.1
+ dosym /usr/share/man/man1/w3mman{-m17n,}.1
+ fi
+
+ insinto /usr/share/${PN}/Bonus
+ doins Bonus/*
+ dodoc README NEWS TODO ChangeLog
+ docinto doc-en ; dodoc doc/*
+ docinto doc-jp ; dodoc doc-jp/*
+}