Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/elinks: elinks-0.12_pre6.ebuild ChangeLog
Date: Thu, 29 Aug 2013 20:16:16
Message-Id: 20130829201607.AF0FA2004C@flycatcher.gentoo.org
1 axs 13/08/29 20:16:07
2
3 Modified: ChangeLog
4 Added: elinks-0.12_pre6.ebuild
5 Log:
6 bumped ebuild to _pre6 ; kept all patches for _pre5 in place since they all still apply clean
7
8 (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
9
10 Revision Changes Path
11 1.158 www-client/elinks/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/elinks/ChangeLog?rev=1.158&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/elinks/ChangeLog?rev=1.158&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/elinks/ChangeLog?r1=1.157&r2=1.158
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/elinks/ChangeLog,v
20 retrieving revision 1.157
21 retrieving revision 1.158
22 diff -u -r1.157 -r1.158
23 --- ChangeLog 24 Aug 2013 11:04:16 -0000 1.157
24 +++ ChangeLog 29 Aug 2013 20:16:07 -0000 1.158
25 @@ -1,6 +1,12 @@
26 # ChangeLog for www-client/elinks
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-client/elinks/ChangeLog,v 1.157 2013/08/24 11:04:16 maekke Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-client/elinks/ChangeLog,v 1.158 2013/08/29 20:16:07 axs Exp $
30 +
31 +*elinks-0.12_pre6 (29 Aug 2013)
32 +
33 + 29 Aug 2013; Ian Stakenvicius <axs@g.o> +elinks-0.12_pre6.ebuild:
34 + bumped ebuild to _pre6 ; kept all patches for _pre5 in place since they all
35 + still apply clean
36
37 24 Aug 2013; Markus Meier <maekke@g.o> elinks-0.12_pre5-r2.ebuild:
38 add ~arm, bug #477806
39
40
41
42 1.1 www-client/elinks/elinks-0.12_pre6.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/elinks/elinks-0.12_pre6.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/elinks/elinks-0.12_pre6.ebuild?rev=1.1&content-type=text/plain
46
47 Index: elinks-0.12_pre6.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-client/elinks/elinks-0.12_pre6.ebuild,v 1.1 2013/08/29 20:16:07 axs Exp $
52
53 EAPI=4
54 inherit eutils autotools flag-o-matic
55
56 MY_P="${P/_/}"
57 DESCRIPTION="Advanced and well-established text-mode web browser"
58 HOMEPAGE="http://elinks.or.cz/"
59 SRC_URI="http://elinks.or.cz/download/${MY_P}.tar.bz2
60 http://dev.gentoo.org/~spock/portage/distfiles/elinks-0.10.4.conf.bz2
61 http://dev.gentoo.org/~axs/distfiles/${PN}-0.12_pre5-js185-patches.tar.bz2"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
66 IUSE="bittorrent bzip2 debug finger ftp gopher gpm guile idn ipv6 \
67 javascript lua +mouse nls nntp perl ruby samba ssl unicode X zlib"
68 RESTRICT="test"
69
70 DEPEND="dev-libs/boehm-gc
71 >=dev-libs/expat-1.95.4
72 bzip2? ( >=app-arch/bzip2-1.0.2 )
73 ssl? ( >=dev-libs/openssl-0.9.6g )
74 X? ( x11-libs/libX11 x11-libs/libXt )
75 zlib? ( >=sys-libs/zlib-1.1.4 )
76 lua? ( >=dev-lang/lua-5 )
77 gpm? ( >=sys-libs/ncurses-5.2 >=sys-libs/gpm-1.20.0-r5 )
78 guile? ( >=dev-scheme/guile-1.6.4-r1[deprecated,discouraged] )
79 idn? ( net-dns/libidn )
80 perl? ( sys-devel/libperl )
81 ruby? ( dev-lang/ruby dev-ruby/rubygems )
82 samba? ( net-fs/samba )
83 javascript? ( dev-lang/spidermonkey:0 )"
84 RDEPEND="${DEPEND}"
85
86 S="${WORKDIR}/${MY_P}"
87
88 src_prepare() {
89 cd "${WORKDIR}"
90 epatch "${FILESDIR}"/${PN}-0.10.4.conf-syscharset.diff
91 mv "${PN}-0.10.4.conf" "${PN}.conf"
92 if ! use ftp ; then
93 sed -i -e 's/\(.*protocol.ftp.*\)/# \1/' ${PN}.conf
94 fi
95 sed -i -e 's/\(.*set protocol.ftp.use_epsv.*\)/# \1/' ${PN}.conf
96 cd "${S}"
97
98 if use lua && has_version ">=dev-lang/lua-5.1"; then
99 epatch "${FILESDIR}"/${PN}-0.11.2-lua-5.1.patch
100 fi
101
102 epatch "${FILESDIR}"/${PN}-0.11.5-makefile.patch
103 epatch "${FILESDIR}"/${PN}-0.12_pre5-compilation-fix.patch
104
105 if use javascript ; then
106 if has_version ">=dev-lang/spidermonkey-1.8"; then
107 if has_version ">=dev-lang/spidermonkey-1.8.5"; then
108 epatch "${WORKDIR}"/patches/${PN}-0.12_pre5-js185-1-heartbeat.patch
109 epatch "${WORKDIR}"/patches/${PN}-0.12_pre5-js185-2-up.patch
110 epatch "${WORKDIR}"/patches/${PN}-0.12_pre5-js185-3-histback.patch
111 epatch "${FILESDIR}"/${PN}-0.12_pre5-sm185-jsval-fixes.patch
112 # if has_version ">=dev-lang/spidermonkey-1.8.7"; then
113 # # fix lib order in configure check and add mozjs187
114 # # (these seds are necessary so that @preserved-libs copies are not used)
115 # sed -i -e 's:for spidermonkeylib in js .*$:for spidermonkeylib in mozjs187 mozjs185 mozjs js smjs; do:' \
116 # configure.in || die
117 # else
118 # fix lib order in configure check
119 # (these seds are necessary so that @preserved-libs copies are not used)
120 sed -i -e 's:for spidermonkeylib in js .*$:for spidermonkeylib in mozjs185 mozjs js smjs; do:' \
121 configure.in || die
122 # fi
123 else
124 # fix lib order in configure check
125 # (these seds are necessary so that @preserved-libs copies are not used)
126 epatch "${FILESDIR}"/${MY_P}-spidermonkey-callback.patch
127 sed -i -e 's:for spidermonkeylib in js .*$:for spidermonkeylib in mozjs js smjs; do:' \
128 configure.in || die
129 fi
130 fi
131 fi
132 epatch "${FILESDIR}"/${PN}-0.12_pre5-ruby-1.9.patch
133 # Regenerate acinclude.m4 - based on autogen.sh.
134 cat > acinclude.m4 <<- _EOF
135 dnl Automatically generated from config/m4/ files.
136 dnl Do not modify!
137 _EOF
138 cat config/m4/*.m4 >> acinclude.m4
139
140 sed -i -e 's/-Werror//' configure*
141
142 eautoreconf
143 }
144
145 src_configure() {
146 # NOTE about GNUTSL SSL support (from the README -- 25/12/2002)
147 # As GNUTLS is not yet 100% stable and its support in ELinks is not so well
148 # tested yet, it's recommended for users to give a strong preference to OpenSSL whenever possible.
149 local myconf=""
150
151 if use debug ; then
152 myconf="--enable-debug"
153 else
154 myconf="--enable-fastmem"
155 fi
156
157 if use ssl ; then
158 myconf="${myconf} --with-openssl=${EPREFIX}/usr"
159 else
160 myconf="${myconf} --without-openssl --without-gnutls"
161 fi
162
163 econf \
164 --sysconfdir="${EPREFIX}"/etc/elinks \
165 --enable-leds \
166 --enable-88-colors \
167 --enable-256-colors \
168 --enable-true-color \
169 --enable-html-highlight \
170 $(use_with gpm) \
171 $(use_with zlib) \
172 $(use_with bzip2 bzlib) \
173 $(use_with X x) \
174 $(use_with lua) \
175 $(use_with guile) \
176 $(use_with perl) \
177 $(use_with ruby) \
178 $(use_with idn) \
179 $(use_with javascript spidermonkey) \
180 $(use_enable bittorrent) \
181 $(use_enable nls) \
182 $(use_enable ipv6) \
183 $(use_enable ftp) \
184 $(use_enable gopher) \
185 $(use_enable nntp) \
186 $(use_enable finger) \
187 $(use_enable samba smb) \
188 $(use_enable mouse) \
189 ${myconf}
190 }
191
192 src_install() {
193 emake DESTDIR="${D}" install
194
195 insopts -m 644 ; insinto /etc/elinks
196 doins "${WORKDIR}"/elinks.conf
197 newins contrib/keybind-full.conf keybind-full.sample
198 newins contrib/keybind.conf keybind.conf.sample
199
200 dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README SITES THANKS TODO doc/*.*
201 docinto contrib ; dodoc contrib/{README,colws.diff,elinks[-.]vim*}
202 insinto /usr/share/doc/${PF}/contrib/lua ; doins contrib/lua/{*.lua,elinks-remote}
203 insinto /usr/share/doc/${PF}/contrib/conv ; doins contrib/conv/*.*
204 insinto /usr/share/doc/${PF}/contrib/guile ; doins contrib/guile/*.scm
205
206 # Remove some conflicting files on OSX. The files provided by OSX 10.4
207 # are more or less the same. -- Fabian Groffen (2005-06-30)
208 rm -f "${ED}"/usr/share/locale/locale.alias "${ED}"/usr/lib/charset.alias || die
209 }
210
211 pkg_postinst() {
212 einfo "This ebuild provides a default config for ELinks."
213 einfo "Please check /etc/elinks/elinks.conf"
214 einfo
215 einfo "You may want to convert your html.cfg and links.cfg of"
216 einfo "Links or older ELinks versions to the new ELinks elinks.conf"
217 einfo "using /usr/share/doc/${PF}/contrib/conv/conf-links2elinks.pl"
218 einfo
219 einfo "Please have a look at /etc/elinks/keybind-full.sample and"
220 einfo "/etc/elinks/keybind.conf.sample for some bindings examples."
221 einfo
222 einfo "You will have to set your TERM variable to 'xterm-256color'"
223 einfo "to be able to use 256 colors in elinks."
224 echo
225 }