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