Created
January 30, 2016 02:36
-
-
Save knokmki612/c5e1ef0b093d81c4386f to your computer and use it in GitHub Desktop.
最初にコケたほうのebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2012 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Id$ | |
EAPI=4 | |
inherit toolchain-funcs versionator prefix eutils | |
DESCRIPTION="The Original Korn Shell, 1993 revision (ksh93)" | |
HOMEPAGE="http://www.kornshell.com/" | |
ksh_release() { | |
local v="$(get_version_component_range 2)" | |
echo "${v:0:4}-${v:4:2}-${v:6:2}" | |
} | |
SRC_URI="mirror://gentoo/INIT.$(ksh_release).tgz | |
https://dev.gentoo.org/~floppym/distfiles/INIT.$(ksh_release).tgz | |
mirror://gentoo/ast-base.$(ksh_release).tgz | |
https://dev.gentoo.org/~floppym/distfiles/ast-base.$(ksh_release).tgz" | |
LICENSE="CPL-1.0 EPL-1.0" | |
SLOT="0" | |
KEYWORDS="alpha amd64 arm ia64 ppc ~ppc64 s390 sparc x86 ~amd64-linux ~x86-linux" | |
IUSE="" | |
RDEPEND="!app-shells/pdksh" | |
S=${WORKDIR} | |
src_prepare() { | |
# Bug 238906. | |
sed -i -e 's,cd /tmp,cd "${TMPDIR:-/tmp}",' \ | |
bin/package src/cmd/INIT/package.sh || die | |
epatch "${FILESDIR}"/${PN}-prefix.patch | |
eprefixify src/cmd/ksh93/data/msg.c | |
} | |
src_compile() { | |
tc-export AR CC LD NM | |
export CCFLAGS="${CFLAGS}" | |
sh bin/package only make ast-ksh SHELL="${EPREFIX}"/bin/sh SHOPT_SYSRC=1 || die | |
} | |
src_install() { | |
dodoc lib/package/ast-base.README | |
dohtml lib/package/ast-base.html | |
local myhost="$(sh bin/package host)" | |
cd "arch/${myhost}" || die | |
into / | |
dobin bin/ksh | |
dosym ksh /bin/rksh | |
newman man/man1/sh.1 ksh.1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment