/[gentoo-x86]/www-client/elinks/elinks-0.12_pre5.ebuild
Gentoo

Contents of /www-client/elinks/elinks-0.12_pre5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Mon Apr 16 11:02:58 2012 UTC (2 years, 6 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Support spidermonkey-1.8.5, bug #391297 by Ian Stakenvicius. Remove old.

(Portage version: 2.1.10.56/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/elinks/elinks-0.12_pre5.ebuild,v 1.9 2011/06/22 02:33:17 nirbheek Exp $
4
5 EAPI="2"
6
7 inherit eutils autotools flag-o-matic
8
9 MY_P="${P/_/}"
10 DESCRIPTION="Advanced and well-established text-mode web browser"
11 HOMEPAGE="http://elinks.or.cz/"
12 SRC_URI="http://elinks.or.cz/download/${MY_P}.tar.bz2
13 http://dev.gentoo.org/~spock/portage/distfiles/elinks-0.10.4.conf.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
18 IUSE="bittorrent bzip2 debug finger ftp gopher gpm guile idn ipv6 \
19 javascript lua nls nntp perl ruby samba ssl unicode X zlib"
20 RESTRICT="test"
21
22 DEPEND="dev-libs/boehm-gc
23 >=dev-libs/expat-1.95.4
24 bzip2? ( >=app-arch/bzip2-1.0.2 )
25 ssl? ( >=dev-libs/openssl-0.9.6g )
26 X? ( x11-libs/libX11 x11-libs/libXt )
27 zlib? ( >=sys-libs/zlib-1.1.4 )
28 lua? ( >=dev-lang/lua-5 )
29 gpm? ( >=sys-libs/ncurses-5.2 >=sys-libs/gpm-1.20.0-r5 )
30 guile? ( >=dev-scheme/guile-1.6.4-r1[deprecated,discouraged] )
31 idn? ( net-dns/libidn )
32 perl? ( sys-devel/libperl )
33 ruby? ( dev-lang/ruby dev-ruby/rubygems )
34 samba? ( net-fs/samba )
35 javascript? ( <=dev-lang/spidermonkey-1.8 )"
36 RDEPEND="${DEPEND}"
37
38 S="${WORKDIR}/${MY_P}"
39
40 src_prepare() {
41 cd "${WORKDIR}"
42 epatch "${FILESDIR}"/${PN}-0.10.4.conf-syscharset.diff
43 mv "${PN}-0.10.4.conf" "${PN}.conf"
44 if ! use ftp ; then
45 sed -i -e 's/\(.*protocol.ftp.*\)/# \1/' ${PN}.conf
46 fi
47 sed -i -e 's/\(.*set protocol.ftp.use_epsv.*\)/# \1/' ${PN}.conf
48 cd "${S}"
49
50 if use lua && has_version ">=dev-lang/lua-5.1"; then
51 epatch "${FILESDIR}"/${PN}-0.11.2-lua-5.1.patch
52 fi
53
54 epatch "${FILESDIR}"/elinks-0.11.5-makefile.patch
55 epatch "${FILESDIR}"/elinks-0.12_pre5-compilation-fix.patch
56
57 sed -i -e 's/-Werror//' configure*
58 eautoreconf
59 }
60
61 src_configure() {
62 # NOTE about GNUTSL SSL support (from the README -- 25/12/2002)
63 # As GNUTLS is not yet 100% stable and its support in ELinks is not so well
64 # tested yet, it's recommended for users to give a strong preference to OpenSSL whenever possible.
65 local myconf=""
66
67 if use debug ; then
68 myconf="--enable-debug"
69 else
70 myconf="--enable-fastmem"
71 fi
72
73 if use ssl ; then
74 myconf="${myconf} --with-openssl"
75 else
76 myconf="${myconf} --without-openssl --without-gnutls"
77 fi
78
79 econf \
80 --sysconfdir=/etc/elinks \
81 --enable-leds \
82 --enable-88-colors \
83 --enable-256-colors \
84 --enable-true-color \
85 --enable-html-highlight \
86 $(use_with gpm) \
87 $(use_with zlib) \
88 $(use_with bzip2 bzlib) \
89 $(use_with X x) \
90 $(use_with lua) \
91 $(use_with guile) \
92 $(use_with perl) \
93 $(use_with ruby) \
94 $(use_with idn) \
95 $(use_with javascript spidermonkey) \
96 $(use_enable bittorrent) \
97 $(use_enable nls) \
98 $(use_enable ipv6) \
99 $(use_enable ftp) \
100 $(use_enable gopher) \
101 $(use_enable nntp) \
102 $(use_enable finger) \
103 $(use_enable samba smb) \
104 ${myconf} || die
105 }
106
107 src_install() {
108 make DESTDIR="${D}" install || die
109
110 insopts -m 644 ; insinto /etc/elinks
111 doins "${WORKDIR}"/elinks.conf
112 newins contrib/keybind-full.conf keybind-full.sample
113 newins contrib/keybind.conf keybind.conf.sample
114
115 dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README SITES THANKS TODO doc/*.*
116 docinto contrib ; dodoc contrib/{README,colws.diff,elinks[-.]vim*}
117 insinto /usr/share/doc/${PF}/contrib/lua ; doins contrib/lua/{*.lua,elinks-remote}
118 insinto /usr/share/doc/${PF}/contrib/conv ; doins contrib/conv/*.*
119 insinto /usr/share/doc/${PF}/contrib/guile ; doins contrib/guile/*.scm
120
121 # Remove some conflicting files on OSX. The files provided by OSX 10.4
122 # are more or less the same. -- Fabian Groffen (2005-06-30)
123 rm -f "${D}"/usr/share/locale/locale.alias "${D}"/usr/lib/charset.alias
124 }
125
126 pkg_postinst() {
127 einfo "This ebuild provides a default config for ELinks."
128 einfo "Please check /etc/elinks/elinks.conf"
129 einfo
130 einfo "You may want to convert your html.cfg and links.cfg of"
131 einfo "Links or older ELinks versions to the new ELinks elinks.conf"
132 einfo "using /usr/share/doc/${PF}/contrib/conv/conf-links2elinks.pl"
133 einfo
134 einfo "Please have a look at /etc/elinks/keybind-full.sample and"
135 einfo "/etc/elinks/keybind.conf.sample for some bindings examples."
136 einfo
137 einfo "You will have to set your TERM variable to 'xterm-256color'"
138 einfo "to be able to use 256 colors in elinks."
139 echo
140 }

  ViewVC Help
Powered by ViewVC 1.1.20