blob: 5137de3d16b32480bfaee70091ee35fa68892b01 (
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
37
38
39
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/devel-chroots/devel-chroots-1.0.1.ebuild,v 1.10 2008/06/12 23:48:08 darkside Exp $
DESCRIPTION="Gentoo Developer chroots installation/configuration launcher"
HOMEPAGE="http://www.gentoo.org/proj/en/hardened/docs/devel-chroots-intro.xml"
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
# for testing purposes only
# KEYWORDS="-*"
# expected first scope, will be expanded to amd64 and/or ia64 when test machines available
KEYWORDS="amd64 ~hppa ppc ~sparc x86"
IUSE=""
DEPEND="app-misc/screen net-misc/wget sys-apps/sed"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e 's/\/bin\/install/install/' Makefile || die "sed failed"
}
src_compile() {
emake || die "emake failed"
sed -i -e "s|DEVEL_CHROOTS_USER_DEFINED_ARCHITECT=\"x86\"|DEVEL_CHROOTS_USER_DEFINED_ARCHITECT=\"${ARCH}\"|g" \
-e "s|DEVEL_CHROOTS_USER_SELECTED_KEYWORDS=\"~x86 x86\"|DEVEL_CHROOTS_USER_SELECTED_KEYWORDS=\"~${ARCH} ${ARCH}\"|g" \
"${WORKDIR}/${P}/config/devel-chroots-user.conf"
}
src_install() {
make DESTDIR="${D}" install || die
}
|