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.16.0_pre20071025.ebuild
Date: Thu, 25 Oct 2007 06:24:30
Message-Id: E1Ikw8m-00076S-4g@stork.gentoo.org
1 lu_zero 07/10/25 06:24:24
2
3 Modified: ChangeLog
4 Added: newlib-1.16.0_pre20071025.ebuild
5 Log:
6 New snapshot, avoid strip completely
7 (Portage version: 2.1.3.15)
8
9 Revision Changes Path
10 1.10 sys-libs/newlib/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/newlib/ChangeLog?rev=1.10&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/newlib/ChangeLog?rev=1.10&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/newlib/ChangeLog?r1=1.9&r2=1.10
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v
19 retrieving revision 1.9
20 retrieving revision 1.10
21 diff -u -r1.9 -r1.10
22 --- ChangeLog 19 Mar 2007 15:50:47 -0000 1.9
23 +++ ChangeLog 25 Oct 2007 06:24:23 -0000 1.10
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-libs/newlib
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v 1.9 2007/03/19 15:50:47 lu_zero Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v 1.10 2007/10/25 06:24:23 lu_zero Exp $
29 +
30 +*newlib-1.16.0_pre20071025 (25 Oct 2007)
31 +
32 + 25 Oct 2007; Luca Barbato <lu_zero@g.o>
33 + +newlib-1.16.0_pre20071025.ebuild:
34 + New snapshot, avoid strip completely
35
36 19 Mar 2007; Luca Barbato <lu_zero@g.o> newlib-1.15.0.ebuild:
37 Removed multilib useflag
38
39
40
41 1.1 sys-libs/newlib/newlib-1.16.0_pre20071025.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/newlib/newlib-1.16.0_pre20071025.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/newlib/newlib-1.16.0_pre20071025.ebuild?rev=1.1&content-type=text/plain
45
46 Index: newlib-1.16.0_pre20071025.ebuild
47 ===================================================================
48 # Copyright 1999-2007 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.16.0_pre20071025.ebuild,v 1.1 2007/10/25 06:24:23 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="mirror://gentoo/${P}.tar.bz2"
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"
77 RESTRICT="strip"
78
79 DEPEND=""
80 RDEPEND=""
81
82 NEWLIBBUILD="${WORKDIR}/build"
83 S="${WORKDIR}/newlib"
84
85 src_unpack() {
86 unpack ${A}
87 mkdir -p "${NEWLIBBUILD}"
88 }
89
90 src_compile() {
91 # we should fix this ...
92 unset LDFLAGS
93 CHOST=${CTARGET} strip-unsupported-flags
94
95 local myconf=""
96 # hardwired to avoid breakages
97 [[ $(tc-is-softfloat) != "no" ]] \
98 && myconf="--disable-newlib-hw-fp" \
99 || myconf="--enable-newlib-hw-fp"
100 [[ ${CTARGET} == "spu" ]] \
101 && myconf="${myconf} --disable-threads" \
102 || myconf="${myconf} $(use_enable threads)"
103
104 cd "${NEWLIBBUILD}"
105
106 ECONF_SOURCE=${S} \
107 econf \
108 $(use_enable unicode newlib-mb) \
109 $(use_enable nls) \
110 ${myconf} \
111 || die "econf failed"
112 emake || die "emake failed"
113 }
114
115 src_install() {
116 cd "${NEWLIBBUILD}"
117 emake -j1 DESTDIR="${D}" install
118 # env -uRESTRICT CHOST=${CTARGET} prepallstrip
119 # minor hack to keep things clean
120 rm -fR "${D}"/usr/share/info
121 rm -fR "${D}"/usr/info
122 }
123
124
125
126 --
127 gentoo-commits@g.o mailing list