1 |
commit: 1a112362effe35062597e8dfc0d3ec54898694f7 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 30 07:10:14 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 30 07:31:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a112362 |
7 |
|
8 |
www-client/lynx: add 2.9.0_pre11 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
www-client/lynx/Manifest | 2 + |
13 |
www-client/lynx/lynx-2.9.0_pre11.ebuild | 108 ++++++++++++++++++++++++++++++++ |
14 |
www-client/lynx/metadata.xml | 1 + |
15 |
3 files changed, 111 insertions(+) |
16 |
|
17 |
diff --git a/www-client/lynx/Manifest b/www-client/lynx/Manifest |
18 |
index 814ca604fb99..b0bac5a81296 100644 |
19 |
--- a/www-client/lynx/Manifest |
20 |
+++ b/www-client/lynx/Manifest |
21 |
@@ -1,2 +1,4 @@ |
22 |
DIST lynx2.9.0dev.10.tar.bz2 2748823 BLAKE2B d4d5625091dd19fcbb245b51faca0913241491cc5c176702d04fb967abd960cee8a70ceb0fe769978a954cbf8a3bb3eae6cf096e2af600cb5916988a183479bd SHA512 afc8bbd241045a530d2c869b268fce708077024fea4363902d258a174994424e6cc64f066c63db82f08bb7e368647cbed1d420d596a494982f09ae05ec9e8bf5 |
23 |
DIST lynx2.9.0dev.10.tar.bz2.asc 729 BLAKE2B 80c7cfa5e91e3b66af3bce2034c435e3bebbd4601034887bafdcad910619fc7141108f994ad4b095b28042e1f412549ab57182da09710f22e1a37f3249204c12 SHA512 386f1ce3d65db6275f999c3e6b9e4af31ca1f8c7bd2577fa0d130df3eb15685c0badc92b1b853805151b30ddda35f6423ad89f62b4983ad102ede770d6b15e60 |
24 |
+DIST lynx2.9.0dev.11.tar.bz2 2761964 BLAKE2B e5830aa84749b693ccf715b6492b9b2613c313770a3e161f6ff0b816d702a2cdb891486849a9cd2a86a534972bd8ec4dbfb6b70485d98ac714ab7d210f9da2b7 SHA512 d7eaf567f145b31fe3ab827768326c0af28c1ef891c280fa45041184a8f3b4e310a9f8c192d1495b55fb0bf5cb2a08e7310aec728a1f906a3d3d391448ae4121 |
25 |
+DIST lynx2.9.0dev.11.tar.bz2.asc 729 BLAKE2B 7eda78aa36b8f4cb8fd72e107e74ad95977a858297b63f11cb6788282d9471751a6d50dca197f30370b4eddd8c4d3f517da25383470057666b0c2de22c1d38f4 SHA512 e6242445a408b8e3c9740e413f84c27573f8f8d7c40c34d258b4ed6637143d3c6e4483ff587e7cf08b5e337642dc54ebf03d7bef24f009fa10c015ac5e3100ff |
26 |
|
27 |
diff --git a/www-client/lynx/lynx-2.9.0_pre11.ebuild b/www-client/lynx/lynx-2.9.0_pre11.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..645aea9979ea |
30 |
--- /dev/null |
31 |
+++ b/www-client/lynx/lynx-2.9.0_pre11.ebuild |
32 |
@@ -0,0 +1,108 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/thomasdickey.asc |
39 |
+inherit verify-sig |
40 |
+ |
41 |
+case ${PV} in |
42 |
+ *_pre*) MY_P="${PN}${PV/_pre/dev.}" ;; |
43 |
+ *_rc*) MY_P="${PN}${PV/_rc/pre.}" ;; |
44 |
+ *_p*|*) MY_P="${PN}${PV/_p/rel.}" ;; |
45 |
+esac |
46 |
+ |
47 |
+DESCRIPTION="An excellent console-based web browser with ssl support" |
48 |
+HOMEPAGE="https://lynx.invisible-island.net/" |
49 |
+SRC_URI="https://invisible-mirror.net/archives/${PN}/tarballs/${MY_P}.tar.bz2" |
50 |
+SRC_URI+=" verify-sig? ( https://invisible-mirror.net/archives/${PN}/tarballs/${MY_P}.tar.bz2.asc )" |
51 |
+S="${WORKDIR}/${MY_P}" |
52 |
+ |
53 |
+LICENSE="GPL-2" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
56 |
+IUSE="brotli bzip2 cjk gnutls idn nls ssl" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ sys-libs/ncurses:=[unicode(+)] |
60 |
+ sys-libs/zlib |
61 |
+ brotli? ( app-arch/brotli:= ) |
62 |
+ bzip2? ( app-arch/bzip2 ) |
63 |
+ idn? ( net-dns/libidn:= ) |
64 |
+ nls? ( virtual/libintl ) |
65 |
+ ssl? ( |
66 |
+ !gnutls? ( |
67 |
+ dev-libs/openssl:= |
68 |
+ ) |
69 |
+ gnutls? ( |
70 |
+ dev-libs/libgcrypt:= |
71 |
+ >=net-libs/gnutls-2.6.4:= |
72 |
+ ) |
73 |
+ )" |
74 |
+DEPEND="${RDEPEND}" |
75 |
+BDEPEND=" |
76 |
+ virtual/pkgconfig |
77 |
+ nls? ( sys-devel/gettext ) |
78 |
+ verify-sig? ( sec-keys/openpgp-keys-thomasdickey ) |
79 |
+" |
80 |
+ |
81 |
+PATCHES=( |
82 |
+ "${FILESDIR}/${PN}-2.9.0_pre9-mint.patch" |
83 |
+ "${FILESDIR}/${PN}-2.9.0_pre9-parallel.patch" |
84 |
+) |
85 |
+ |
86 |
+src_configure() { |
87 |
+ local myconf=( |
88 |
+ --enable-cgi-links |
89 |
+ --enable-color-style |
90 |
+ --enable-externs |
91 |
+ --enable-file-upload |
92 |
+ --enable-included-msgs |
93 |
+ --enable-ipv6 |
94 |
+ --enable-nested-tables |
95 |
+ --enable-nsl-fork |
96 |
+ --enable-persistent-cookies |
97 |
+ --enable-prettysrc |
98 |
+ --enable-read-eta |
99 |
+ --enable-scrollbar |
100 |
+ --with-screen=ncursesw |
101 |
+ --with-zlib |
102 |
+ $(use_enable cjk) |
103 |
+ $(use_enable idn idna) |
104 |
+ $(use_enable nls) |
105 |
+ $(use_with brotli) |
106 |
+ $(use_with bzip2 bzlib) |
107 |
+ ) |
108 |
+ |
109 |
+ if use ssl; then |
110 |
+ myconf+=( |
111 |
+ --with-$(usex gnutls gnutls ssl)="${EPREFIX}/usr" |
112 |
+ ) |
113 |
+ fi |
114 |
+ |
115 |
+ econf "${myconf[@]}" |
116 |
+ |
117 |
+ # Compared to openssl gnutls-openssl API does not use |
118 |
+ # default trust store: bug #604526. |
119 |
+ sed -e \ |
120 |
+ "s|#define SSL_CERT_FILE NULL|#define SSL_CERT_FILE \"${EPREFIX}/etc/ssl/certs/ca-certificates.crt\"|" \ |
121 |
+ -i userdefs.h || die |
122 |
+} |
123 |
+ |
124 |
+src_compile() { |
125 |
+ # generating translation files in parallel is currently broken |
126 |
+ use nls && emake -C po -j1 |
127 |
+ emake |
128 |
+} |
129 |
+ |
130 |
+src_install() { |
131 |
+ emake install DESTDIR="${D}" |
132 |
+ |
133 |
+ sed -i "s|^HELPFILE.*$|HELPFILE:file://localhost/usr/share/doc/${PF}/lynx_help/lynx_help_main.html|" \ |
134 |
+ "${ED}"/etc/lynx.cfg || die "lynx.cfg not found" |
135 |
+ sed -i '/^#CHARACTER_SET:/ c\CHARACTER_SET:utf-8' \ |
136 |
+ "${ED}"/etc/lynx.cfg || die "lynx.cfg not found" |
137 |
+ |
138 |
+ dodoc CHANGES COPYHEADER PROBLEMS README |
139 |
+ dodoc -r docs lynx_help |
140 |
+} |
141 |
|
142 |
diff --git a/www-client/lynx/metadata.xml b/www-client/lynx/metadata.xml |
143 |
index 142dd473b0ba..0b35e12c1361 100644 |
144 |
--- a/www-client/lynx/metadata.xml |
145 |
+++ b/www-client/lynx/metadata.xml |
146 |
@@ -3,6 +3,7 @@ |
147 |
<pkgmetadata> |
148 |
<!-- maintainer-needed --> |
149 |
<use> |
150 |
+ <flag name="brotli">Enable support for Brotli decompression</flag> |
151 |
<flag name="ssl">Enable HTTPS support.</flag> |
152 |
<flag name="gnutls">Use gnutls library for HTTPS support (openssl is the default library for HTTPS support).</flag> |
153 |
</use> |