Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/elinks/
Date: Sun, 18 Feb 2018 17:25:56
Message-Id: 1518974744.6635e9bdfb3bf12cf7225685c0aceafb00c4859c.monsieurp@gentoo
1 commit: 6635e9bdfb3bf12cf7225685c0aceafb00c4859c
2 Author: Felix Janda <felix.janda <AT> posteo <DOT> de>
3 AuthorDate: Thu Jan 25 20:51:00 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 18 17:25:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6635e9bd
7
8 www-client/elinks: remove old.
9
10 www-client/elinks/elinks-0.12_pre6-r2.ebuild | 188 ---------------------------
11 1 file changed, 188 deletions(-)
12
13 diff --git a/www-client/elinks/elinks-0.12_pre6-r2.ebuild b/www-client/elinks/elinks-0.12_pre6-r2.ebuild
14 deleted file mode 100644
15 index e9e8625888a..00000000000
16 --- a/www-client/elinks/elinks-0.12_pre6-r2.ebuild
17 +++ /dev/null
18 @@ -1,188 +0,0 @@
19 -# Copyright 1999-2017 Gentoo Foundation
20 -# Distributed under the terms of the GNU General Public License v2
21 -
22 -EAPI="5"
23 -inherit eutils autotools flag-o-matic
24 -
25 -MY_P="${P/_/}"
26 -DESCRIPTION="Advanced and well-established text-mode web browser"
27 -HOMEPAGE="http://elinks.or.cz/"
28 -SRC_URI="http://elinks.or.cz/download/${MY_P}.tar.bz2
29 - https://dev.gentoo.org/~spock/portage/distfiles/elinks-0.10.4.conf.bz2
30 - https://dev.gentoo.org/~axs/distfiles/${PN}-0.12_pre5-js185-patches.tar.bz2"
31 -
32 -LICENSE="GPL-2"
33 -SLOT="0"
34 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
35 -IUSE="bittorrent bzip2 debug finger ftp gc gopher gpm guile idn ipv6
36 - javascript libressl lua +mouse nls nntp perl ruby samba ssl unicode X xml zlib"
37 -RESTRICT="test"
38 -
39 -DEPEND="
40 - bzip2? ( >=app-arch/bzip2-1.0.2 )
41 - gc? ( dev-libs/boehm-gc )
42 - ssl? (
43 - !libressl? ( dev-libs/openssl:0= )
44 - libressl? ( dev-libs/libressl:0= )
45 - )
46 - xml? ( >=dev-libs/expat-1.95.4 )
47 - X? ( x11-libs/libX11 x11-libs/libXt )
48 - zlib? ( >=sys-libs/zlib-1.1.4 )
49 - lua? ( >=dev-lang/lua-5:0 )
50 - gpm? ( >=sys-libs/ncurses-5.2:0 >=sys-libs/gpm-1.20.0-r5 )
51 - guile? ( >=dev-scheme/guile-1.6.4-r1[deprecated,discouraged] )
52 - idn? ( net-dns/libidn )
53 - perl? ( dev-lang/perl )
54 - ruby? ( dev-lang/ruby:= dev-ruby/rubygems )
55 - samba? ( net-fs/samba )
56 - javascript? ( dev-lang/spidermonkey:0 )"
57 -RDEPEND="${DEPEND}"
58 -
59 -S="${WORKDIR}/${MY_P}"
60 -
61 -src_prepare() {
62 - cd "${WORKDIR}"
63 - epatch "${FILESDIR}"/${PN}-0.10.4.conf-syscharset.diff
64 - mv "${PN}-0.10.4.conf" "${PN}.conf"
65 - if ! use ftp ; then
66 - sed -i -e 's/\(.*protocol.ftp.*\)/# \1/' ${PN}.conf
67 - fi
68 - sed -i -e 's/\(.*set protocol.ftp.use_epsv.*\)/# \1/' ${PN}.conf
69 - cd "${S}"
70 -
71 - if use lua && has_version ">=dev-lang/lua-5.1"; then
72 - epatch "${FILESDIR}"/${PN}-0.11.2-lua-5.1.patch
73 - fi
74 -
75 - epatch "${FILESDIR}"/${PN}-9999-parallel-make.patch
76 - epatch "${FILESDIR}"/${PN}-0.12_pre5-compilation-fix.patch
77 - epatch "${FILESDIR}"/${PN}-0.12_pre5-libressl.patch
78 - epatch "${FILESDIR}"/${PN}-0.12_pre5-rand-egd.patch
79 -
80 - if use javascript ; then
81 - if has_version ">=dev-lang/spidermonkey-1.8"; then
82 - if has_version ">=dev-lang/spidermonkey-1.8.5"; then
83 - epatch "${WORKDIR}"/patches/${PN}-0.12_pre5-js185-1-heartbeat.patch
84 - epatch "${WORKDIR}"/patches/${PN}-0.12_pre5-js185-2-up.patch
85 - epatch "${WORKDIR}"/patches/${PN}-0.12_pre5-js185-3-histback.patch
86 - epatch "${FILESDIR}"/${PN}-0.12_pre5-sm185-jsval-fixes.patch
87 -# if has_version ">=dev-lang/spidermonkey-1.8.7"; then
88 -# # fix lib order in configure check and add mozjs187
89 -# # (these seds are necessary so that @preserved-libs copies are not used)
90 -# sed -i -e 's:for spidermonkeylib in js .*$:for spidermonkeylib in mozjs187 mozjs185 mozjs js smjs; do:' \
91 -# configure.in || die
92 -# else
93 - # fix lib order in configure check
94 - # (these seds are necessary so that @preserved-libs copies are not used)
95 - sed -i -e 's:for spidermonkeylib in js .*$:for spidermonkeylib in mozjs185 mozjs js smjs; do:' \
96 - configure.in || die
97 -# fi
98 - else
99 - # fix lib order in configure check
100 - # (these seds are necessary so that @preserved-libs copies are not used)
101 - epatch "${FILESDIR}"/${MY_P}-spidermonkey-callback.patch
102 - sed -i -e 's:for spidermonkeylib in js .*$:for spidermonkeylib in mozjs js smjs; do:' \
103 - configure.in || die
104 - fi
105 - fi
106 - fi
107 - epatch "${FILESDIR}"/${PN}-0.12_pre5-ruby-1.9.patch
108 - # Regenerate acinclude.m4 - based on autogen.sh.
109 - cat > acinclude.m4 <<- _EOF
110 - dnl Automatically generated from config/m4/ files.
111 - dnl Do not modify!
112 - _EOF
113 - cat config/m4/*.m4 >> acinclude.m4
114 -
115 - sed -i -e 's/-Werror//' configure*
116 -
117 - eautoreconf
118 -}
119 -
120 -src_configure() {
121 - # NOTE about GNUTSL SSL support (from the README -- 25/12/2002)
122 - # As GNUTLS is not yet 100% stable and its support in ELinks is not so well
123 - # tested yet, it's recommended for users to give a strong preference to OpenSSL whenever possible.
124 - local myconf=""
125 -
126 - if use debug ; then
127 - myconf="--enable-debug"
128 - else
129 - myconf="--enable-fastmem"
130 - fi
131 -
132 - if use ssl ; then
133 - myconf="${myconf} --with-openssl=${EPREFIX}/usr"
134 - else
135 - myconf="${myconf} --without-openssl --without-gnutls"
136 - fi
137 -
138 - econf \
139 - --sysconfdir="${EPREFIX}"/etc/elinks \
140 - --enable-leds \
141 - --enable-88-colors \
142 - --enable-256-colors \
143 - --enable-true-color \
144 - --enable-html-highlight \
145 - $(use_with gpm) \
146 - $(use_with zlib) \
147 - $(use_with bzip2 bzlib) \
148 - $(use_with gc) \
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 - $(use_enable samba smb) \
164 - $(use_enable mouse) \
165 - $(use_enable xml xbel) \
166 - ${myconf}
167 -}
168 -
169 -src_compile() {
170 - emake V=1
171 -}
172 -
173 -src_install() {
174 - emake V=1 DESTDIR="${D}" install
175 -
176 - insopts -m 644 ; insinto /etc/elinks
177 - doins "${WORKDIR}"/elinks.conf
178 - newins contrib/keybind-full.conf keybind-full.sample
179 - newins contrib/keybind.conf keybind.conf.sample
180 -
181 - dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README SITES THANKS TODO doc/*.*
182 - docinto contrib ; dodoc contrib/{README,colws.diff,elinks[-.]vim*}
183 - insinto /usr/share/doc/${PF}/contrib/lua ; doins contrib/lua/{*.lua,elinks-remote}
184 - insinto /usr/share/doc/${PF}/contrib/conv ; doins contrib/conv/*.*
185 - insinto /usr/share/doc/${PF}/contrib/guile ; doins contrib/guile/*.scm
186 -
187 - # Remove some conflicting files on OSX. The files provided by OSX 10.4
188 - # are more or less the same. -- Fabian Groffen (2005-06-30)
189 - rm -f "${ED}"/usr/share/locale/locale.alias "${ED}"/usr/lib/charset.alias || die
190 -}
191 -
192 -pkg_postinst() {
193 - einfo "This ebuild provides a default config for ELinks."
194 - einfo "Please check /etc/elinks/elinks.conf"
195 - einfo
196 - einfo "You may want to convert your html.cfg and links.cfg of"
197 - einfo "Links or older ELinks versions to the new ELinks elinks.conf"
198 - einfo "using /usr/share/doc/${PF}/contrib/conv/conf-links2elinks.pl"
199 - einfo
200 - einfo "Please have a look at /etc/elinks/keybind-full.sample and"
201 - einfo "/etc/elinks/keybind.conf.sample for some bindings examples."
202 - einfo
203 - einfo "You will have to set your TERM variable to 'xterm-256color'"
204 - einfo "to be able to use 256 colors in elinks."
205 - echo
206 -}