1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.30.1-r1.ebuild,v 1.9 2011/04/20 18:10:38 ulm Exp $
10 DESCRIPTION="C library for developing embedded Linux systems"
11 HOMEPAGE="http://www.uclibc.org/"
12 SRC_URI="http://uclibc.org/downloads/${MY_P}.tar.bz2"
16 KEYWORDS="-* amd64 x86 mips ~ppc"
26 if use savedconfig; then
27 restore_config config/.config
29 cp "${FILESDIR}"/uclibc-${ARCH}.${PV}.config .config || die "${ARCH} is not supported"
31 yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig"
41 emake DESTDIR="${D}" install
43 # remove files coming from kernel-headers
44 rm -rf "${D}"/usr/include/{linux,asm*}
46 emake DESTDIR="${D}" install_utils
47 dobin extra/scripts/getent
48 dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
50 if use savedconfig; then
51 save_config config/.config
56 echo "UTC" > "${ROOT}"/etc/TZ
58 [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null