From 80ec8cbd28195255e4131c0eecf05f6965405b6a Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Fri, 7 Apr 2017 10:08:33 +0200 Subject: [PATCH] sys-apps/less: Bump to version 490 Package-Manager: Portage-2.3.5, Repoman-2.3.2 --- sys-apps/less/Manifest | 1 + sys-apps/less/less-490.ebuild | 46 +++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 sys-apps/less/less-490.ebuild diff --git a/sys-apps/less/Manifest b/sys-apps/less/Manifest index 1197cabf96d3..b844c3673743 100644 --- a/sys-apps/less/Manifest +++ b/sys-apps/less/Manifest @@ -1,2 +1,3 @@ DIST less-487.tar.gz 318488 SHA256 f3dc8455cb0b2b66e0c6b816c00197a71bf6d1787078adeee0bcf2aea4b12706 SHA512 d31274fdada570fbc6706d7c52637d1accbd18ce947ec062e10b1624c251a8533c6638bc3a1d89d3c70a0c7b9c6d45740598bec9003f281d64c587b1f829125a WHIRLPOOL e1a6c5dc2ea17e57226083f022d3c39b8a9d17428b7aa15385138680e78fa1ee22800e216a40fe5aa0ca38ca4c0025792a2839031faabdf8f9384dec3c750f74 DIST less-488.tar.gz 318564 SHA256 f3b622a7b1d29a28b327357cacfd3b0e8e50710eeb6d290107e478f3f0ca15a2 SHA512 2483fd417981a92b415989ecca4e58e239ad71d687b59674f0c5557c2ff4f6d111f7dd528f15fe7002217125597f329a70a831f5d7ea67883ed8c236a0a7e6c6 WHIRLPOOL bce3064c2ee7fb1c7e0737dfb0743b1aa8210f3b14b36701a8a6c478098a4b7af18162060ff37d56311ebfe037e3138a18784cb63fbd7aa0a37f19433271faf6 +DIST less-490.tar.gz 320146 SHA256 23b8e97ab6aed7c7696f4b3307b89fa14a0de7d598f0d32ebb3ce4e576a36549 SHA512 af002905a3876671e5bd65b5d1343b9e7755d2c82166b485fe51cdea4c714bf68d7f028c91a8229e63dded993b01c27e13badd12ec960efc21454e27f13bd76e WHIRLPOOL acbb49aa8ddbba9654ef1f71f24de58512ddc68dd3bbfab544bcad72da4c692b9f9323869bc53c208136604aa639198d46916b92d9e3943cfb2c6e738c0e3a5f diff --git a/sys-apps/less/less-490.ebuild b/sys-apps/less/less-490.ebuild new file mode 100644 index 000000000000..9c55ece254f6 --- /dev/null +++ b/sys-apps/less/less-490.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +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 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~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/libpcre )" +RDEPEND="${DEPEND}" + +src_prepare() { + chmod a+x configure || die +} + +src_configure() { + export ac_cv_lib_ncursesw_initscr=$(usex unicode) + export ac_cv_lib_ncurses_initscr=$(usex !unicode) + econf \ + --with-regex=$(usex pcre pcre posix) \ + --with-editor="${EPREFIX}"/usr/libexec/editor +} + +src_install() { + default + + newbin "${FILESDIR}"/lesspipe.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 +} -- 2.26.2