Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-dev:uclibc commit in: sys-libs/uclibc/
Date: Sun, 08 Apr 2012 04:01:05
Message-Id: 1333857638.4d374f7d037d52fd941aef0e9564ddec51e20a7d.blueness@gentoo
1 commit: 4d374f7d037d52fd941aef0e9564ddec51e20a7d
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 8 04:00:38 2012 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 8 04:00:38 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=4d374f7d
7
8 sys-libs/uclibc: add ebuild for today's snapshot for ppc and mips
9
10 (Portage version: 2.1.10.49/git/Linux x86_64, signed Manifest commit with key 0xD0455535)
11
12 ---
13 sys-libs/uclibc/uclibc-0.9.33-r1.ebuild | 64 +++++++++++++++++++++++++++++++
14 1 files changed, 64 insertions(+), 0 deletions(-)
15
16 diff --git a/sys-libs/uclibc/uclibc-0.9.33-r1.ebuild b/sys-libs/uclibc/uclibc-0.9.33-r1.ebuild
17 new file mode 100644
18 index 0000000..626b85f
19 --- /dev/null
20 +++ b/sys-libs/uclibc/uclibc-0.9.33-r1.ebuild
21 @@ -0,0 +1,64 @@
22 +# Copyright 1999-2012 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $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 $
25 +
26 +EAPI="4"
27 +
28 +MY_P=uClibc-0.9.33-57f058b
29 +DESCRIPTION="C library for developing embedded Linux systems"
30 +HOMEPAGE="http://www.uclibc.org/"
31 +SRC_URI="http://opensource.dyc.edu/pub/misc/${MY_P}.tar.gz"
32 +
33 +LICENSE="LGPL-2"
34 +SLOT="0"
35 +KEYWORDS="-* ~mips ~ppc"
36 +IUSE=""
37 +RESTRICT="strip"
38 +
39 +RDEPEND=""
40 +DEPEND=""
41 +
42 +S=${WORKDIR}/${MY_P}
43 +
44 +src_configure() {
45 + case ${ARCH} in
46 + x86)
47 + cp "${FILESDIR}"/uclibc-i686.33.config .config || die "could not copy config file"
48 + ;;
49 + amd64)
50 + cp "${FILESDIR}"/uclibc-amd64.33.config .config || die "could not copy config file"
51 + ;;
52 + mips)
53 + cp "${FILESDIR}"/uclibc-mips.33.config .config || die "could not copy config file"
54 + ;;
55 + ppc)
56 + cp "${FILESDIR}"/uclibc-ppc.33.config .config || die "could not copy config file"
57 + ;;
58 + *)
59 + eerror "${ARCH} is not supported"
60 + esac
61 + yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig"
62 +}
63 +
64 +src_compile() {
65 + emake headers
66 + emake
67 + emake utils
68 +}
69 +
70 +src_install() {
71 + emake DESTDIR="${D}" install
72 +
73 + # remove files coming from kernel-headers
74 + rm -rf "${D}"/usr/include/{linux,asm*}
75 +
76 + emake DESTDIR="${D}" install_utils
77 + dobin extra/scripts/getent
78 + dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
79 +}
80 +
81 +pkg_postinst() {
82 + echo "UTC" > "${ROOT}"/etc/TZ
83 + /sbin/ldconfig
84 + [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null
85 +}