mirror of
https://github.com/flatcar/scripts.git
synced 2026-04-18 03:52:31 +02:00
sys-apps/less: Sync with Gentoo
It's from Gentoo commit 8675ee42e6511076a4cddb05a8451d7a1b046006. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
77504ca557
commit
514cda4e1a
@ -2,3 +2,8 @@ DIST less-643.tar.gz 592291 BLAKE2B 6dc60dc2e8db05afdae466877a1d26a3008ff5378bbb
|
||||
DIST less-668.tar.gz 649770 BLAKE2B 0f6a85a1c66577dd2a28682a6f8399e42fdbe9fc1498b2e89c6bb7c47109e8d3ab934abe5dd998b2c8dfacfb174ad9daeb79b3d4c13df22fa035ea792b2eaf5e SHA512 6527741a609849ec27b6ab35de46f2c5c2b2771391e3efe263207bee28915946f44331a42f832a7cb42231a19b135cbadc15ae02cd997b83a13cdfbc7213fc27
|
||||
DIST less-679.tar.gz 877094 BLAKE2B 024cd7f4014958e9be52a89aefd9404298850c56f0f8d2403e8648b06ce37bcca6742ebd8a3a4900acb78a3884c4f17270919feb3ca76c6978c34ec79043f154 SHA512 f04e37dc4b2839b416a195e107d21328800e75080054788002c109b3b113a6a898b953391912e7538fb9843ef530b1991efc76dbf6fb5960e5530f3ff83421f6
|
||||
DIST less-685.tar.gz 882560 BLAKE2B 771ba2fb1f593e80d9e5e203bfe9b7a8a33833fcd3464a0c64c4056359e9ecc723eff87b783c9ab4c3090d7dac1973c1875eb7d926601c512dc0494e7e8adb5c SHA512 aff745f1816e0f996fbdbc33ecae0726cf0d842efc227937ff8c32e734c8b5be4c611ffbb27e5e038b4d95280c95ca60c53af1a47cf419cb06e5fab543c231f3
|
||||
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
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@ -22,7 +22,17 @@ if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://github.com/gwsw/less"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://www.greenwoodsoftware.com/less/${MY_P}.tar.gz"
|
||||
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"
|
||||
@ -42,7 +52,7 @@ DEPEND="
|
||||
pcre? ( dev-libs/libpcre2 )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="test? ( virtual/pkgconfig )"
|
||||
BDEPEND+=" test? ( virtual/pkgconfig )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
101
sdk_container/src/third_party/portage-stable/sys-apps/less/less-691.ebuild
vendored
Normal file
101
sdk_container/src/third_party/portage-stable/sys-apps/less/less-691.ebuild
vendored
Normal file
@ -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
|
||||
}
|
||||
101
sdk_container/src/third_party/portage-stable/sys-apps/less/less-692.ebuild
vendored
Normal file
101
sdk_container/src/third_party/portage-stable/sys-apps/less/less-692.ebuild
vendored
Normal file
@ -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
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@ -22,7 +22,17 @@ if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://github.com/gwsw/less"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://www.greenwoodsoftware.com/less/${MY_P}.tar.gz"
|
||||
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"
|
||||
@ -42,7 +52,7 @@ DEPEND="
|
||||
pcre? ( dev-libs/libpcre2 )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="test? ( virtual/pkgconfig )"
|
||||
BDEPEND+=" test? ( virtual/pkgconfig )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user