From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-libs/newlib: newlib-2.1.0.ebuild ChangeLog |
Date: | Tue, 24 Dec 2013 06:44:22 |
Message-Id: | 20131224064418.A2B482004C@flycatcher.gentoo.org |
1 | vapier 13/12/24 06:44:18 |
2 | |
3 | Modified: ChangeLog |
4 | Added: newlib-2.1.0.ebuild |
5 | Log: |
6 | Version bump. |
7 | |
8 | (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key FB7C4156) |
9 | |
10 | Revision Changes Path |
11 | 1.23 sys-libs/newlib/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/ChangeLog?rev=1.23&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/ChangeLog?rev=1.23&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/ChangeLog?r1=1.22&r2=1.23 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v |
20 | retrieving revision 1.22 |
21 | retrieving revision 1.23 |
22 | diff -u -r1.22 -r1.23 |
23 | --- ChangeLog 24 Dec 2013 06:43:22 -0000 1.22 |
24 | +++ ChangeLog 24 Dec 2013 06:44:18 -0000 1.23 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for sys-libs/newlib |
27 | # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v 1.22 2013/12/24 06:43:22 vapier Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v 1.23 2013/12/24 06:44:18 vapier Exp $ |
30 | + |
31 | +*newlib-2.1.0 (24 Dec 2013) |
32 | + |
33 | + 24 Dec 2013; Mike Frysinger <vapier@g.o> +newlib-2.1.0.ebuild: |
34 | + Version bump. |
35 | |
36 | 24 Dec 2013; Mike Frysinger <vapier@g.o> newlib-2.0.0.ebuild: |
37 | Stabilize for all. |
38 | |
39 | |
40 | |
41 | 1.1 sys-libs/newlib/newlib-2.1.0.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/newlib-2.1.0.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/newlib/newlib-2.1.0.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: newlib-2.1.0.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2013 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/newlib-2.1.0.ebuild,v 1.1 2013/12/24 06:44:18 vapier Exp $ |
51 | |
52 | EAPI="4" |
53 | |
54 | inherit flag-o-matic toolchain-funcs |
55 | |
56 | export CBUILD=${CBUILD:-${CHOST}} |
57 | export CTARGET=${CTARGET:-${CHOST}} |
58 | if [[ ${CTARGET} == ${CHOST} ]] ; then |
59 | if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then |
60 | export CTARGET=${CATEGORY/cross-} |
61 | fi |
62 | fi |
63 | |
64 | DESCRIPTION="Newlib is a C library intended for use on embedded systems" |
65 | HOMEPAGE="http://sourceware.org/newlib/" |
66 | SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz" |
67 | |
68 | LICENSE="NEWLIB LIBGLOSS GPL-2" |
69 | SLOT="0" |
70 | KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" |
71 | IUSE="nls threads unicode crosscompile_opts_headers-only" |
72 | RESTRICT="strip" |
73 | |
74 | NEWLIBBUILD="${WORKDIR}/build" |
75 | |
76 | pkg_setup() { |
77 | # Reject newlib-on-glibc type installs |
78 | if [[ ${CTARGET} == ${CHOST} ]] ; then |
79 | case ${CHOST} in |
80 | *-newlib|*-elf) ;; |
81 | *) die "Use sys-devel/crossdev to build a newlib toolchain" ;; |
82 | esac |
83 | fi |
84 | } |
85 | |
86 | src_configure() { |
87 | # we should fix this ... |
88 | unset LDFLAGS |
89 | CHOST=${CTARGET} strip-unsupported-flags |
90 | |
91 | local myconf="" |
92 | [[ ${CTARGET} == "spu" ]] \ |
93 | && myconf="${myconf} --disable-newlib-multithread" \ |
94 | || myconf="${myconf} $(use_enable threads newlib-multithread)" |
95 | |
96 | mkdir -p "${NEWLIBBUILD}" |
97 | cd "${NEWLIBBUILD}" |
98 | |
99 | ECONF_SOURCE=${S} \ |
100 | econf \ |
101 | $(use_enable unicode newlib-mb) \ |
102 | $(use_enable nls) \ |
103 | ${myconf} |
104 | } |
105 | |
106 | src_compile() { |
107 | emake -C "${NEWLIBBUILD}" |
108 | } |
109 | |
110 | src_install() { |
111 | cd "${NEWLIBBUILD}" |
112 | emake -j1 DESTDIR="${D}" install |
113 | # env -uRESTRICT CHOST=${CTARGET} prepallstrip |
114 | # minor hack to keep things clean |
115 | rm -fR "${D}"/usr/share/info |
116 | rm -fR "${D}"/usr/info |
117 | } |