Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/dash/
Date: Thu, 24 Dec 2020 23:17:57
Message-Id: 1608851870.39b1188b7924ced073b5fce7ac8e40d2c1bfa5ab.polynomial-c@gentoo
1 commit: 39b1188b7924ced073b5fce7ac8e40d2c1bfa5ab
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 24 23:12:35 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 24 23:17:50 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39b1188b
7
8 app-shells/dash: Bump to version 0.5.11.3
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-shells/dash/Manifest | 1 +
14 app-shells/dash/dash-0.5.11.3.ebuild | 57 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 58 insertions(+)
16
17 diff --git a/app-shells/dash/Manifest b/app-shells/dash/Manifest
18 index a23bad9344e..0decddc34b4 100644
19 --- a/app-shells/dash/Manifest
20 +++ b/app-shells/dash/Manifest
21 @@ -1 +1,2 @@
22 DIST dash-0.5.11.2.tar.gz 244475 BLAKE2B 4edc85a70af62684b29fec7fd9c599aaade38ffcfb62b873dd149c4ada9e750f24cddf9a390c512313bc7dde67cab3d7b57776c92fe5f8e08bf8bdc164a4e5ec SHA512 2f846c26f3722ea3315aae73461f9c21a0a8a9ac712e1caf8dd9993e34729227c7648bf6f72fad8488247986e560298f95aa2411bd4e395410565c0b527b9db4
23 +DIST dash-0.5.11.3.tar.gz 244507 BLAKE2B 06d4bd9f4c93e76ddf895f5a0ebca0c18d9554f5d4fd30a948eafc862db0f4cd523f623dad75969ddb5f510ac85d174f3b3aac3726f9d3ca8fbdb4377715b244 SHA512 ffe69b8de3586aba298d936168c329524e385252e12979aa1db28761e882048eb5a80673e93a2a2227f61b52fd8b56546b78c5db9c21a022072f536267f8bc20
24
25 diff --git a/app-shells/dash/dash-0.5.11.3.ebuild b/app-shells/dash/dash-0.5.11.3.ebuild
26 new file mode 100644
27 index 00000000000..75cf4db9a5e
28 --- /dev/null
29 +++ b/app-shells/dash/dash-0.5.11.3.ebuild
30 @@ -0,0 +1,57 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit flag-o-matic toolchain-funcs
37 +
38 +DESCRIPTION="Debian Almquist Shell"
39 +HOMEPAGE="http://gondor.apana.org.au/~herbert/dash/"
40 +SRC_URI="http://gondor.apana.org.au/~herbert/dash/files/${P}.tar.gz"
41 +
42 +LICENSE="BSD"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 +IUSE="libedit static"
46 +
47 +BDEPEND="virtual/pkgconfig"
48 +RDEPEND="!static? ( libedit? ( dev-libs/libedit ) )"
49 +DEPEND="${RDEPEND}
50 + libedit? ( static? ( dev-libs/libedit[static-libs] ) )"
51 +
52 +src_prepare() {
53 + default
54 +
55 + # Fix the invalid sort
56 + sed -i -e 's/LC_COLLATE=C/LC_ALL=C/g' src/mkbuiltins
57 +
58 + # Use pkg-config for libedit linkage
59 + sed -i \
60 + -e "/LIBS/s:-ledit:\`$(tc-getPKG_CONFIG) --libs libedit $(usex static --static '')\`:" \
61 + configure || die
62 +}
63 +
64 +src_configure() {
65 + if [[ ${CHOST} == *-solaris* ]] ; then
66 + # don't redefine stat, open, dirent, etc. on Solaris
67 + export ac_cv_func_stat64=yes
68 + export ac_cv_func_open64=yes
69 +
70 + # if your headers strictly adhere to POSIX, you'll need this too
71 + [[ ${CHOST##*solaris2.} -le 10 ]] && append-cppflags -DNAME_MAX=255
72 + fi
73 + if [[ ${CHOST} == powerpc-*-darwin* ]] ; then
74 + sed -i -e 's/= stpncpy(s, \([^,]\+\), \([0-9]\+\))/+= snprintf(s, \2, "%s", \1)/' \
75 + src/jobs.c || die
76 + fi
77 + append-cppflags -DJOBS=$(usex libedit 1 0)
78 + use static && append-ldflags -static
79 + # Do not pass --enable-glob due to #443552.
80 + local myeconfargs=(
81 + CC_FOR_BUILD="$(tc-getBUILD_CC)"
82 + --bindir="${EPREFIX}"/bin
83 + --enable-fnmatch
84 + $(use_with libedit)
85 + )
86 + econf "${myeconfargs[@]}"
87 +}