diff options
author | Mamoru Komachi <usata@gentoo.org> | 2005-03-21 16:51:41 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2005-03-21 16:51:41 +0000 |
commit | 92df029d8d56889e09abe2e5f37aed4d95b6b88b (patch) | |
tree | 1ece788d8d078bd72471a063279974a0c16cbf36 /www-client/w3m/w3m-0.4.2-r10.ebuild | |
parent | depend on xine-lib-1.0 (diff) | |
download | gentoo-2-92df029d8d56889e09abe2e5f37aed4d95b6b88b.tar.gz gentoo-2-92df029d8d56889e09abe2e5f37aed4d95b6b88b.tar.bz2 gentoo-2-92df029d8d56889e09abe2e5f37aed4d95b6b88b.zip |
Moved from w3m-m17n.
(Portage version: 2.0.51.19)
Diffstat (limited to 'www-client/w3m/w3m-0.4.2-r10.ebuild')
-rw-r--r-- | www-client/w3m/w3m-0.4.2-r10.ebuild | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/www-client/w3m/w3m-0.4.2-r10.ebuild b/www-client/w3m/w3m-0.4.2-r10.ebuild new file mode 100644 index 000000000000..6f3c876b4f0d --- /dev/null +++ b/www-client/w3m/w3m-0.4.2-r10.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/w3m/w3m-0.4.2-r10.ebuild,v 1.1 2005/03/21 16:51:41 usata Exp $ + +inherit eutils + +W3M_CVS_PV="1.862" +W3M_P="${P}+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 + cjk? ( 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 cjk 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? ( gtk? ( >=media-libs/gdk-pixbuf-0.22.0 ) + !gtk? ( imlib2? ( >=media-libs/imlib2-1.0.5 ) + !imlib2? ( >=media-libs/imlib-1.9.8 ) ) + ) + 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" + +src_unpack() { + unpack ${W3M_P}.tar.gz + cd ${S} + + if use cjk ; then + # 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 + fi + + 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 gtk ; then + imglib="gdk_pixbuf" + elif use imlib2 ; then + imglib="imlib2" + else + imglib="imlib" + 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 \ + --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 || die "make failed" +} + +src_install() { + make DESTDIR=${D} install || die + + insinto /usr/share/${PN}/Bonus + doins Bonus/* + dodoc README NEWS TODO ChangeLog + docinto doc-en ; dodoc doc/* + docinto doc-jp ; dodoc doc-jp/* +} |