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