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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Jun 21 10:31:15 2012 UTC (2 years, 2 months ago) by flameeyes
Branch: MAIN
Changes since 1.5: +6 -1 lines
QA: don't use parallel build until bug #362249 is fixed.

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 # Copyright 1999-2012 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-r2.ebuild,v 1.5 2012/06/13 07:00:25 mr_bones_ 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 vanilla 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? (
24 vanilla? ( x11-libs/gtk+:2 )
25 !vanilla? ( x11-libs/gdk-pixbuf ) )
26 !gtk? ( imlib? ( >=media-libs/imlib2-1.1.0[X] ) )
27 xface? ( media-libs/compface )
28 gpm? ( >=sys-libs/gpm-1.19.3-r5 )
29 migemo? ( >=app-text/migemo-0.40 )
30 ssl? ( >=dev-libs/openssl-0.9.6b )"
31 RDEPEND="${DEPEND}"
32
33 src_prepare() {
34 epatch \
35 "${FILESDIR}/${PN}-0.5.2-gc72.patch" \
36 "${FILESDIR}/${PN}-0.5.3-parallel-make.patch" \
37 "${FILESDIR}/${PN}-0.5.3-glibc214.patch" \
38 "${FILESDIR}/${PN}-0.5.3-underlinking.patch"
39 use vanilla || \
40 epatch "${FILESDIR}"/${PN}-0.5.3-button.patch \
41 "${FILESDIR}"/${P}-gdk-pixbuf.patch
42 find . -name CVS -type d | xargs rm -r
43 }
44
45 src_configure() {
46 local myconf migemo_command imagelibval imageval
47
48 if use gtk ; then
49 imagelibval="gtk2"
50 elif use imlib ; then
51 imagelibval="imlib2"
52 fi
53
54 if [ ! -z "${imagelibval}" ] ; then
55 use X && imageval="${imageval}${imageval:+,}x11"
56 use X && use fbcon && imageval="${imageval}${imageval:+,}fb"
57 fi
58
59 if use migemo ; then
60 migemo_command="migemo -t egrep ${EPREFIX}/usr/share/migemo/migemo-dict"
61 else
62 migemo_command="no"
63 fi
64
65 # emacs-w3m doesn't like "--enable-m17n --disable-unicode,"
66 # so we better enable or disable both. Default to enable
67 # m17n and unicode, see bug #47046.
68 if use linguas_ja ; then
69 if use unicode ; then
70 myconf="${myconf} --enable-japanese=U"
71 else
72 myconf="${myconf} --enable-japanese=E"
73 fi
74 elif use unicode ; then
75 myconf="${myconf} --with-charset=UTF-8"
76 else
77 myconf="${myconf} --with-charset=US-ASCII"
78 fi
79
80 # lynxkeymap IUSE flag. bug #49397
81 if use lynxkeymap ; then
82 myconf="${myconf} --enable-keymap=lynx"
83 else
84 myconf="${myconf} --enable-keymap=w3m"
85 fi
86
87 econf \
88 --with-editor="${EPREFIX}/usr/bin/vi" \
89 --with-mailer="${EPREFIX}/bin/mail" \
90 --with-browser="${EPREFIX}/usr/bin/xdg-open" \
91 --with-termlib=ncurses \
92 --enable-image=${imageval:-no} \
93 --with-imagelib="${imagelibval:-no}" \
94 --with-migemo="${migemo_command}" \
95 --enable-m17n \
96 --enable-unicode \
97 $(use_enable gpm mouse) \
98 $(use_enable nls) \
99 $(use_enable nntp) \
100 $(use_enable ssl digest-auth) \
101 $(use_with ssl) \
102 $(use_enable xface) \
103 ${myconf} || die
104 }
105
106 src_compile() {
107 # bug #362249
108 emake -j1 || die
109 }
110
111 src_install() {
112
113 emake DESTDIR="${D}" install || die "emake install failed"
114
115 # http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/200307.month/3944.html
116 insinto /etc/${PN}
117 newins "${FILESDIR}/${PN}.mailcap" mailcap || die
118
119 insinto /usr/share/${PN}/Bonus
120 doins Bonus/* || die
121 dodoc README NEWS TODO ChangeLog || die
122 docinto doc-en ; dodoc doc/* || die
123 if use linguas_ja ; then
124 docinto doc-jp ; dodoc doc-jp/* || die
125 else
126 rm -rf "${ED}"/usr/share/man/ja || die
127 fi
128 }

  ViewVC Help
Powered by ViewVC 1.1.20