summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-libs/newlib/ChangeLog9
-rw-r--r--sys-libs/newlib/Manifest24
-rw-r--r--sys-libs/newlib/newlib-1.20.0.ebuild76
3 files changed, 101 insertions, 8 deletions
diff --git a/sys-libs/newlib/ChangeLog b/sys-libs/newlib/ChangeLog
index 88e6950f19ed..008ec53e61a1 100644
--- a/sys-libs/newlib/ChangeLog
+++ b/sys-libs/newlib/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-libs/newlib
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v 1.15 2011/02/12 23:49:27 vapier Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v 1.16 2012/01/14 10:32:49 vapier Exp $
+
+*newlib-1.20.0 (14 Jan 2012)
+
+ 14 Jan 2012; Mike Frysinger <vapier@gentoo.org> +newlib-1.20.0.ebuild:
+ Version bump.
*newlib-1.19.0 (12 Feb 2011)
diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index 2cbc6ac2416e..f9cf474233d0 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1,16 +1,28 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
+Hash: SHA1
DIST newlib-1.18.0.tar.gz 13598301 RMD160 69d96fd323a23857072f30cb51899040099857cd SHA1 a47d3b8a508304143334b36bdb5b33786a61ce94 SHA256 d608f22b0b2e7725d2fca13cac19f34bc652d9773acadae778db9881746cb071
DIST newlib-1.19.0.tar.gz 14323667 RMD160 a28bd656ec895da0738dac3fb367851a2992d724 SHA1 b2269d30ce7b93b7c714b90ef2f40221c2df0fcd SHA256 4f43807236b2274c220881ca69f7dc6aecc52f14bb32a6f03404d30780c25007
+DIST newlib-1.20.0.tar.gz 14571004 RMD160 e36c5337a74633456b47d09594974c7dd7a9cc3e SHA1 65e7bdbeda0cbbf99c8160df573fd04d1cbe00d1 SHA256 c644b2847244278c57bec2ddda69d8fab5a7c767f3b9af69aa7aa3da823ff692
EBUILD newlib-1.18.0.ebuild 1993 RMD160 844ce4b63cecf91208bc23e3da6bc1f6fce27ea7 SHA1 8c5b9ec73064ca9ca15cf76cc55e4873bb3fd61c SHA256 78790829abd7c4a8b7cbec5ea559f15ba6e3d35e1c78ebef8d6ff63d68974699
EBUILD newlib-1.19.0.ebuild 1993 RMD160 c115d797a2bb912dcb058b567afd013172dc7c83 SHA1 54c25a9beb7cc5f8a73e1737e0f6adb030f0fa11 SHA256 596fea7fc530a4dfc3d89552b9308d3909439d284398c97e601792c277ad98ea
-MISC ChangeLog 2334 RMD160 1851053dab3b1e49a9c85492a5d914df3b920435 SHA1 2b6823c2ff741bce132e8e989b7e2bf292667ef9 SHA256 c78db6fd00a7b7cab8d463f75d0da7d135e6bd3dd9c99295b70445aa182ac556
+EBUILD newlib-1.20.0.ebuild 1993 RMD160 35c3365bebb3beb3ed573be3c2fc6feacf437052 SHA1 942d111d78e8edc74a79d88ded02f98a72958436 SHA256 2d8407fc4f6ca8fa241a0a9d45998edfa4be6a90d636125d57931b69206cd78a
+MISC ChangeLog 2454 RMD160 92d07cc14df705c041021cb972c470f90f7ba2bf SHA1 ad57d9667f27fa77d3da2870e4acf323b9a93ce7 SHA256 e6606e210b4dc1f198ffb9a3ea119f84be89ac820390f1a8aa74c8ac6f387906
MISC metadata.xml 223 RMD160 f3503c1d2d441f248d9ab96397befec4ee8a952d SHA1 77b37f3782875cc566e33c72b4536df86ff96df3 SHA256 d0effd32fc7c73c97f14108c4bdb0c2636af5763f7c0a987ad7ea264921a827f
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
+Version: GnuPG v2.0.18 (GNU/Linux)
-iF4EAREIAAYFAk1XHIsACgkQaC/OocHi7JZnigD+N3e5a3LB1VZqKJDTTlji148k
-xmp+dKFQGMsksbwSZasBAJEuJiEVEmWhnOoAK7w1dZIArA4hUSN/aTa/aCHSAgOw
-=WsEQ
+iQIcBAEBAgAGBQJPEVneAAoJELEHsLL7fEFWb4oP/igY9MmAYu0v2avTah08PEJ3
+YVUyjBOvODBz87ew2MYUGlRFaxi/4j5g63bgthAfShWZvaSInyzqLIaEFpcBghhl
+tcV4ebH7UOTOgP0zJGaBzo6KeyW+Dq2Q35Ttih5qHMxmZ4ihjBsJkyyQsTS9d1Ev
+vjKPO190FUx96IRVJudClckQfMb1KU/M6S3TYQ0xvUoFgq9UMvqRdSaVfmXLTQhG
+uMQz/URxAc2u1bdIulSfgna4pOkGJVJVPkT+KcMzIKtz0EGEInW/nLUIPuYjt7zu
+5JYWsJ6gOxtCv/ykeppWGJZ1+nut0TEFnpGP7oTO9+jR6vHClwe/uYLOHX/mtlqI
+IzLUvYOROBDc+IOtNOLHhkAzLRN6YpvvlRzCLUMMlL/4Ue+zcA7ClH/oz88ujqdl
+i5/gYXj1NraQBf1M0NUUo+Sndz03SEURwqxbBGqSwrUGi3V2z8GDw2YuH10HicTi
+Hu7I080L3H0Jlk8TYi82MV78z+8zkeN/EpCmVoaUdDsikDAe8Ys1SnG9rQuODGFY
+tgRcjRmyRO7uKmPqUBGgK6qbDgOFT3qG3MdLC9tUE5G8ttcBugpeynK/MG6jGBbJ
+PhAKSCo+c0oN9BLbRW+mlcdeqVC/vnxQKPhofMsguMW6ObmcFqY0D9ptdz0JSMTW
+uLVMXiubCWpF3dmIfK2J
+=LzJ9
-----END PGP SIGNATURE-----
diff --git a/sys-libs/newlib/newlib-1.20.0.ebuild b/sys-libs/newlib/newlib-1.20.0.ebuild
new file mode 100644
index 000000000000..64ad7f9e410d
--- /dev/null
+++ b/sys-libs/newlib/newlib-1.20.0.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/newlib-1.20.0.ebuild,v 1.1 2012/01/14 10:32:49 vapier Exp $
+
+inherit eutils flag-o-matic toolchain-funcs
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+
+DESCRIPTION="Newlib is a C library intended for use on embedded systems"
+HOMEPAGE="http://sourceware.org/newlib/"
+SRC_URI="ftp://sources.redhat.com/pub/newlib/${P}.tar.gz"
+
+LICENSE="NEWLIB LIBGLOSS GPL-2"
+[[ ${CTARGET} != ${CHOST} ]] \
+ && SLOT="${CTARGET}" \
+ || SLOT="0"
+KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
+IUSE="nls threads unicode crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+NEWLIBBUILD="${WORKDIR}/build"
+
+pkg_setup() {
+ # Reject newlib-on-glibc type installs
+ if [[ ${CTARGET} == ${CHOST} ]] ; then
+ case ${CHOST} in
+ *-newlib|*-elf) ;;
+ *) die "Use sys-devel/crossdev to build a newlib toolchain" ;;
+ esac
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ mkdir -p "${NEWLIBBUILD}"
+}
+
+src_compile() {
+ # we should fix this ...
+ unset LDFLAGS
+ CHOST=${CTARGET} strip-unsupported-flags
+
+ local myconf=""
+ # hardwired to avoid breakages
+ [[ $(tc-is-softfloat) != "no" ]] \
+ && myconf="--disable-newlib-hw-fp" \
+ || myconf="--enable-newlib-hw-fp"
+ [[ ${CTARGET} == "spu" ]] \
+ && myconf="${myconf} --disable-newlib-multithread" \
+ || myconf="${myconf} $(use_enable threads newlib-multithread)"
+
+ cd "${NEWLIBBUILD}"
+
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable unicode newlib-mb) \
+ $(use_enable nls) \
+ ${myconf} \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ cd "${NEWLIBBUILD}"
+ emake -j1 DESTDIR="${D}" install || die
+# env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ # minor hack to keep things clean
+ rm -fR "${D}"/usr/share/info
+ rm -fR "${D}"/usr/info
+}