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: Thu, 24 Nov 2022 23:27:40
Message-Id: 1669332367.1ab913d82de5fd727c65e33f30468f4217ffbe38.bkohler@gentoo
1 commit: 1ab913d82de5fd727c65e33f30468f4217ffbe38
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 24 23:24:29 2022 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 24 23:26:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ab913d8
7
8 www-client/links: add better icon
9
10 Some people don't think a 34x35 PNG is good enough!
11
12 Closes: https://bugs.gentoo.org/882703
13
14 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
15
16 www-client/links/Manifest | 1 +
17 www-client/links/links-2.28-r1.ebuild | 178 ++++++++++++++++++++++++++++++++++
18 2 files changed, 179 insertions(+)
19
20 diff --git a/www-client/links/Manifest b/www-client/links/Manifest
21 index 12975de12f74..2c038c9aaa7a 100644
22 --- a/www-client/links/Manifest
23 +++ b/www-client/links/Manifest
24 @@ -1 +1,2 @@
25 DIST links-2.28.tar.bz2 6512800 BLAKE2B 2ff210dd7ab92ab2f6280f5ef2d2e9873d377a646a9e2ac32a770f467c3c76edcddac628c1f36a12cdb01c2f26ed408b7460e6e85be00c40d53ec668da622786 SHA512 090bc770f78f8b57358ac0c6f31ad12f3d5f4eb9bbf74913ac8fa254e5ed63ec289c8a7990879983ace7427e20fb2de1271820f025b630c5a0ca599cf697b754
26 +DIST links-graphics-xlinks-logo-pic.png 6041 BLAKE2B dfa6c036eaeca66a4aabd909b3b5eb61dd9a4079ab236a2d65ca1756d1110319913849569cad19e59ca4ae2413f518d0613588b58c81b718d718a61f072f2e52 SHA512 563ba62e1172e86ae6911ea743ecb1faef1a8739c30c50355b6f12669aa91aa6fefb284ed049dc9b81537b2e9950ef501453ebfcd82ad284536d20a08e97ff36
27
28 diff --git a/www-client/links/links-2.28-r1.ebuild b/www-client/links/links-2.28-r1.ebuild
29 new file mode 100644
30 index 000000000000..1b144f3b9c72
31 --- /dev/null
32 +++ b/www-client/links/links-2.28-r1.ebuild
33 @@ -0,0 +1,178 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +inherit autotools desktop toolchain-funcs xdg-utils
40 +
41 +DESCRIPTION="A fast and lightweight web browser running in both graphics and text mode"
42 +HOMEPAGE="http://links.twibright.com/"
43 +SRC_URI="http://${PN}.twibright.com/download/${P}.tar.bz2
44 + X? ( https://dashboard.snapcraft.io/site_media/appmedia/2018/07/links-graphics-xlinks-logo-pic.png )"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="2"
48 +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"
49 +IUSE="brotli bzip2 fbcon freetype gpm ipv6 jpeg libevent livecd lzip lzma ssl suid svga tiff unicode webp X zlib zstd"
50 +
51 +GRAPHICS_DEPEND="media-libs/libpng:0="
52 +
53 +RDEPEND="
54 + dev-libs/libbsd
55 + brotli? (
56 + app-arch/brotli
57 + )
58 + bzip2? (
59 + app-arch/bzip2
60 + )
61 + fbcon? (
62 + ${GRAPHICS_DEPEND}
63 + )
64 + freetype? (
65 + media-libs/fontconfig
66 + media-libs/freetype
67 + )
68 + gpm? (
69 + sys-libs/gpm
70 + )
71 + jpeg? (
72 + media-libs/libjpeg-turbo:=
73 + )
74 + libevent? (
75 + dev-libs/libevent:0=
76 + )
77 + livecd? (
78 + ${GRAPHICS_DEPEND}
79 + sys-libs/gpm
80 + media-libs/libjpeg-turbo:=
81 + )
82 + lzip? (
83 + app-arch/lzip
84 + )
85 + lzma? (
86 + app-arch/xz-utils
87 + )
88 + ssl? (
89 + dev-libs/openssl:0=
90 + )
91 + svga? (
92 + ${GRAPHICS_DEPEND}
93 + media-libs/svgalib
94 + )
95 + tiff? (
96 + media-libs/tiff:0
97 + )
98 + webp? (
99 + media-libs/libwebp:=
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 + fbcon? ( virtual/os-headers )
114 + livecd? ( virtual/os-headers )"
115 +
116 +BDEPEND="virtual/pkgconfig"
117 +
118 +IDEPEND="X? ( dev-util/desktop-file-utils )"
119 +
120 +REQUIRED_USE="!livecd? ( fbcon? ( gpm ) )
121 + svga? ( suid )"
122 +
123 +DOCS=( AUTHORS BRAILLE_HOWTO ChangeLog KEYS NEWS README SITES )
124 +
125 +src_prepare() {
126 + use X && xdg_environment_reset
127 +
128 + if use unicode; then
129 + pushd intl > /dev/null || die
130 + ./gen-intl || die
131 + ./synclang || die
132 + popd > /dev/null || die
133 + fi
134 +
135 + # error: conditional "am__fastdepCXX" was never defined (for eautoreconf)
136 + sed -i \
137 + -e '/AC_PROG_CXX/s:dnl ::' \
138 + -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
139 + configure.in || die #467020
140 +
141 + # Upstream configure produced by broken autoconf-2.13. This also fixes
142 + # toolchain detection.
143 + mv configure.in configure.ac || die
144 +
145 + default
146 + eautoreconf #131440 and #103483#c23
147 +}
148 +
149 +src_configure() {
150 + local myconf
151 +
152 + if use livecd; then
153 + export ac_cv_lib_gpm_Gpm_Open=yes
154 + myconf+=' --with-fb --with-libjpeg'
155 + else
156 + export ac_cv_lib_gpm_Gpm_Open=$(usex gpm)
157 + fi
158 +
159 + if use X || use fbcon || use svga || use livecd; then
160 + myconf+=' --enable-graphics'
161 + fi
162 +
163 + tc-export PKG_CONFIG
164 +
165 + econf \
166 + --without-directfb \
167 + --without-librsvg \
168 + $(use_with brotli) \
169 + $(use_with bzip2) \
170 + $(use_with fbcon fb) \
171 + $(use_with freetype) \
172 + $(use_with ipv6) \
173 + $(use_with jpeg libjpeg) \
174 + $(use_with libevent) \
175 + $(use_with lzip) \
176 + $(use_with lzma) \
177 + $(use_with ssl) \
178 + $(use_with svga svgalib) \
179 + $(use_with tiff libtiff) \
180 + $(use_with webp libwebp) \
181 + $(use_with X x) \
182 + $(use_with zlib) \
183 + $(use_with zstd) \
184 + ${myconf}
185 +}
186 +
187 +src_install() {
188 + HTML_DOCS="doc/links_cal/*"
189 + default
190 +
191 + if use X; then
192 + newicon ${DISTDIR}/links-graphics-xlinks-logo-pic.png links.png
193 + make_desktop_entry 'links -g %u' Links links 'Network;WebBrowser'
194 + local d="${ED}"/usr/share/applications
195 + echo 'MimeType=x-scheme-handler/http;' >> "${d}"/*.desktop || die
196 + if use ssl; then
197 + sed -i -e 's:x-scheme-handler/http;:&x-scheme-handler/https;:' \
198 + "${d}"/*.desktop || die
199 + fi
200 + fi
201 +
202 + use suid && fperms 4755 /usr/bin/links
203 +}
204 +
205 +pkg_postinst() {
206 + use X && xdg_desktop_database_update
207 +}
208 +
209 +pkg_postrm() {
210 + use X && xdg_desktop_database_update
211 +}