/[gentoo-x86]/app-shells/mksh/mksh-50e.ebuild
Gentoo

Contents of /app-shells/mksh/mksh-50e.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Mar 17 10:45:06 2015 UTC (2 years, 6 months ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Version bump

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/mksh-50d-r1.ebuild,v 1.1 2015/01/18 01:44:25 patrick Exp $
4
5 EAPI=5
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="MirBSD KSH Shell"
10 HOMEPAGE="http://mirbsd.de/mksh"
11 SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.tgz"
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
15 IUSE="static"
16 DEPEND="static? ( dev-libs/klibc )"
17 RDEPEND=""
18 S="${WORKDIR}/${PN}"
19
20 src_compile() {
21 tc-export CC
22 # we want to build static with klibc
23 if use static ; then
24 unset CC
25 export CC="/usr/bin/klcc"
26 export LDSTATIC="-static"
27 fi
28 export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\""
29 # we can't assume lto existing/enabled, so we add a fallback
30 sh Build.sh -r -c lto || sh Rebuild.sh || die
31 }
32
33 src_install() {
34 exeinto /bin
35 doexe mksh
36 doman mksh.1
37 dodoc dot.mkshrc
38 }
39
40 src_test() {
41 ./test.sh || die
42 }
43
44 pkg_postinst() {
45 ebegin "Updating /etc/shells"
46 ( grep -v "^/bin/mksh$" "${ROOT}"etc/shells; echo "/bin/mksh" ) > "${T}"/shells
47 mv -f "${T}"/shells "${ROOT}"etc/shells
48 eend $?
49 }

  ViewVC Help
Powered by ViewVC 1.1.20