Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/links/
Date: Mon, 17 Feb 2020 19:24:09
Message-Id: 1581967430.c7a3f6c8c3ef3cd7063a02908dbe96faf89612d3.bkohler@gentoo
1 commit: c7a3f6c8c3ef3cd7063a02908dbe96faf89612d3
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 17 19:23:02 2020 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 17 19:23:50 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7a3f6c8
7
8 www-client/links: bump to 2.20.2
9
10 Add a few new flags for optional deps
11
12 Closes: https://bugs.gentoo.org/657996
13 Bug: https://bugs.gentoo.org/694016
14 Package-Manager: Portage-2.3.89, Repoman-2.3.20
15 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
16
17 www-client/links/Manifest | 1 +
18 www-client/links/links-2.20.2.ebuild | 170 +++++++++++++++++++++++++++++++++++
19 www-client/links/metadata.xml | 7 ++
20 3 files changed, 178 insertions(+)
21
22 diff --git a/www-client/links/Manifest b/www-client/links/Manifest
23 index 3bdf7223be5..ef00e4c9fd6 100644
24 --- a/www-client/links/Manifest
25 +++ b/www-client/links/Manifest
26 @@ -2,3 +2,4 @@ DIST links-2.14.tar.bz2 6535707 BLAKE2B e0a2f804e05fde94be50ee2dce1453c0c616aac2
27 DIST links-2.16.tar.bz2 6697222 BLAKE2B dba0f00acf14e7994d3eeea7f77df897941690d959c2aa90924bb1256f310a6ddc969e2dc7ca8ca775f2ec06acebbabb30b35088a9cc6100b01f7fa6dfaeaaa8 SHA512 3ce169e214eae0f997c1f8647d354dc0803c9118a97dcd2594d62af23336890272f4b027d3ab0a0e151672d1506e50da0f0e561999c5841f0f183f32a279b14a
28 DIST links-2.17.tar.bz2 6694577 BLAKE2B a762dd810d8d939c3276ca13ed8460cc486d275e3436015440527fdbe16adc29ccf4ff26c59de2354c50cab5fbc6ce72d4b94cc6e731e4295f86f892eaf0af64 SHA512 871a3a2cbc210467f4ffd830ba2966f2ebc0ec9ed4a1de018d032cec4b550e58f6858875478647c627ec746bb76810a4b97603575f2d21b5ea650c612684c8d5
29 DIST links-2.18.tar.bz2 6703625 BLAKE2B 7fabfe805e5701bf254c7088da22f03125debfe764815b649a5533bd53ae6b61195c7005391140673baa2aa87f356e8134042f78404b6abbc4ce560ec75d7085 SHA512 fef25d90985663c64ab04d6b6ef445ef2ac80c8b297897ff23b7d798c0607b90c86432f1a6fc4f02d1b1e61fe934cd01cd554c5765500248e8481f5cfa71da51
30 +DIST links-2.20.2.tar.bz2 6474383 BLAKE2B c69c421a85114b3dc0d7f2b37ce5454655b426ea9463c80e4a826f02374c0740d963251b4e9ed6c960dcad15403511c33f3a2e199a728e8f5425a359963bd102 SHA512 82be459856f49f45c9b824589b78c0f58b039b09802e077420053e9449bc1ded272bb8ad57ea10522d8b3305ceb212a5dd08b01052538cd5b4f0447d0ba02152
31
32 diff --git a/www-client/links/links-2.20.2.ebuild b/www-client/links/links-2.20.2.ebuild
33 new file mode 100644
34 index 00000000000..d0e51b76c78
35 --- /dev/null
36 +++ b/www-client/links/links-2.20.2.ebuild
37 @@ -0,0 +1,170 @@
38 +# Copyright 1999-2020 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=6
42 +
43 +inherit autotools desktop xdg
44 +
45 +DESCRIPTION="A fast and lightweight web browser running in both graphics and text mode"
46 +HOMEPAGE="http://links.twibright.com/"
47 +SRC_URI="http://${PN}.twibright.com/download/${P}.tar.bz2"
48 +
49 +LICENSE="GPL-2"
50 +SLOT="2"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
52 +IUSE="brotli bzip2 fbcon freetype gpm ipv6 jpeg libevent libressl livecd lzip lzma ssl suid svga tiff unicode X zlib zstd"
53 +
54 +GRAPHICS_DEPEND="media-libs/libpng:0="
55 +
56 +RDEPEND="
57 + brotli? (
58 + app-arch/brotli
59 + )
60 + bzip2? (
61 + app-arch/bzip2
62 + )
63 + fbcon? (
64 + ${GRAPHICS_DEPEND}
65 + )
66 + freetype? (
67 + media-libs/fontconfig
68 + media-libs/freetype
69 + )
70 + gpm? (
71 + sys-libs/gpm
72 + )
73 + jpeg? (
74 + virtual/jpeg:0
75 + )
76 + libevent? (
77 + dev-libs/libevent:0=
78 + )
79 + livecd? (
80 + ${GRAPHICS_DEPEND}
81 + sys-libs/gpm
82 + virtual/jpeg:0
83 + )
84 + lzip? (
85 + app-arch/lzip
86 + )
87 + lzma? (
88 + app-arch/xz-utils
89 + )
90 + ssl? (
91 + !libressl? ( dev-libs/openssl:0= )
92 + libressl? ( dev-libs/libressl:0= )
93 + )
94 + svga? (
95 + ${GRAPHICS_DEPEND}
96 + media-libs/svgalib
97 + )
98 + tiff? (
99 + media-libs/tiff:0
100 + )
101 + X? (
102 + ${GRAPHICS_DEPEND}
103 + x11-libs/libXext
104 + )
105 + zlib? (
106 + sys-libs/zlib
107 + )
108 + zstd? (
109 + app-arch/zstd
110 + )"
111 +
112 +DEPEND="${RDEPEND}
113 + virtual/pkgconfig
114 + fbcon? ( virtual/os-headers )
115 + livecd? ( virtual/os-headers )"
116 +
117 +REQUIRED_USE="!livecd? ( fbcon? ( gpm ) )
118 + svga? ( suid )"
119 +
120 +DOCS=( AUTHORS BRAILLE_HOWTO ChangeLog KEYS NEWS README SITES )
121 +
122 +src_prepare() {
123 + xdg_src_prepare
124 +
125 + if use unicode; then
126 + pushd intl > /dev/null || die
127 + ./gen-intl || die
128 + ./synclang || die
129 + popd > /dev/null || die
130 + fi
131 +
132 + # error: conditional "am__fastdepCXX" was never defined (for eautoreconf)
133 + sed -i \
134 + -e '/AC_PROG_CXX/s:dnl ::' \
135 + -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
136 + configure.in || die #467020
137 +
138 + # Upstream configure produced by broken autoconf-2.13. This also fixes
139 + # toolchain detection.
140 + mv configure.in configure.ac || die
141 + eautoreconf #131440 and #103483#c23
142 +}
143 +
144 +src_configure() {
145 + local myconf
146 +
147 + if use livecd; then
148 + export ac_cv_lib_gpm_Gpm_Open=yes
149 + myconf+=' --with-fb --with-libjpeg'
150 + else
151 + export ac_cv_lib_gpm_Gpm_Open=$(usex gpm)
152 + fi
153 +
154 + if use X || use fbcon || use svga || use livecd; then
155 + myconf+=' --enable-graphics'
156 + fi
157 +
158 + econf \
159 + --without-directfb \
160 + --without-librsvg \
161 + $(use_with brotli) \
162 + $(use_with bzip2) \
163 + $(use_with fbcon fb) \
164 + $(use_with freetype) \
165 + $(use_with ipv6) \
166 + $(use_with jpeg libjpeg) \
167 + $(use_with libevent) \
168 + $(use_with lzip) \
169 + $(use_with lzma) \
170 + $(use_with ssl) \
171 + $(use_with svga svgalib) \
172 + $(use_with tiff libtiff) \
173 + $(use_with X x) \
174 + $(use_with zlib) \
175 + $(use_with zstd) \
176 + ${myconf}
177 +}
178 +
179 +src_install() {
180 + HTML_DOCS="doc/links_cal/*"
181 + default
182 +
183 + if use X; then
184 + newicon Links_logo.png links.png
185 + make_desktop_entry 'links -g %u' Links links 'Network;WebBrowser'
186 + local d="${ED}"/usr/share/applications
187 + echo 'MimeType=x-scheme-handler/http;' >> "${d}"/*.desktop || die
188 + if use ssl; then
189 + sed -i -e 's:x-scheme-handler/http;:&x-scheme-handler/https;:' \
190 + "${d}"/*.desktop || die
191 + fi
192 + fi
193 +
194 + use suid && fperms 4755 /usr/bin/links
195 +}
196 +
197 +pkg_preinst() {
198 + use X && xdg_pkg_preinst
199 +}
200 +
201 +pkg_postinst() {
202 + use X && xdg_pkg_postinst
203 +}
204 +
205 +pkg_postrm() {
206 + use X && xdg_pkg_postrm
207 +}
208
209 diff --git a/www-client/links/metadata.xml b/www-client/links/metadata.xml
210 index 3cdd882b514..a6d8060d24d 100644
211 --- a/www-client/links/metadata.xml
212 +++ b/www-client/links/metadata.xml
213 @@ -5,7 +5,14 @@
214 <email>monsieurp@g.o</email>
215 <name>Patrice Clement</name>
216 </maintainer>
217 + <maintainer type="person">
218 + <email>bkohler@g.o</email>
219 + <name>Ben Kohler</name>
220 + </maintainer>
221 <use>
222 + <flag name="brotli">Enable <pkg>app-arch/brotli</pkg> support</flag>
223 + <flag name="freetype">Enable <pkg>media-libs/freetype</pkg> support</flag>
224 <flag name="libevent">Enable <pkg>dev-libs/libevent</pkg> support</flag>
225 + <flag name="lzip">Enable <pkg>app-arch/lzip</pkg> support</flag>
226 </use>
227 </pkgmetadata>