7b5dd97ab879d6e3cb7384b41089d39373c4c856
[gentoo.git] /
1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Id$
4
5 SBOX_GROUP="sbox"
6
7 MY_PV="${PV}-2-i386"
8
9 DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier"
10 HOMEPAGE="http://www.scratchbox.org/"
11 SRC_URI="http://scratchbox.org/download/files/sbox-releases/stable/tarball/${PN/toolchain/toolchain-arm-linux}-${MY_PV}.tar.gz
12         http://scratchbox.org/download/files/sbox-releases/stable/tarball/${PN/toolchain/toolchain-i486-linux}-${MY_PV}.tar.gz"
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 # Stripping BREAKS scratchbox, it runs in a chroot and is pre-stripped when needed (bug #296294)
19 RESTRICT="strip"
20
21 DEPEND=""
22 RDEPEND="=dev-embedded/scratchbox-1.0*"
23
24 TARGET_DIR="/opt/scratchbox"
25
26 RESTRICT="strip"
27
28 S=${WORKDIR}/scratchbox
29
30 src_install() {
31         dodir ${TARGET_DIR}
32         cp -pRP * "${D}/${TARGET_DIR}"
33 }