summaryrefslogtreecommitdiff
blob: 5d2cbc31a7d4d388a3d00f030e8604b6a96dc31b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit meson prefix

DESCRIPTION="The Original Korn Shell, 1993 revision (ksh93)"
HOMEPAGE="http://www.kornshell.com/"

COMMIT="b9d0b8ebfead0edba9004fc32b1782d1e1410aeb"
SRC_URI="https://github.com/att/ast/archive/${COMMIT}/${P}.tar.gz"

LICENSE="CPL-1.0 EPL-1.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE=""

RDEPEND="!app-shells/pdksh"

S="${WORKDIR}/ast-${COMMIT}"

PATCHES=(
	"${FILESDIR}"/ksh-prefix-r1.patch
)

src_prepare() {
	default
	eprefixify src/cmd/ksh93/data/msg.c
}

src_install() {
	meson_src_install
	dodir /bin
	mv "${ED%/}"{/usr,}/bin/ksh || die
}