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

Contents of /www-client/elinks/elinks-0.11.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Jan 6 21:37:25 2011 UTC (8 years, 11 months ago) by spock
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Remove old ebuilds.

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

  ViewVC Help
Powered by ViewVC 1.1.20