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

Contents of /app-shells/mksh/mksh-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sun Apr 7 06:05:24 2013 UTC (17 months, 3 weeks ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +8 -5 lines
Adding static useflag and klibc dependency as per upstream suggestion

(Portage version: 2.2.0_alpha171/cvs/Linux x86_64, unsigned Manifest commit)

1 patrick 1.5 # Copyright 1999-2013 Gentoo Foundation
2 patrick 1.1 # Distributed under the terms of the GNU General Public License v2
3 patrick 1.5 # $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/mksh-9999.ebuild,v 1.4 2012/12/01 03:12:33 patrick Exp $
4 patrick 1.1
5 ottxor 1.3 EAPI=4
6 patrick 1.1
7 ottxor 1.3 inherit eutils toolchain-funcs
8    
9     if [[ $PV = 9999 ]]; then
10     inherit cvs
11     ECVS_SERVER="anoncvs.mirbsd.org:/cvs"
12     ECVS_MODULE="mksh"
13     ECVS_USER="_anoncvs"
14     ECVS_AUTH="ext"
15     KEYWORDS=""
16 patrick 1.5 DEPEND="static? ( dev-libs/klibc )"
17 ottxor 1.3 else
18     inherit unpacker
19 patrick 1.5 DEPEND="app-arch/cpio
20     static? ( dev-libs/klibc )"
21 ottxor 1.3 SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.cpio.gz"
22     KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux"
23     fi
24 patrick 1.1
25 patrick 1.2 DESCRIPTION="MirBSD Korn Shell"
26 patrick 1.1 HOMEPAGE="http://mirbsd.de/mksh"
27     LICENSE="BSD"
28     SLOT="0"
29 patrick 1.5 IUSE="static"
30 patrick 1.1 RDEPEND=""
31     S="${WORKDIR}/${PN}"
32    
33     src_compile() {
34     tc-export CC
35 patrick 1.5 # we want to build static with klibc
36     if use static; then unset CC; export CC="/usr/bin/klcc"; export LDSTATIC="-static"; fi
37 ottxor 1.3 export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\""
38 patrick 1.4 sh Build.sh -r -c lto || sh Rebuild.sh || die
39 patrick 1.1 }
40    
41     src_install() {
42     exeinto /bin
43 ottxor 1.3 doexe mksh
44     doman mksh.1
45     dodoc dot.mkshrc
46 patrick 1.1 }
47    
48     src_test() {
49     ./test.sh || die
50     }

  ViewVC Help
Powered by ViewVC 1.1.20