commit:     778b748834d7d6a74017b6a7a99db7c6f4862d63
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  4 03:33:29 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct  4 03:33:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=778b7488

app-shells/dash: add 0.5.13 (masked)

Masked because a few regressions have been reported upstream already.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-shells/dash/Manifest           |  1 +
 app-shells/dash/dash-0.5.13.ebuild | 65 ++++++++++++++++++++++++++++++++++++++
 profiles/package.mask              |  8 +++++
 3 files changed, 74 insertions(+)

diff --git a/app-shells/dash/Manifest b/app-shells/dash/Manifest
index f3fce9ed5e5e..6640ff7c80eb 100644
--- a/app-shells/dash/Manifest
+++ b/app-shells/dash/Manifest
@@ -1 +1,2 @@
 DIST dash-0.5.12.tar.gz 246054 BLAKE2B 
f4c5e7088d7b591e0890a0e1363ef4f70074f4033ae34d3f82d71379cee78876e1e89b5d8e4afa3ce9380f8d94c3e8970c480a21257f87706112dd883667893e
 SHA512 
13bd262be0089260cbd13530a9cf34690c0abeb2f1920eb5e61be7951b716f9f335b86279d425dbfae56cbd49231a8fdffdff70601a5177da3d543be6fc5eb17
+DIST dash-0.5.13.tar.gz 256731 BLAKE2B 
0011262d24421e5d7bb21b8f6eef4312ef6c5388c47d15a81c251de3308463c727a8437cc95d6155beffab6f0c75e40bf7b96d1100ff0d37a14e2edf5ab25cdf
 SHA512 
428de1f65ab77d5fee88bbf4ba8642d77abfda223a4ede423d09db9faa4f0347199b3be841d63b93a7ed68f714ef54ff41b2dc936e4b7ebb19b74499ed4e6a01

diff --git a/app-shells/dash/dash-0.5.13.ebuild 
b/app-shells/dash/dash-0.5.13.ebuild
new file mode 100644
index 000000000000..48d6e65cb799
--- /dev/null
+++ b/app-shells/dash/dash-0.5.13.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2025 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 ~amd64-linux ~x86-linux ~ppc-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[@]}"
+}

diff --git a/profiles/package.mask b/profiles/package.mask
index 3b26feddf896..136effd4f8c0 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -36,6 +36,14 @@
 
 #--- END OF EXAMPLES ---
 
+# Sam James <[email protected]> (2025-10-04)
+# Has some regressions:
+# * autoconf 
(https://lore.kernel.org/dash/[email protected]/)
+#            (https://savannah.gnu.org/support/?111321)
+# * expansion 
(https://lore.kernel.org/dash/[email protected]/)
+# * parsing 
(https://lore.kernel.org/dash/[email protected]/)
+=app-shells/dash-0.5.13
+
 # Lukas Schmelting <[email protected]> (2025-10-03)
 # Breaks e.g. in combination with gnome-shell-48.4
 >=dev-libs/glib-2.86.0

Reply via email to