diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2021-03-05 18:03:13 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2021-03-05 18:03:13 +0100 |
commit | 6ecd424328e131e128c16547cedb678ca8b3e100 (patch) | |
tree | 7dbc4d9724b03f72d5bd8ce2d596e715131e39c4 /sys-apps | |
parent | net-analyzer/wapiti: skip tests in installation (diff) | |
download | gentoo-6ecd424328e131e128c16547cedb678ca8b3e100.tar.gz gentoo-6ecd424328e131e128c16547cedb678ca8b3e100.tar.bz2 gentoo-6ecd424328e131e128c16547cedb678ca8b3e100.zip |
sys-apps/less: Bump to version 580
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/less/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/less/less-580.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/sys-apps/less/Manifest b/sys-apps/less/Manifest index 8d4ff9d762bf..aede81074da1 100644 --- a/sys-apps/less/Manifest +++ b/sys-apps/less/Manifest @@ -1 +1,2 @@ DIST less-563.tar.gz 335508 BLAKE2B 813e54b9a115600e4f20009ccad3708efc64ab4ee940aa3624e968045557bbfef6ace49b791f4b9efff86bf43df9fe2a04a160e76718396e0dae17f0bdaa62fb SHA512 79384ff3faa33aeb86da6027c8b264df78f9f8c799af43dc5340e2ca3d86053c9be168140bfa05734a4217e65ef9939652b004d6a536f64b2e0ef3b74b07f535 +DIST less-580.tar.gz 348881 BLAKE2B f518ea569201daed6f1772df890cbd2a8968937d9b8fd7b36ae277dc4b1f928892da073266fe39e4135cba15f2d52e0e540a6033cb56de9cc7577153e41e05c8 SHA512 52ff06854f58b5f41bc49fa13334a1ba11fae9316bb99f877abebbe8eb90226991b1820fcccfa85ab8cdfba87f6872160c1177edb044df2e9dd9c1c7d44e3c13 diff --git a/sys-apps/less/less-580.ebuild b/sys-apps/less/less-580.ebuild new file mode 100644 index 000000000000..c91345dc9f3b --- /dev/null +++ b/sys-apps/less/less-580.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Excellent text file viewer" +HOMEPAGE="http://www.greenwoodsoftware.com/less/" +SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz" + +LICENSE="|| ( GPL-3 BSD-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="pcre unicode" + +DEPEND=">=app-misc/editor-wrapper-3 + >=sys-libs/ncurses-5.2:0= + pcre? ( dev-libs/libpcre2 )" +RDEPEND="${DEPEND}" + +src_configure() { + export ac_cv_lib_ncursesw_initscr=$(usex unicode) + export ac_cv_lib_ncurses_initscr=$(usex !unicode) + local myeconfargs=( + --with-regex=$(usex pcre pcre2 posix) + --with-editor="${EPREFIX}"/usr/libexec/editor + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + newbin "${FILESDIR}"/lesspipe-r1.sh lesspipe + newenvd "${FILESDIR}"/less.envd 70less +} + +pkg_preinst() { + 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'." + elog "Colorization support has been dropped. If you want that, check out" + elog "the new app-text/lesspipe package." + fi +} |