From f997f9aa42b9d8f722dca87ea4df44ce2f5671b9 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 9 May 2026 22:09:14 +0100 Subject: [PATCH] app-shells/dash: add 0.5.13.4 Signed-off-by: Sam James --- app-shells/dash/Manifest | 1 + app-shells/dash/dash-0.5.13.4.ebuild | 65 ++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 app-shells/dash/dash-0.5.13.4.ebuild diff --git a/app-shells/dash/Manifest b/app-shells/dash/Manifest index 3bc3255f9aa97..fab4068e75d73 100644 --- a/app-shells/dash/Manifest +++ b/app-shells/dash/Manifest @@ -1,3 +1,4 @@ DIST dash-0.5.12.tar.gz 246054 BLAKE2B f4c5e7088d7b591e0890a0e1363ef4f70074f4033ae34d3f82d71379cee78876e1e89b5d8e4afa3ce9380f8d94c3e8970c480a21257f87706112dd883667893e SHA512 13bd262be0089260cbd13530a9cf34690c0abeb2f1920eb5e61be7951b716f9f335b86279d425dbfae56cbd49231a8fdffdff70601a5177da3d543be6fc5eb17 DIST dash-0.5.13.2.tar.gz 260947 BLAKE2B 56d2ac2c716a0cb07d995cea30e85185a2f211da2014735f0bffa68498ee191fa47e059342e67d7f8394d9f39d7fa17db77d9313309d5a2faff1f0775d767b77 SHA512 7e9a06409eec925fc83c81192cab420a76ec25821f0a4cec8db4a93b00e51d343438b8cfe56069b4d7fb185f529d1b5171a7603525de00a7852298425b2f433f DIST dash-0.5.13.3.tar.gz 261024 BLAKE2B f2a4d2b16db637c841e0c5752a5f617e60aecdb958bc5ef0bde29ee22034ff5dc7aa1b502a0b8d78d764757b978c6c7e8a6aff15769867d4b92856bfc6467c74 SHA512 4f463ea9d9bd72cb9852578a43ce04a211e2e775782f4cb6b2af328d51f80fcf9cff3255c519f60027f7b0d8b9d3c9ebed100925bf6324bbef81381ebd3c77ae +DIST dash-0.5.13.4.tar.gz 261171 BLAKE2B 3c774e3e084c9f6c3b3e2cbb44d915c579379bdeccb9c0974bb6424d371ada06e3387df518ffbb5ba1e9722860d390fc014a9d84833d11dd814a403f3e96cee6 SHA512 383d0ea8316fea3ce523dc535173a94a22e58bfaec2dec3309d3496a864e5e67711965563db82e7e181f8d7b67a25033107b4c9453c3d6b3820c6586d1f99675 diff --git a/app-shells/dash/dash-0.5.13.4.ebuild b/app-shells/dash/dash-0.5.13.4.ebuild new file mode 100644 index 0000000000000..5b4ce4aff4e3c --- /dev/null +++ b/app-shells/dash/dash-0.5.13.4.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Debian Almquist Shell" +HOMEPAGE="http://gondor.apana.org.au/~herbert/dash/" +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/dash/dash.git" + inherit autotools git-r3 +else + SRC_URI="http://gondor.apana.org.au/~herbert/dash/files/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="libedit static" + +BDEPEND="virtual/pkgconfig" +RDEPEND="!static? ( libedit? ( dev-libs/libedit ) )" +DEPEND=" + ${RDEPEND} + libedit? ( static? ( dev-libs/libedit[static-libs] ) ) +" + +src_prepare() { + default + + [[ ${PV} == 9999 ]] && eautoreconf + + # Use pkg-config for libedit linkage + sed -i \ + -e "/LIBS/s:-ledit:\`$(tc-getPKG_CONFIG) --libs libedit $(usex static --static '')\`:" \ + configure || die +} + +src_configure() { + if [[ ${CHOST} == *-solaris* ]] ; then + # don't redefine stat, open, dirent, etc. on Solaris + export ac_cv_func_stat64=yes + export ac_cv_func_open64=yes + fi + + if [[ ${CHOST} == powerpc-*-darwin* ]] ; then + sed -i -e 's/= stpncpy(s, \([^,]\+\), \([0-9]\+\))/+= snprintf(s, \2, "%s", \1)/' \ + src/jobs.c || die + fi + + use static && append-ldflags -static + + append-cppflags -DJOBS=$(usex libedit 1 0) + + # Do not pass --enable-glob due to #443552. + local myeconfargs=( + CC_FOR_BUILD="$(tc-getBUILD_CC)" + --bindir="${EPREFIX}"/bin + --enable-fnmatch + $(use_with libedit) + ) + + econf "${myeconfargs[@]}" +}