summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2006-08-21 03:06:20 +0000
committerLuca Barbato <lu_zero@gentoo.org>2006-08-21 03:06:20 +0000
commit2e749b5b68e604dfb2d3f37c7e6eafdbf7cd3e2b (patch)
tree5e5f57aed517cdac6551130f3008bbf9fa90e678 /sys-libs/newlib
parentlibgloss and newlib conglomerate of licenses... (diff)
downloadhistorical-2e749b5b68e604dfb2d3f37c7e6eafdbf7cd3e2b.tar.gz
historical-2e749b5b68e604dfb2d3f37c7e6eafdbf7cd3e2b.tar.bz2
historical-2e749b5b68e604dfb2d3f37c7e6eafdbf7cd3e2b.zip
First import
Package-Manager: portage-2.1.1_pre5-r1
Diffstat (limited to 'sys-libs/newlib')
-rw-r--r--sys-libs/newlib/ChangeLog10
-rw-r--r--sys-libs/newlib/Manifest17
-rw-r--r--sys-libs/newlib/files/digest-newlib-1.14.06
-rw-r--r--sys-libs/newlib/metadata.xml8
-rw-r--r--sys-libs/newlib/newlib-1.14.0.ebuild98
5 files changed, 139 insertions, 0 deletions
diff --git a/sys-libs/newlib/ChangeLog b/sys-libs/newlib/ChangeLog
new file mode 100644
index 000000000000..ba671ccfc372
--- /dev/null
+++ b/sys-libs/newlib/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-libs/newlib
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/ChangeLog,v 1.1 2006/08/21 03:06:20 lu_zero Exp $
+
+*newlib-1.14.0 (21 Aug 2006)
+
+ 21 Aug 2006; Luca Barbato <lu_zero@gentoo.org> +metadata.xml,
+ +newlib-1.14.0.ebuild:
+ Import from overlay
+
diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
new file mode 100644
index 000000000000..999277b5555c
--- /dev/null
+++ b/sys-libs/newlib/Manifest
@@ -0,0 +1,17 @@
+DIST newlib-1.14.0-spu.patch.gz 49856 RMD160 47fde8507a22b1c05bb16a4ba9d58b1021762ce9 SHA1 9ba1b9bf2efefb0f68ed14e91c49dbef0c7ef076 SHA256 6ffd289983ab6f6a138b77a45dd284dc10c42a59d1a3e299654782192a5ca497
+DIST newlib-1.14.0.tar.gz 7981432 RMD160 6f2b3f32759925142421ddc069229eff857dd106 SHA1 edc50f5cda734b50c5431a2b8d1e579ac82ce3f9 SHA256 7db55671132c2943dbbdadfaa954915c23dbc329168575a42bb940ef4bf50a23
+EBUILD newlib-1.14.0.ebuild 2427 RMD160 06c1e581bc228ad2165303e3103ddc7720e12e4f SHA1 a12f7d63047fcf27813c2be959fd7354d81bde59 SHA256 9834d778c5ab16dd4773fc133bb73e0432d9ec93780a88f6ceba04efd33df371
+MD5 53a1f4b3cbf3b7fee28fc547e093283c newlib-1.14.0.ebuild 2427
+RMD160 06c1e581bc228ad2165303e3103ddc7720e12e4f newlib-1.14.0.ebuild 2427
+SHA256 9834d778c5ab16dd4773fc133bb73e0432d9ec93780a88f6ceba04efd33df371 newlib-1.14.0.ebuild 2427
+MISC ChangeLog 346 RMD160 8baab103930e439a5685d8fb637b87bdc21047dc SHA1 7609f9e70b6d3dfd040c7828d8e1b0875de35e63 SHA256 470c1f3e98bee8d5ccc1621a979fc967ead6571e8e0975ed52d043ee1eae1ad3
+MD5 332e764035b01f7672eb1f04e4fb7ea5 ChangeLog 346
+RMD160 8baab103930e439a5685d8fb637b87bdc21047dc ChangeLog 346
+SHA256 470c1f3e98bee8d5ccc1621a979fc967ead6571e8e0975ed52d043ee1eae1ad3 ChangeLog 346
+MISC metadata.xml 223 RMD160 f3503c1d2d441f248d9ab96397befec4ee8a952d SHA1 77b37f3782875cc566e33c72b4536df86ff96df3 SHA256 d0effd32fc7c73c97f14108c4bdb0c2636af5763f7c0a987ad7ea264921a827f
+MD5 7c1c8e9dbaf579e37b0707f85f905a51 metadata.xml 223
+RMD160 f3503c1d2d441f248d9ab96397befec4ee8a952d metadata.xml 223
+SHA256 d0effd32fc7c73c97f14108c4bdb0c2636af5763f7c0a987ad7ea264921a827f metadata.xml 223
+MD5 57fecc46f815fa893f86beb6133f8880 files/digest-newlib-1.14.0 500
+RMD160 5a92cdb1959865d6f469b376d89faf0ac4adce0c files/digest-newlib-1.14.0 500
+SHA256 d4069d5318ec1cba6c1c7fa5dbea73590215f41e5497937a92a4c722e15cbf7e files/digest-newlib-1.14.0 500
diff --git a/sys-libs/newlib/files/digest-newlib-1.14.0 b/sys-libs/newlib/files/digest-newlib-1.14.0
new file mode 100644
index 000000000000..ae27cff91593
--- /dev/null
+++ b/sys-libs/newlib/files/digest-newlib-1.14.0
@@ -0,0 +1,6 @@
+MD5 209154baba054525a22d056ad3de9fc5 newlib-1.14.0-spu.patch.gz 49856
+RMD160 47fde8507a22b1c05bb16a4ba9d58b1021762ce9 newlib-1.14.0-spu.patch.gz 49856
+SHA256 6ffd289983ab6f6a138b77a45dd284dc10c42a59d1a3e299654782192a5ca497 newlib-1.14.0-spu.patch.gz 49856
+MD5 3fa663f131b355d3adb24ead4df678f2 newlib-1.14.0.tar.gz 7981432
+RMD160 6f2b3f32759925142421ddc069229eff857dd106 newlib-1.14.0.tar.gz 7981432
+SHA256 7db55671132c2943dbbdadfaa954915c23dbc329168575a42bb940ef4bf50a23 newlib-1.14.0.tar.gz 7981432
diff --git a/sys-libs/newlib/metadata.xml b/sys-libs/newlib/metadata.xml
new file mode 100644
index 000000000000..c30294285aee
--- /dev/null
+++ b/sys-libs/newlib/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>toolchain</herd>
+<maintainer>
+<email>lu_zero@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-libs/newlib/newlib-1.14.0.ebuild b/sys-libs/newlib/newlib-1.14.0.ebuild
new file mode 100644
index 000000000000..889447b167a6
--- /dev/null
+++ b/sys-libs/newlib/newlib-1.14.0.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/newlib/newlib-1.14.0.ebuild,v 1.1 2006/08/21 03:06:20 lu_zero Exp $
+
+inherit eutils flag-o-matic gnuconfig autotools
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+
+# Handle the case where we want newlib on glibc ...
+if [[ ${CTARGET} == ${CHOST} ]] && [[ ${CHOST} != *-newlib ]] ; then
+ export CTARGET=${CHOST%%-*}-pc-linux-newlib
+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
+ mirror://gentoo/${P}-spu.patch.gz"
+
+LICENSE="NEWLIB LIBGLOSS GPL-2"
+[[ ${CTARGET} != ${CHOST} ]] \
+ && SLOT="${CTARGET}" \
+ || SLOT="0"
+KEYWORDS="-* ~ppc64 ~ppc"
+IUSE="nls threads unicode multilib"
+
+DEPEND=">=sys-devel/gnuconfig"
+RDEPEND=""
+
+RESTRICT="nostrip"
+
+NEWLIBBUILD="${WORKDIR}/build"
+
+alt_build_kprefix() {
+ if [[ ${CBUILD} == ${CHOST} && ${CTARGET} == ${CHOST} ]] \
+ || [[ -n ${UCLIBC_AND_GLIBC} ]]
+ then
+ echo /usr
+ else
+ echo /usr/${CTARGET}/usr
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ epatch ${WORKDIR}/${P}-spu.patch
+ einfo "Updating configure scripts"
+ cd ${S}
+ gnuconfig_update
+ export WANT_AUTOCONF=2.1
+ # ugly workaround
+ for a in libgloss libgloss/doc libgloss/libnosys
+ do
+ pushd ${S}/${a} >/dev/null
+ aclocal 2>/dev/null
+ autoconf 2>/dev/null
+ popd >/dev/null
+ done
+ mkdir ${NEWLIBBUILD}
+}
+
+src_compile() {
+ local myconf=""
+#hardwired to avoid breakages
+ [[ ${CTARGET} == *-softfloat-* ]] \
+ && myconf="--disable-newlib-hw-fp" \
+ || myconf="--enable-newlib-hw-fp"
+
+#to the user discretion
+ myconf="${myconf} `use_enable unicode newlib-mb`"
+ myconf="${myconf} `use_enable nls`"
+ myconf="${myconf} `use_enable multilib`"
+ [[ ${CTARGET} == "spu" ]] \
+ && myconf="${myconf} --disable-threads" \
+ || myconf="${myconf} `use_enable threads`"
+
+ cd ${NEWLIBBUILD}
+
+ ../${P}/configure \
+ --host=${CHOST} \
+ --target=${CTARGET} \
+ --prefix=/usr \
+ ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ cd ${NEWLIBBUILD}
+ emake -j1 DESTDIR=${D} install
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ # minor hack to keep things clean
+ rm -fR ${D}/usr/info
+}