commit:     8675ee42e6511076a4cddb05a8451d7a1b046006
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  8 20:36:14 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb  8 20:36:33 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8675ee42

sys-apps/less: add 692

Upstream have reverted the controversial binding change.

Bug: https://github.com/gwsw/less/issues/658
Bug: https://bugs.gentoo.org/969085
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/less/Manifest        |   2 +
 sys-apps/less/less-692.ebuild | 101 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 103 insertions(+)

diff --git a/sys-apps/less/Manifest b/sys-apps/less/Manifest
index 9e14cf30ad36..8c7d2b0bb2dc 100644
--- a/sys-apps/less/Manifest
+++ b/sys-apps/less/Manifest
@@ -5,3 +5,5 @@ DIST less-685.tar.gz 882560 BLAKE2B 
771ba2fb1f593e80d9e5e203bfe9b7a8a33833fcd346
 DIST less-685.tar.gz.sig 95 BLAKE2B 
e5c1e42b997d44b017570afe3af7edc539ec00d03f8f829db9e73be4db8095d0a9166bdbd0d822fee9e3c97d90ccf9110b757ef253ddff14f4070e1e9455c45f
 SHA512 
bd3f0f6fec225478a643a81a8afb2c9e68934816482efd05556f92d3568022a57fd918793ef14e34990eefe6cba0950174a4ffd7f1107fe2af994b45ad866679
 DIST less-691.tar.gz 986638 BLAKE2B 
b74fe33259ac5731cc6230e115c8ab21f34c8a3e67efbb5ee554af6377a17f9ee3a92f99e9ee2f9c757804de5f0f061c87582d26da71a2c8a62fb079434abe62
 SHA512 
6ae54f0c2b86709cc1aea54b0531b06ef155f852b6a23c0c36505e3bca93c0c6806ef89fbbd90eee7afeb0ad8e4d9ef09c5b25e133a018e6bbef1c97ad4c7728
 DIST less-691.tar.gz.sig 95 BLAKE2B 
0b7ec8ef81b3d7d2f768554d9e1a2274300e495ebfc58d787b18115725acfd1a361d4ea9d27ea4d74071319b65b0d9d5efa12579a9df87fc17502c30f09ee176
 SHA512 
23988f9e914998079364571141f0f11c719139d9e5bf73729b76fe1df5192b83ec3d1a9f154ddc75a66dae111435fef6eaec38e5c8cad3bf6562bc2f2d7fc089
+DIST less-692.tar.gz 987633 BLAKE2B 
379d7738894f16fed1b429c9e26c2e46fd27c790be2b0b8b6c0f6744913845ea6003d5b50db4186847c4daf430fb5a23d2c9f35780577a0fb1c1a3b603bfbb41
 SHA512 
57a2d2b8c45c93550ab3f4c8a427f877ccfc4660028880a776d6463fdc155c7c71abc51c842bc3b2107085eb205f9d30edc21b23e21239ef61033762558209e3
+DIST less-692.tar.gz.sig 95 BLAKE2B 
530d6274ba8045975c26123ed3a239a5272350cf229287dc73fbe5c1e862a81618e14e280d63ed6b30087bb86e15b259a33a5b0e3b4bb945cbd9ffeefa382eed
 SHA512 
738b3ed934f877674cf076a788a9aca5bae33a62db4c26b604bd7e819ca472465417a8d2d0bdedc1126e8eeba7c78e8d5b165f134ecca4426e30a7c3a1e31f4b

diff --git a/sys-apps/less/less-692.ebuild b/sys-apps/less/less-692.ebuild
new file mode 100644
index 000000000000..698a1775159a
--- /dev/null
+++ b/sys-apps/less/less-692.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Releases are usually first a beta then promoted to stable if no
+# issues were found. Upstream explicitly ask "to not generally distribute"
+# the beta versions. It's okay to keyword beta versions if they fix
+# a serious bug, but otherwise try to avoid it.
+
+WANT_AUTOMAKE=none
+WANT_LIBTOOL=none
+inherit autotools flag-o-matic optfeature toolchain-funcs
+
+DESCRIPTION="Excellent text file viewer"
+HOMEPAGE="https://www.greenwoodsoftware.com/less/";
+
+MY_PV=${PV/_beta/-beta}
+MY_P=${PN}-${MY_PV}
+
+if [[ ${PV} == 9999 ]]; then
+       EGIT_REPO_URI="https://github.com/gwsw/less";
+       inherit git-r3
+else
+       VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/less.asc
+       inherit verify-sig
+
+       SRC_URI="
+               https://www.greenwoodsoftware.com/less/${MY_P}.tar.gz
+               verify-sig? (
+                       https://www.greenwoodsoftware.com/less/${MY_P}.sig -> 
${MY_P}.tar.gz.sig
+               )
+       "
+
+       BDEPEND="verify-sig? ( sec-keys/openpgp-keys-less )"
+
+       if [[ ${PV} != *_beta* ]] ; then
+               KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips 
~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
+       fi
+fi
+
+S="${WORKDIR}"/${MY_P/?beta}
+
+LICENSE="|| ( GPL-3 BSD-2 )"
+SLOT="0"
+IUSE="pcre test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       >=app-misc/editor-wrapper-3
+       >=sys-libs/ncurses-5.2:=
+       pcre? ( dev-libs/libpcre2 )
+"
+RDEPEND="${DEPEND}"
+BDEPEND+=" test? ( virtual/pkgconfig )"
+
+src_prepare() {
+       default
+       # Per upstream README to prepare live build
+       [[ ${PV} == 9999 ]] && emake -f Makefile.aut distfiles
+       # Upstream uses unpatched autoconf-2.69, which breaks with clang-16.
+       # https://bugs.gentoo.org/870412
+       eautoreconf
+}
+
+src_configure() {
+       append-lfs-flags # bug #896316
+
+       local myeconfargs=(
+               --with-regex=$(usex pcre pcre2 posix)
+               --with-editor="${EPREFIX}"/usr/libexec/editor
+       )
+       econf "${myeconfargs[@]}"
+}
+
+src_test() {
+       emake check VERBOSE=1 CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)"
+}
+
+src_install() {
+       default
+
+       keepdir /usr/lib/lessfilter.d
+       keepdir /etc/lessfilter.d
+
+       newbin "${FILESDIR}"/lesspipe-r4.sh lesspipe
+       newenvd "${FILESDIR}"/less.envd 70less
+}
+
+pkg_preinst() {
+       optfeature "Colorized output support" dev-python/pygments
+
+       if has_version "<${CATEGORY}/${PN}-483-r1" ; then
+               elog "The lesspipe.sh symlink has been dropped.  If you are 
still setting"
+               elog "LESSOPEN to that, you will need to update it to 
'|lesspipe %s'."
+       fi
+
+       if has_version "<${CATEGORY}/${PN}-643" ; then
+               elog "less now colorizes by default. To disable this, set 
LESSCOLOR=no."
+       fi
+}

Reply via email to