1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="Excellent text file viewer"
7 HOMEPAGE="http://www.greenwoodsoftware.com/less/"
8 SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz"
10 LICENSE="|| ( GPL-3 BSD-2 )"
12 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
15 DEPEND=">=app-misc/editor-wrapper-3
16 >=sys-libs/ncurses-5.2:0=
17 pcre? ( dev-libs/libpcre2 )"
21 export ac_cv_lib_ncursesw_initscr=$(usex unicode)
22 export ac_cv_lib_ncurses_initscr=$(usex !unicode)
24 --with-regex=$(usex pcre pcre2 posix)
25 --with-editor="${EPREFIX}"/usr/libexec/editor
27 econf "${myeconfargs[@]}"
33 newbin "${FILESDIR}"/lesspipe.sh lesspipe
34 newenvd "${FILESDIR}"/less.envd 70less
38 if has_version "<${CATEGORY}/${PN}-483-r1" ; then
39 elog "The lesspipe.sh symlink has been dropped. If you are still setting"
40 elog "LESSOPEN to that, you will need to update it to '|lesspipe %s'."
41 elog "Colorization support has been dropped. If you want that, check out"
42 elog "the new app-text/lesspipe package."