Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/newlib: newlib-9999.ebuild newlib-2.2.0.20150225.ebuild ChangeLog
Date: Wed, 25 Feb 2015 19:42:56
Message-Id: 20150225194248.278A4128AD@oystercatcher.gentoo.org
1 vapier 15/02/25 19:42:48
2
3 Modified: newlib-9999.ebuild ChangeLog
4 Added: newlib-2.2.0.20150225.ebuild
5 Log:
6 Add support for new monthly snapshots.
7
8 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.3 sys-libs/newlib/newlib-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/newlib-9999.ebuild?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/newlib-9999.ebuild?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/newlib-9999.ebuild?r1=1.2&r2=1.3
16
17 Index: newlib-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/newlib/newlib-9999.ebuild,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- newlib-9999.ebuild 2 Jan 2014 12:57:47 -0000 1.2
24 +++ newlib-9999.ebuild 25 Feb 2015 19:42:48 -0000 1.3
25 @@ -1,6 +1,6 @@
26 -# Copyright 1999-2014 Gentoo Foundation
27 +# Copyright 1999-2015 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/newlib-9999.ebuild,v 1.2 2014/01/02 12:57:47 vapier Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/newlib-9999.ebuild,v 1.3 2015/02/25 19:42:48 vapier Exp $
31
32 EAPI="4"
33
34 @@ -11,7 +11,9 @@
35 inherit git-r3
36 else
37 SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz"
38 - KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
39 + if [[ ${PV} != *.201[5-9]???? ]] ; then
40 + KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
41 + fi
42 fi
43
44 export CBUILD=${CBUILD:-${CHOST}}
45
46
47
48 1.28 sys-libs/newlib/ChangeLog
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/ChangeLog?rev=1.28&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/ChangeLog?rev=1.28&content-type=text/plain
52 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/ChangeLog?r1=1.27&r2=1.28
53
54 Index: ChangeLog
55 ===================================================================
56 RCS file: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v
57 retrieving revision 1.27
58 retrieving revision 1.28
59 diff -u -r1.27 -r1.28
60 --- ChangeLog 17 Feb 2015 07:03:09 -0000 1.27
61 +++ ChangeLog 25 Feb 2015 19:42:48 -0000 1.28
62 @@ -1,6 +1,12 @@
63 # ChangeLog for sys-libs/newlib
64 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
65 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v 1.27 2015/02/17 07:03:09 vapier Exp $
66 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v 1.28 2015/02/25 19:42:48 vapier Exp $
67 +
68 +*newlib-2.2.0.20150225 (25 Feb 2015)
69 +
70 + 25 Feb 2015; Mike Frysinger <vapier@g.o> +newlib-2.2.0.20150225.ebuild,
71 + newlib-9999.ebuild:
72 + Add support for new monthly snapshots.
73
74 *newlib-2.2.0 (17 Feb 2015)
75
76
77
78
79 1.1 sys-libs/newlib/newlib-2.2.0.20150225.ebuild
80
81 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/newlib-2.2.0.20150225.ebuild?rev=1.1&view=markup
82 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/newlib-2.2.0.20150225.ebuild?rev=1.1&content-type=text/plain
83
84 Index: newlib-2.2.0.20150225.ebuild
85 ===================================================================
86 # Copyright 1999-2015 Gentoo Foundation
87 # Distributed under the terms of the GNU General Public License v2
88 # $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/newlib-2.2.0.20150225.ebuild,v 1.1 2015/02/25 19:42:48 vapier Exp $
89
90 EAPI="4"
91
92 inherit flag-o-matic toolchain-funcs eutils
93
94 if [[ ${PV} == "9999" ]] ; then
95 EGIT_REPO_URI="git://sourceware.org/git/newlib.git"
96 inherit git-r3
97 else
98 SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz"
99 if [[ ${PV} != *.201[5-9]???? ]] ; then
100 KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
101 fi
102 fi
103
104 export CBUILD=${CBUILD:-${CHOST}}
105 export CTARGET=${CTARGET:-${CHOST}}
106 if [[ ${CTARGET} == ${CHOST} ]] ; then
107 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
108 export CTARGET=${CATEGORY/cross-}
109 fi
110 fi
111
112 DESCRIPTION="Newlib is a C library intended for use on embedded systems"
113 HOMEPAGE="http://sourceware.org/newlib/"
114
115 LICENSE="NEWLIB LIBGLOSS GPL-2"
116 SLOT="0"
117 IUSE="nls threads unicode crosscompile_opts_headers-only"
118 RESTRICT="strip"
119
120 NEWLIBBUILD="${WORKDIR}/build"
121
122 pkg_setup() {
123 # Reject newlib-on-glibc type installs
124 if [[ ${CTARGET} == ${CHOST} ]] ; then
125 case ${CHOST} in
126 *-newlib|*-elf) ;;
127 *) die "Use sys-devel/crossdev to build a newlib toolchain" ;;
128 esac
129 fi
130 }
131
132 src_prepare() {
133 epatch_user
134 }
135
136 src_configure() {
137 # we should fix this ...
138 unset LDFLAGS
139 CHOST=${CTARGET} strip-unsupported-flags
140
141 local myconf=""
142 [[ ${CTARGET} == "spu" ]] \
143 && myconf="${myconf} --disable-newlib-multithread" \
144 || myconf="${myconf} $(use_enable threads newlib-multithread)"
145
146 mkdir -p "${NEWLIBBUILD}"
147 cd "${NEWLIBBUILD}"
148
149 ECONF_SOURCE=${S} \
150 econf \
151 $(use_enable unicode newlib-mb) \
152 $(use_enable nls) \
153 ${myconf}
154 }
155
156 src_compile() {
157 emake -C "${NEWLIBBUILD}"
158 }
159
160 src_install() {
161 cd "${NEWLIBBUILD}"
162 emake -j1 DESTDIR="${D}" install
163 # env -uRESTRICT CHOST=${CTARGET} prepallstrip
164 # minor hack to keep things clean
165 rm -fR "${D}"/usr/share/info
166 rm -fR "${D}"/usr/info
167 }