diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-13 03:26:22 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-13 03:26:22 +0000 |
commit | dd2fb16ae4dd92978e9cadaa7aef9734901616bb (patch) | |
tree | 9821ec6cb4aa93275407333f075409de1571a814 /sys-apps/less/less-617.ebuild | |
parent | b1e04dc9012e7023ee274e847ac2a44a890393f5 (diff) |
gentoo auto-resync : 13:12:2022 - 03:26:22
Diffstat (limited to 'sys-apps/less/less-617.ebuild')
-rw-r--r-- | sys-apps/less/less-617.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sys-apps/less/less-617.ebuild b/sys-apps/less/less-617.ebuild new file mode 100644 index 000000000000..cb210766d048 --- /dev/null +++ b/sys-apps/less/less-617.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +WANT_AUTOMAKE=none +WANT_LIBTOOL=none + +inherit autotools + +# 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. + +DESCRIPTION="Excellent text file viewer" +HOMEPAGE="http://www.greenwoodsoftware.com/less/" +SRC_URI="http://www.greenwoodsoftware.com/less/${P}-beta.tar.gz" + +LICENSE="|| ( GPL-3 BSD-2 )" +SLOT="0" +#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~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" + +DEPEND=">=app-misc/editor-wrapper-3 + >=sys-libs/ncurses-5.2:0= + pcre? ( dev-libs/libpcre2 )" +RDEPEND="${DEPEND}" + +src_prepare() { + default + # Upstream uses unpatched autoconf-2.69, which breaks with clang-16. + # https://bugs.gentoo.org/870412 + eautoreconf +} + +src_configure() { + 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 +} |