Gentoo Archives: gentoo-commits

From: "Luca Barbato (lu_zero)" <lu_zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/newlib: ChangeLog newlib-1.18.0.ebuild
Date: Sun, 28 Feb 2010 14:50:30
Message-Id: E1NlkTT-0006JZ-7Q@stork.gentoo.org
1 lu_zero 10/02/28 14:50:27
2
3 Modified: ChangeLog
4 Added: newlib-1.18.0.ebuild
5 Log:
6 Long delayed update
7 (Portage version: 2.1.7.17/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.12 sys-libs/newlib/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/newlib/ChangeLog?rev=1.12&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/newlib/ChangeLog?rev=1.12&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/newlib/ChangeLog?r1=1.11&r2=1.12
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v
19 retrieving revision 1.11
20 retrieving revision 1.12
21 diff -u -r1.11 -r1.12
22 --- ChangeLog 9 Jun 2008 17:20:17 -0000 1.11
23 +++ ChangeLog 28 Feb 2010 14:50:26 -0000 1.12
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-libs/newlib
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v 1.11 2008/06/09 17:20:17 lu_zero Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v 1.12 2010/02/28 14:50:26 lu_zero Exp $
30 +
31 +*newlib-1.18.0 (28 Feb 2010)
32 +
33 + 28 Feb 2010; Luca Barbato <lu_zero@g.o> +newlib-1.18.0.ebuild:
34 + New version
35
36 *newlib-1.16.0 (09 Jun 2008)
37
38
39
40
41 1.1 sys-libs/newlib/newlib-1.18.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/newlib/newlib-1.18.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/newlib/newlib-1.18.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: newlib-1.18.0.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/newlib-1.18.0.ebuild,v 1.1 2010/02/28 14:50:26 lu_zero Exp $
51
52 inherit eutils flag-o-matic toolchain-funcs
53
54 export CBUILD=${CBUILD:-${CHOST}}
55 export CTARGET=${CTARGET:-${CHOST}}
56 if [[ ${CTARGET} == ${CHOST} ]] ; then
57 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
58 export CTARGET=${CATEGORY/cross-}
59 fi
60 fi
61
62 # Handle the case where we want newlib on glibc ...
63 if [[ ${CTARGET} == ${CHOST} ]] && [[ ${CHOST} != *-newlib ]] ; then
64 export CTARGET=${CHOST%%-*}-pc-linux-newlib
65 fi
66
67 DESCRIPTION="Newlib is a C library intended for use on embedded systems"
68 HOMEPAGE="http://sourceware.org/newlib/"
69 SRC_URI="ftp://sources.redhat.com/pub/newlib/${P}.tar.gz"
70
71 LICENSE="NEWLIB LIBGLOSS GPL-2"
72 [[ ${CTARGET} != ${CHOST} ]] \
73 && SLOT="${CTARGET}" \
74 || SLOT="0"
75 KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
76 IUSE="nls threads unicode crosscompile_opts_headers-only"
77 RESTRICT="strip"
78
79 DEPEND=""
80 RDEPEND=""
81
82 NEWLIBBUILD="${WORKDIR}/build"
83
84 src_unpack() {
85 unpack ${A}
86 mkdir -p "${NEWLIBBUILD}"
87 }
88
89 src_compile() {
90 # we should fix this ...
91 unset LDFLAGS
92 CHOST=${CTARGET} strip-unsupported-flags
93
94 local myconf=""
95 # hardwired to avoid breakages
96 [[ $(tc-is-softfloat) != "no" ]] \
97 && myconf="--disable-newlib-hw-fp" \
98 || myconf="--enable-newlib-hw-fp"
99 [[ ${CTARGET} == "spu" ]] \
100 && myconf="${myconf} --disable-threads" \
101 || myconf="${myconf} $(use_enable threads)"
102
103 cd "${NEWLIBBUILD}"
104
105 ECONF_SOURCE=${S} \
106 econf \
107 $(use_enable unicode newlib-mb) \
108 $(use_enable nls) \
109 ${myconf} \
110 || die "econf failed"
111 emake || die "emake failed"
112 }
113
114 src_install() {
115 cd "${NEWLIBBUILD}"
116 emake -j1 DESTDIR="${D}" install
117 # env -uRESTRICT CHOST=${CTARGET} prepallstrip
118 # minor hack to keep things clean
119 rm -fR "${D}"/usr/share/info
120 rm -fR "${D}"/usr/info
121 }