Gentoo Archives: gentoo-commits

From: "Michael Januszewski (spock)" <spock@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/elinks: ChangeLog elinks-0.11.5.ebuild
Date: Sun, 30 Nov 2008 19:05:24
Message-Id: E1L6rbc-0005L6-Qd@stork.gentoo.org
1 spock 08/11/30 19:05:20
2
3 Modified: ChangeLog
4 Added: elinks-0.11.5.ebuild
5 Log:
6 Version bump. Remove junk content from the lua patch. This commit fixes bugs #246575, #248280, and #249020.
7 (Portage version: 2.1.6_rc2/cvs/Linux 2.6.27 x86_64)
8
9 Revision Changes Path
10 1.107 www-client/elinks/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/elinks/ChangeLog?rev=1.107&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/elinks/ChangeLog?rev=1.107&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/elinks/ChangeLog?r1=1.106&r2=1.107
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/elinks/ChangeLog,v
19 retrieving revision 1.106
20 retrieving revision 1.107
21 diff -u -r1.106 -r1.107
22 --- ChangeLog 26 Nov 2008 16:44:46 -0000 1.106
23 +++ ChangeLog 30 Nov 2008 19:05:20 -0000 1.107
24 @@ -1,6 +1,14 @@
25 # ChangeLog for www-client/elinks
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-client/elinks/ChangeLog,v 1.106 2008/11/26 16:44:46 ranger Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/elinks/ChangeLog,v 1.107 2008/11/30 19:05:20 spock Exp $
29 +
30 +*elinks-0.11.5 (30 Nov 2008)
31 +
32 + 30 Nov 2008; MichaƂ Januszewski <spock@g.o>
33 + files/elinks-0.11.3-lua-5.patch, +files/elinks-0.11.5-makefile.patch,
34 + +elinks-0.11.5.ebuild:
35 + Version bump. Remove junk content from the lua patch. This commit fixes
36 + bugs #246575, #248280, and #249020.
37
38 26 Nov 2008; Brent Baude <ranger@g.o> elinks-0.11.4.ebuild:
39 stable ppc64, bug 239482
40
41
42
43 1.1 www-client/elinks/elinks-0.11.5.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/elinks/elinks-0.11.5.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/elinks/elinks-0.11.5.ebuild?rev=1.1&content-type=text/plain
47
48 Index: elinks-0.11.5.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/www-client/elinks/elinks-0.11.5.ebuild,v 1.1 2008/11/30 19:05:20 spock Exp $
53
54 WANT_AUTOCONF="latest"
55 WANT_AUTOMAKE="1.4"
56
57 inherit eutils autotools flag-o-matic
58
59 MY_P="${P/_/}"
60 DESCRIPTION="Advanced and well-established text-mode web browser"
61 HOMEPAGE="http://elinks.or.cz/"
62 SRC_URI="http://elinks.or.cz/download/${MY_P}.tar.bz2
63 http://dev.gentoo.org/~spock/portage/distfiles/elinks-0.10.4.conf.bz2"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
68 IUSE="bittorrent bzip2 debug finger ftp gopher gpm guile idn ipv6 \
69 javascript lua nls nntp perl ruby ssl unicode X zlib"
70 RESTRICT="test"
71
72 DEPEND=">=dev-libs/expat-1.95.4
73 bzip2? ( >=app-arch/bzip2-1.0.2 )
74 ssl? ( >=dev-libs/openssl-0.9.6g )
75 X? ( x11-libs/libX11 x11-libs/libXt )
76 zlib? ( >=sys-libs/zlib-1.1.4 )
77 lua? ( >=dev-lang/lua-5 )
78 gpm? ( >=sys-libs/ncurses-5.2 >=sys-libs/gpm-1.20.0-r5 )
79 guile? ( >=dev-scheme/guile-1.6.4-r1 )
80 idn? ( net-dns/libidn )
81 perl? ( sys-devel/libperl )
82 ruby? ( dev-lang/ruby )
83 !hppa? ( !mips? ( !alpha? ( javascript? ( dev-lang/spidermonkey ) ) ) )"
84 RDEPEND="${DEPEND}"
85
86 S="${WORKDIR}/${MY_P}"
87
88 pkg_setup() {
89 if use guile && has_version ">dev-scheme/guile-1.6.8" &&
90 ! built_with_use -a dev-scheme/guile deprecated discouraged; then
91 eerror "To install elinks with the 'guile' USE flag, dev-scheme/guile has to"
92 eerror "be built with 'deprecated' and 'discouraged' USE flags."
93 die "dev-scheme/guile not built with deprecated/discouraged"
94 fi
95 }
96
97 src_unpack() {
98 unpack ${A}
99 epatch "${FILESDIR}"/${PN}-0.10.4.conf-syscharset.diff
100 mv "${PN}-0.10.4.conf" "${PN}.conf"
101 if ! use ftp ; then
102 sed -i -e 's/\(.*protocol.ftp.*\)/# \1/' ${PN}.conf
103 fi
104 sed -i -e 's/\(.*set protocol.ftp.use_epsv.*\)/# \1/' ${PN}.conf
105 cd "${S}"
106 epatch "${FILESDIR}"/${PN}-0.11.3-lua-5.patch
107
108 if use lua && has_version ">=dev-lang/lua-5.1"; then
109 epatch "${FILESDIR}"/${PN}-0.11.2-lua-5.1.patch
110 fi
111
112 if use unicode ; then
113 epatch "${FILESDIR}"/elinks-0.10.1-utf_8_io-default.patch
114 fi
115
116 epatch "${FILESDIR}"/elinks-0.11.5-makefile.patch
117
118 sed -i -e 's/-Werror//' configure*
119 eautoreconf
120 }
121
122 src_compile() {
123 # NOTE about GNUTSL SSL support (from the README -- 25/12/2002)
124 # As GNUTLS is not yet 100% stable and its support in ELinks is not so well
125 # tested yet, it's recommended for users to give a strong preference to OpenSSL whenever possible.
126 local myconf=""
127
128 if use debug ; then
129 myconf="--enable-debug"
130 else
131 myconf="--enable-fastmem"
132 fi
133
134 if use ssl ; then
135 myconf="${myconf} --with-openssl"
136 else
137 myconf="${myconf} --without-openssl --without-gnutls"
138 fi
139
140 econf \
141 --sysconfdir=/etc/elinks \
142 --enable-leds \
143 --enable-88-colors \
144 --enable-256-colors \
145 --enable-html-highlight \
146 $(use_with gpm) \
147 $(use_with zlib) \
148 $(use_with bzip2 bzlib) \
149 $(use_with X x) \
150 $(use_with lua) \
151 $(use_with guile) \
152 $(use_with perl) \
153 $(use_with ruby) \
154 $(use_with idn) \
155 $(use_with javascript spidermonkey) \
156 $(use_enable bittorrent) \
157 $(use_enable nls) \
158 $(use_enable ipv6) \
159 $(use_enable ftp) \
160 $(use_enable gopher) \
161 $(use_enable nntp) \
162 $(use_enable finger) \
163 ${myconf} || die
164 emake || die "compile problem"
165 }
166
167 src_install() {
168 make DESTDIR="${D}" install || die
169
170 insopts -m 644 ; insinto /etc/elinks
171 doins "${WORKDIR}"/elinks.conf
172 newins contrib/keybind-full.conf keybind-full.sample
173 newins contrib/keybind.conf keybind.conf.sample
174
175 dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README SITES THANKS TODO doc/*.*
176 docinto contrib ; dodoc contrib/{README,colws.diff,elinks[-.]vim*}
177 insinto /usr/share/doc/${PF}/contrib/lua ; doins contrib/lua/{*.lua,elinks-remote}
178 insinto /usr/share/doc/${PF}/contrib/conv ; doins contrib/conv/*.*
179 insinto /usr/share/doc/${PF}/contrib/guile ; doins contrib/guile/*.scm
180
181 # Remove some conflicting files on OSX. The files provided by OSX 10.4
182 # are more or less the same. -- Fabian Groffen (2005-06-30)
183 rm -f "${D}"/usr/share/locale/locale.alias "${D}"/usr/lib/charset.alias
184 }
185
186 pkg_postinst() {
187 einfo "This ebuild provides a default config for ELinks."
188 einfo "Please check /etc/elinks/elinks.conf"
189 einfo
190 einfo "You may want to convert your html.cfg and links.cfg of"
191 einfo "Links or older ELinks versions to the new ELinks elinks.conf"
192 einfo "using /usr/share/doc/${PF}/contrib/conv/conf-links2elinks.pl"
193 einfo
194 einfo "Please have a look at /etc/elinks/keybind-full.sample and"
195 einfo "/etc/elinks/keybind.conf.sample for some bindings examples."
196 einfo
197 einfo "You will have to set your TERM variable to 'xterm-256color'"
198 einfo "to be able to use 256 colors in elinks."
199 echo
200 }