You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
5 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
inherit meson
|
||
|
|
||
5 years ago
|
if [[ ${PV} == 9999 ]]; then
|
||
|
inherit git-r3
|
||
|
EGIT_REPO_URI="https://github.com/att/ast"
|
||
|
else
|
||
|
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
||
|
MY_PV="${PV/_/-}"
|
||
|
MY_P="${PN}-${MY_PV}"
|
||
|
SRC_URI="https://github.com/att/ast/releases/download/${MY_PV}/${MY_P}.tar.gz"
|
||
|
S="${WORKDIR}/${MY_P}"
|
||
|
fi
|
||
|
|
||
5 years ago
|
DESCRIPTION="The Original Korn Shell, 1993 revision (ksh93)"
|
||
|
HOMEPAGE="https://github.com/att/ast"
|
||
|
|
||
|
LICENSE="CPL-1.0 EPL-1.0"
|
||
|
SLOT="0"
|
||
|
|
||
|
RDEPEND="!app-shells/pdksh"
|
||
|
|
||
5 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/ksh-2020.0.0-ensure-user-set.patch
|
||
|
"${FILESDIR}"/ksh-2020.0.0-skip-api-test.patch
|
||
5 years ago
|
"${FILESDIR}"/CVE-2019-14868.patch
|
||
5 years ago
|
)
|
||
|
|
||
|
src_test() {
|
||
5 years ago
|
# https://bugs.gentoo.org/702570
|
||
|
addwrite /proc/self
|
||
5 years ago
|
local cmd=(
|
||
|
meson test
|
||
|
-C "${BUILD_DIR}"
|
||
|
--num-processes "$(makeopts_jobs ${NINJAOPTS:-${MAKEOPTS}})"
|
||
|
)
|
||
|
echo "${cmd[@]}" >&2
|
||
|
# https://github.com/att/ast/issues/1392
|
||
|
env -u T "${cmd[@]}" || die
|
||
|
}
|
||
|
|
||
5 years ago
|
src_install() {
|
||
|
meson_src_install
|
||
|
dodir /bin
|
||
|
mv "${ED}/usr/bin/ksh" "${ED}/bin/ksh" || die
|
||
|
}
|