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