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