summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-14 00:31:53 +0100
committerSam James <sam@gentoo.org>2022-10-14 00:31:53 +0100
commit17cf81ce55382cf48f3677c692b6029014e10305 (patch)
treef00831f3e2080ed929519b81795abe7abe8c52b4
parentwww-client/lynx: drop 2.9.0_pre6-r2 (diff)
downloadgentoo-17cf81ce55382cf48f3677c692b6029014e10305.tar.gz
gentoo-17cf81ce55382cf48f3677c692b6029014e10305.tar.bz2
gentoo-17cf81ce55382cf48f3677c692b6029014e10305.zip
www-client/lynx: add 2.9.0_pre10
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--www-client/lynx/Manifest2
-rw-r--r--www-client/lynx/lynx-2.9.0_pre10.ebuild106
2 files changed, 108 insertions, 0 deletions
diff --git a/www-client/lynx/Manifest b/www-client/lynx/Manifest
index 1a28fc603e1e..d9aeb7e3237e 100644
--- a/www-client/lynx/Manifest
+++ b/www-client/lynx/Manifest
@@ -1 +1,3 @@
+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.9.tar.bz2 2746988 BLAKE2B 6b5658b6bc224d02fe89fe31a1b8cdac5f736d68545fb6508f3a3b83e9c7537599dbacf5000320a019f0fab1059d5d4516e8d54341ef7d3384605d9e2f3c19da SHA512 ad343a7bc254cf287accde305db556101f7fa0f081e7c1c4327d7a4366c74cdbfb03ec003b0bc176768bbe726eae3e1bf8361416e0364ccdfe40d63fbc5b6dc4
diff --git a/www-client/lynx/lynx-2.9.0_pre10.ebuild b/www-client/lynx/lynx-2.9.0_pre10.ebuild
new file mode 100644
index 000000000000..2e7cf9e38eb8
--- /dev/null
+++ b/www-client/lynx/lynx-2.9.0_pre10.ebuild
@@ -0,0 +1,106 @@
+# 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="bzip2 cjk gnutls idn nls ssl"
+
+RDEPEND="
+ sys-libs/ncurses:=[unicode(+)]
+ sys-libs/zlib
+ 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 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
+}