1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 TARGET="arm-uclinuxeabi"
6 HOST="i686-pc-linux-gnu"
7 MY_P="${CPU}-${PV%.*}-${PV##*.}-${TARGET}-${HOST}"
9 DESCRIPTION="Regular, validated releases of the GNU Toolchain for ${CPU} processors"
10 HOMEPAGE="http://www.codesourcery.com/sgpp/lite/${CPU}"
11 SRC_URI="http://www.codesourcery.com/public/gnu_toolchain/${TARGET}/${MY_P}.tar.bz2"
15 KEYWORDS="~amd64 ~x86"
17 RESTRICT="strip" # package is already stripped, and contains target bins
18 QA_EXECSTACK="opt/${P}/*"
20 RDEPEND="sys-libs/glibc"
23 S=${WORKDIR}/${CPU}-${PV%.*}
28 cp -pPR * "${D}"/${d}/ || die
30 pushd "${D}"/${d}/share/doc/${CPU}-${TARGET} >/dev/null
32 dohtml -r html/* || die
36 rm LICENSE.txt man/man7/{fsf-funding,gpl,gfdl}.7 || die
39 find "${D}" -depth -type d -empty -delete
41 cat <<-EOF > "${T}"/15${P}
43 MANPATH=${d}/share/man
44 INFOPATH=${d}/share/info
46 doenvd "${T}"/15${P} || die