/[gentoo-x86]/www-client/w3m/w3m-0.5.3.ebuild
Gentoo

Contents of /www-client/w3m/w3m-0.5.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Apr 13 15:09:00 2011 UTC (2 years, 1 month ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -2 lines
Don't PROVIDE virtual/w3m, it is a new-style virtual now. Bug 358851.

(Portage version: 2.1.9.45/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-client/w3m/w3m-0.5.3.ebuild,v 1.3 2011/03/28 14:32:19 nirbheek Exp $
4
5 EAPI="3"
6 inherit eutils
7
8 DESCRIPTION="Text based WWW browser, supports tables and frames"
9 HOMEPAGE="http://w3m.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/w3m/${P}.tar.gz"
11
12 LICENSE="w3m"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
15 IUSE="X fbcon gpm gtk imlib lynxkeymap migemo nls nntp ssl unicode xface linguas_ja"
16
17 # We cannot build w3m with gtk+2 w/o X because gtk+2 ebuild doesn't
18 # allow us to build w/o X, so we have to give up framebuffer w3mimg....
19 DEPEND=">=sys-libs/ncurses-5.2-r3
20 >=sys-libs/zlib-1.1.3-r2
21 >=dev-libs/boehm-gc-6.2
22 X? ( x11-libs/libXext x11-libs/libXdmcp )
23 gtk? ( x11-libs/gtk+:2 )
24 !gtk? ( imlib? ( >=media-libs/imlib2-1.1.0 ) )
25 xface? ( media-libs/compface )
26 gpm? ( >=sys-libs/gpm-1.19.3-r5 )
27 migemo? ( >=app-text/migemo-0.40 )
28 ssl? ( >=dev-libs/openssl-0.9.6b )"
29 RDEPEND="${DEPEND}"
30
31 src_prepare() {
32 epatch "${FILESDIR}/${PN}-0.5.2-gc72.patch"
33 }
34
35 src_configure() {
36 local myconf migemo_command imagelibval imageval
37
38 if use gtk ; then
39 imagelibval="gtk2"
40 elif use imlib ; then
41 imagelibval="imlib2"
42 fi
43
44 if [ ! -z "${imagelibval}" ] ; then
45 use X && imageval="${imageval}${imageval:+,}x11"
46 use X && use fbcon && imageval="${imageval}${imageval:+,}fb"
47 fi
48
49 if use migemo ; then
50 migemo_command="migemo -t egrep ${EPREFIX}/usr/share/migemo/migemo-dict"
51 else
52 migemo_command="no"
53 fi
54
55 # emacs-w3m doesn't like "--enable-m17n --disable-unicode,"
56 # so we better enable or disable both. Default to enable
57 # m17n and unicode, see bug #47046.
58 if use linguas_ja ; then
59 if use unicode ; then
60 myconf="${myconf} --enable-japanese=U"
61 else
62 myconf="${myconf} --enable-japanese=E"
63 fi
64 elif use unicode ; then
65 myconf="${myconf} --with-charset=UTF-8"
66 else
67 myconf="${myconf} --with-charset=US-ASCII"
68 fi
69
70 # lynxkeymap IUSE flag. bug #49397
71 if use lynxkeymap ; then
72 myconf="${myconf} --enable-keymap=lynx"
73 else
74 myconf="${myconf} --enable-keymap=w3m"
75 fi
76
77 econf \
78 --with-editor="${EPREFIX}/usr/bin/vi" \
79 --with-mailer="${EPREFIX}/bin/mail" \
80 --with-browser="${EPREFIX}/usr/bin/xdg-open" \
81 --with-termlib=ncurses \
82 --enable-image=${imageval:-no} \
83 --with-imagelib="${imagelibval:-no}" \
84 --with-migemo="${migemo_command}" \
85 --enable-m17n \
86 --enable-unicode \
87 $(use_enable gpm mouse) \
88 $(use_enable nls) \
89 $(use_enable nntp) \
90 $(use_enable ssl digest-auth) \
91 $(use_with ssl) \
92 $(use_enable xface) \
93 ${myconf} || die
94 }
95
96 src_install() {
97
98 emake DESTDIR="${D}" install || die "emake install failed"
99
100 # http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/200307.month/3944.html
101 insinto /etc/${PN}
102 newins "${FILESDIR}/${PN}.mailcap" mailcap || die
103
104 insinto /usr/share/${PN}/Bonus
105 doins Bonus/* || die
106 dodoc README NEWS TODO ChangeLog || die
107 docinto doc-en ; dodoc doc/* || die
108 if use linguas_ja ; then
109 docinto doc-jp ; dodoc doc-jp/* || die
110 else
111 rm -rf "${ED}"/usr/share/man/ja || die
112 fi
113 }

  ViewVC Help
Powered by ViewVC 1.1.13