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