summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-12-30 07:10:14 +0000
committerSam James <sam@gentoo.org>2022-12-30 07:31:51 +0000
commit1a112362effe35062597e8dfc0d3ec54898694f7 (patch)
treef285ce8c00802a856a365740d8aec329f31810df /www-client/lynx
parentgames-board/camato: treeclean (diff)
downloadgentoo-1a112362effe35062597e8dfc0d3ec54898694f7.tar.gz
gentoo-1a112362effe35062597e8dfc0d3ec54898694f7.tar.bz2
gentoo-1a112362effe35062597e8dfc0d3ec54898694f7.zip
www-client/lynx: add 2.9.0_pre11
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'www-client/lynx')
-rw-r--r--www-client/lynx/Manifest2
-rw-r--r--www-client/lynx/lynx-2.9.0_pre11.ebuild108
-rw-r--r--www-client/lynx/metadata.xml1
3 files changed, 111 insertions, 0 deletions
diff --git a/www-client/lynx/Manifest b/www-client/lynx/Manifest
index 814ca604fb99..b0bac5a81296 100644
--- a/www-client/lynx/Manifest
+++ b/www-client/lynx/Manifest
@@ -1,2 +1,4 @@
DIST lynx2.9.0dev.10.tar.bz2 2748823 BLAKE2B d4d5625091dd19fcbb245b51faca0913241491cc5c176702d04fb967abd960cee8a70ceb0fe769978a954cbf8a3bb3eae6cf096e2af600cb5916988a183479bd SHA512 afc8bbd241045a530d2c869b268fce708077024fea4363902d258a174994424e6cc64f066c63db82f08bb7e368647cbed1d420d596a494982f09ae05ec9e8bf5
DIST lynx2.9.0dev.10.tar.bz2.asc 729 BLAKE2B 80c7cfa5e91e3b66af3bce2034c435e3bebbd4601034887bafdcad910619fc7141108f994ad4b095b28042e1f412549ab57182da09710f22e1a37f3249204c12 SHA512 386f1ce3d65db6275f999c3e6b9e4af31ca1f8c7bd2577fa0d130df3eb15685c0badc92b1b853805151b30ddda35f6423ad89f62b4983ad102ede770d6b15e60
+DIST lynx2.9.0dev.11.tar.bz2 2761964 BLAKE2B e5830aa84749b693ccf715b6492b9b2613c313770a3e161f6ff0b816d702a2cdb891486849a9cd2a86a534972bd8ec4dbfb6b70485d98ac714ab7d210f9da2b7 SHA512 d7eaf567f145b31fe3ab827768326c0af28c1ef891c280fa45041184a8f3b4e310a9f8c192d1495b55fb0bf5cb2a08e7310aec728a1f906a3d3d391448ae4121
+DIST lynx2.9.0dev.11.tar.bz2.asc 729 BLAKE2B 7eda78aa36b8f4cb8fd72e107e74ad95977a858297b63f11cb6788282d9471751a6d50dca197f30370b4eddd8c4d3f517da25383470057666b0c2de22c1d38f4 SHA512 e6242445a408b8e3c9740e413f84c27573f8f8d7c40c34d258b4ed6637143d3c6e4483ff587e7cf08b5e337642dc54ebf03d7bef24f009fa10c015ac5e3100ff
diff --git a/www-client/lynx/lynx-2.9.0_pre11.ebuild b/www-client/lynx/lynx-2.9.0_pre11.ebuild
new file mode 100644
index 000000000000..645aea9979ea
--- /dev/null
+++ b/www-client/lynx/lynx-2.9.0_pre11.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/thomasdickey.asc
+inherit verify-sig
+
+case ${PV} in
+ *_pre*) MY_P="${PN}${PV/_pre/dev.}" ;;
+ *_rc*) MY_P="${PN}${PV/_rc/pre.}" ;;
+ *_p*|*) MY_P="${PN}${PV/_p/rel.}" ;;
+esac
+
+DESCRIPTION="An excellent console-based web browser with ssl support"
+HOMEPAGE="https://lynx.invisible-island.net/"
+SRC_URI="https://invisible-mirror.net/archives/${PN}/tarballs/${MY_P}.tar.bz2"
+SRC_URI+=" verify-sig? ( https://invisible-mirror.net/archives/${PN}/tarballs/${MY_P}.tar.bz2.asc )"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+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"
+IUSE="brotli bzip2 cjk gnutls idn nls ssl"
+
+RDEPEND="
+ sys-libs/ncurses:=[unicode(+)]
+ sys-libs/zlib
+ brotli? ( app-arch/brotli:= )
+ bzip2? ( app-arch/bzip2 )
+ idn? ( net-dns/libidn:= )
+ nls? ( virtual/libintl )
+ ssl? (
+ !gnutls? (
+ dev-libs/openssl:=
+ )
+ gnutls? (
+ dev-libs/libgcrypt:=
+ >=net-libs/gnutls-2.6.4:=
+ )
+ )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ verify-sig? ( sec-keys/openpgp-keys-thomasdickey )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.9.0_pre9-mint.patch"
+ "${FILESDIR}/${PN}-2.9.0_pre9-parallel.patch"
+)
+
+src_configure() {
+ local myconf=(
+ --enable-cgi-links
+ --enable-color-style
+ --enable-externs
+ --enable-file-upload
+ --enable-included-msgs
+ --enable-ipv6
+ --enable-nested-tables
+ --enable-nsl-fork
+ --enable-persistent-cookies
+ --enable-prettysrc
+ --enable-read-eta
+ --enable-scrollbar
+ --with-screen=ncursesw
+ --with-zlib
+ $(use_enable cjk)
+ $(use_enable idn idna)
+ $(use_enable nls)
+ $(use_with brotli)
+ $(use_with bzip2 bzlib)
+ )
+
+ if use ssl; then
+ myconf+=(
+ --with-$(usex gnutls gnutls ssl)="${EPREFIX}/usr"
+ )
+ fi
+
+ econf "${myconf[@]}"
+
+ # Compared to openssl gnutls-openssl API does not use
+ # default trust store: bug #604526.
+ sed -e \
+ "s|#define SSL_CERT_FILE NULL|#define SSL_CERT_FILE \"${EPREFIX}/etc/ssl/certs/ca-certificates.crt\"|" \
+ -i userdefs.h || die
+}
+
+src_compile() {
+ # generating translation files in parallel is currently broken
+ use nls && emake -C po -j1
+ emake
+}
+
+src_install() {
+ emake install DESTDIR="${D}"
+
+ sed -i "s|^HELPFILE.*$|HELPFILE:file://localhost/usr/share/doc/${PF}/lynx_help/lynx_help_main.html|" \
+ "${ED}"/etc/lynx.cfg || die "lynx.cfg not found"
+ sed -i '/^#CHARACTER_SET:/ c\CHARACTER_SET:utf-8' \
+ "${ED}"/etc/lynx.cfg || die "lynx.cfg not found"
+
+ dodoc CHANGES COPYHEADER PROBLEMS README
+ dodoc -r docs lynx_help
+}
diff --git a/www-client/lynx/metadata.xml b/www-client/lynx/metadata.xml
index 142dd473b0ba..0b35e12c1361 100644
--- a/www-client/lynx/metadata.xml
+++ b/www-client/lynx/metadata.xml
@@ -3,6 +3,7 @@
<pkgmetadata>
<!-- maintainer-needed -->
<use>
+ <flag name="brotli">Enable support for Brotli decompression</flag>
<flag name="ssl">Enable HTTPS support.</flag>
<flag name="gnutls">Use gnutls library for HTTPS support (openssl is the default library for HTTPS support).</flag>
</use>