/[gentoo-x86]/dev-embedded/sgpp-lite-arm-eabi-bin/sgpp-lite-arm-eabi-bin-2010.09.51.ebuild
Gentoo

Contents of /dev-embedded/sgpp-lite-arm-eabi-bin/sgpp-lite-arm-eabi-bin-2010.09.51.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Dec 2 15:15:48 2010 UTC (3 years, 8 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Initial package by me.

(Portage version: 2.2.0_alpha5/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-office/openproj-bin/openproj-bin-1.4.ebuild,v 1.1 2010/12/01 13:37:38 vapier Exp $
4
5 CPU="arm"
6 TARGET="arm-none-eabi"
7 HOST="i686-pc-linux-gnu"
8 MY_P="${CPU}-${PV%.*}-${PV##*.}-${TARGET}-${HOST}"
9
10 DESCRIPTION="regular, validated releases of the GNU Toolchain for ${CPU} processors by CodeSourcery"
11 HOMEPAGE="http://www.codesourcery.com/sgpp/lite/${CPU}"
12 SRC_URI="http://www.codesourcery.com/public/gnu_toolchain/${TARGET}/${MY_P}.tar.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="${PV}"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="doc"
18 RESTRICT="strip" # package is already stripped, and contains target bins
19 QA_EXECSTACK="opt/${P}/*"
20
21 RDEPEND="sys-libs/glibc"
22 DEPEND=""
23
24 S=${WORKDIR}/${CPU}-${PV%.*}
25
26 src_install() {
27 local d="/opt/${P}"
28 dodir ${d}
29 cp -pPR * "${D}"/${d}/ || die
30
31 pushd "${D}"/${d}/share/doc/${CPU}-${TARGET} >/dev/null
32 if use doc ; then
33 dohtml -r html/* || die
34 dodoc pdf/* || die
35 fi
36 rm -rf html pdf
37 rm LICENSE.txt man/man7/{fsf-funding,gpl,gfdl}.7 || die
38 mv man info ../..
39 popd >/dev/null
40 find "${D}" -depth -type d -empty -delete
41
42 cat <<-EOF > "${T}"/15${P}
43 PATH=${d}/bin
44 MANPATH=${d}/share/man
45 INFOPATH=${d}/share/info
46 EOF
47 doenvd "${T}"/15${P} || die
48 }

  ViewVC Help
Powered by ViewVC 1.1.20