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, 30 May 2022 19:13:14
Message-Id: 1653937967.966bc4406f6d0f9cdcd368e2c1ea2a765a339249.bkohler@gentoo
1 commit: 966bc4406f6d0f9cdcd368e2c1ea2a765a339249
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 30 19:10:34 2022 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Mon May 30 19:12:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=966bc440
7
8 www-client/links: add 2.27
9
10 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
11
12 www-client/links/Manifest | 1 +
13 www-client/links/links-2.27.ebuild | 177 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 178 insertions(+)
15
16 diff --git a/www-client/links/Manifest b/www-client/links/Manifest
17 index c2e2908d5633..f842f9ca45c6 100644
18 --- a/www-client/links/Manifest
19 +++ b/www-client/links/Manifest
20 @@ -1 +1,2 @@
21 DIST links-2.26.tar.bz2 6508447 BLAKE2B e0bf5ac4e05a8e14ae7342aed7bb7ac0f5f6c2d9e23adda221cc3ba73f39020c95cef90d10d5c9d0697797683ff1edf1ed55a4d8aca0930b2eb01b547a21bf00 SHA512 b732f88ae0e9f63f577fc3041058c56b43ffec3b797328453d0770e326010b05fcc04128287ef35b0d189bd0768446057d8773e10f8e0a76bab72fb252cdd530
22 +DIST links-2.27.tar.bz2 6510121 BLAKE2B c7326147c583ad380f1b528a216ecf056a40a2939b290d69061682aa9f397ab3eabb71691cb68efcd0739b67acbe1f38f95a8a347d5045efe671eacfd0e5c40a SHA512 8b46472184f2eab1aeca5de9b957a87f475f5acd9801260678b07475cf36afb1a9602e67ef39ad59da90d2d6cee235521db95d93349fd9bd6cee667eab2e5d32
23
24 diff --git a/www-client/links/links-2.27.ebuild b/www-client/links/links-2.27.ebuild
25 new file mode 100644
26 index 000000000000..037b3c189417
27 --- /dev/null
28 +++ b/www-client/links/links-2.27.ebuild
29 @@ -0,0 +1,177 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit autotools desktop toolchain-funcs xdg-utils
36 +
37 +DESCRIPTION="A fast and lightweight web browser running in both graphics and text mode"
38 +HOMEPAGE="http://links.twibright.com/"
39 +SRC_URI="http://${PN}.twibright.com/download/${P}.tar.bz2"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="2"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
44 +IUSE="brotli bzip2 fbcon freetype gpm ipv6 jpeg libevent livecd lzip lzma ssl suid svga tiff unicode webp X zlib zstd"
45 +
46 +GRAPHICS_DEPEND="media-libs/libpng:0="
47 +
48 +RDEPEND="
49 + dev-libs/libbsd
50 + brotli? (
51 + app-arch/brotli
52 + )
53 + bzip2? (
54 + app-arch/bzip2
55 + )
56 + fbcon? (
57 + ${GRAPHICS_DEPEND}
58 + )
59 + freetype? (
60 + media-libs/fontconfig
61 + media-libs/freetype
62 + )
63 + gpm? (
64 + sys-libs/gpm
65 + )
66 + jpeg? (
67 + media-libs/libjpeg-turbo:=
68 + )
69 + libevent? (
70 + dev-libs/libevent:0=
71 + )
72 + livecd? (
73 + ${GRAPHICS_DEPEND}
74 + sys-libs/gpm
75 + media-libs/libjpeg-turbo:=
76 + )
77 + lzip? (
78 + app-arch/lzip
79 + )
80 + lzma? (
81 + app-arch/xz-utils
82 + )
83 + ssl? (
84 + dev-libs/openssl:0=
85 + )
86 + svga? (
87 + ${GRAPHICS_DEPEND}
88 + media-libs/svgalib
89 + )
90 + tiff? (
91 + media-libs/tiff:0
92 + )
93 + webp? (
94 + media-libs/libwebp:=
95 + )
96 + X? (
97 + ${GRAPHICS_DEPEND}
98 + x11-libs/libXext
99 + )
100 + zlib? (
101 + sys-libs/zlib
102 + )
103 + zstd? (
104 + app-arch/zstd
105 + )"
106 +
107 +DEPEND="${RDEPEND}
108 + fbcon? ( virtual/os-headers )
109 + livecd? ( virtual/os-headers )"
110 +
111 +BDEPEND="virtual/pkgconfig"
112 +
113 +IDEPEND="X? ( dev-util/desktop-file-utils )"
114 +
115 +REQUIRED_USE="!livecd? ( fbcon? ( gpm ) )
116 + svga? ( suid )"
117 +
118 +DOCS=( AUTHORS BRAILLE_HOWTO ChangeLog KEYS NEWS README SITES )
119 +
120 +src_prepare() {
121 + use X && xdg_environment_reset
122 +
123 + if use unicode; then
124 + pushd intl > /dev/null || die
125 + ./gen-intl || die
126 + ./synclang || die
127 + popd > /dev/null || die
128 + fi
129 +
130 + # error: conditional "am__fastdepCXX" was never defined (for eautoreconf)
131 + sed -i \
132 + -e '/AC_PROG_CXX/s:dnl ::' \
133 + -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
134 + configure.in || die #467020
135 +
136 + # Upstream configure produced by broken autoconf-2.13. This also fixes
137 + # toolchain detection.
138 + mv configure.in configure.ac || die
139 +
140 + default
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 + tc-export PKG_CONFIG
159 +
160 + econf \
161 + --without-directfb \
162 + --without-librsvg \
163 + $(use_with brotli) \
164 + $(use_with bzip2) \
165 + $(use_with fbcon fb) \
166 + $(use_with freetype) \
167 + $(use_with ipv6) \
168 + $(use_with jpeg libjpeg) \
169 + $(use_with libevent) \
170 + $(use_with lzip) \
171 + $(use_with lzma) \
172 + $(use_with ssl) \
173 + $(use_with svga svgalib) \
174 + $(use_with tiff libtiff) \
175 + $(use_with webp libwebp) \
176 + $(use_with X x) \
177 + $(use_with zlib) \
178 + $(use_with zstd) \
179 + ${myconf}
180 +}
181 +
182 +src_install() {
183 + HTML_DOCS="doc/links_cal/*"
184 + default
185 +
186 + if use X; then
187 + newicon Links_logo.png links.png
188 + make_desktop_entry 'links -g %u' Links links 'Network;WebBrowser'
189 + local d="${ED}"/usr/share/applications
190 + echo 'MimeType=x-scheme-handler/http;' >> "${d}"/*.desktop || die
191 + if use ssl; then
192 + sed -i -e 's:x-scheme-handler/http;:&x-scheme-handler/https;:' \
193 + "${d}"/*.desktop || die
194 + fi
195 + fi
196 +
197 + use suid && fperms 4755 /usr/bin/links
198 +}
199 +
200 +pkg_postinst() {
201 + use X && xdg_desktop_database_update
202 +}
203 +
204 +pkg_postrm() {
205 + use X && xdg_desktop_database_update
206 +}