summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Hajdan <phajdan.jr@gentoo.org>2012-06-21 06:28:26 +0000
committerPaweł Hajdan <phajdan.jr@gentoo.org>2012-06-21 06:28:26 +0000
commite78545666d31aff024055be01fb1231f25df821f (patch)
tree329ddba73e5c7258573d53fb04d3ce01e6f4af52 /dev-lang/nacl-toolchain-newlib
parentmarked x86 per bug 422069 (diff)
downloadgentoo-2-e78545666d31aff024055be01fb1231f25df821f.tar.gz
gentoo-2-e78545666d31aff024055be01fb1231f25df821f.tar.bz2
gentoo-2-e78545666d31aff024055be01fb1231f25df821f.zip
Version bump.
(Portage version: 2.1.10.49/cvs/Linux i686)
Diffstat (limited to 'dev-lang/nacl-toolchain-newlib')
-rw-r--r--dev-lang/nacl-toolchain-newlib/ChangeLog8
-rw-r--r--dev-lang/nacl-toolchain-newlib/nacl-toolchain-newlib-0_p8989.ebuild95
2 files changed, 102 insertions, 1 deletions
diff --git a/dev-lang/nacl-toolchain-newlib/ChangeLog b/dev-lang/nacl-toolchain-newlib/ChangeLog
index 36c1dc54fdbd..087e8cd8e6ba 100644
--- a/dev-lang/nacl-toolchain-newlib/ChangeLog
+++ b/dev-lang/nacl-toolchain-newlib/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/nacl-toolchain-newlib
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/nacl-toolchain-newlib/ChangeLog,v 1.15 2012/05/03 09:03:24 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/nacl-toolchain-newlib/ChangeLog,v 1.16 2012/06/21 06:28:26 phajdan.jr Exp $
+
+*nacl-toolchain-newlib-0_p8989 (21 Jun 2012)
+
+ 21 Jun 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org>
+ +nacl-toolchain-newlib-0_p8989.ebuild:
+ Version bump.
03 May 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org>
nacl-toolchain-newlib-0_p8034.ebuild:
diff --git a/dev-lang/nacl-toolchain-newlib/nacl-toolchain-newlib-0_p8989.ebuild b/dev-lang/nacl-toolchain-newlib/nacl-toolchain-newlib-0_p8989.ebuild
new file mode 100644
index 000000000000..ad89fbdf4365
--- /dev/null
+++ b/dev-lang/nacl-toolchain-newlib/nacl-toolchain-newlib-0_p8989.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/nacl-toolchain-newlib/nacl-toolchain-newlib-0_p8989.ebuild,v 1.1 2012/06/21 06:28:26 phajdan.jr Exp $
+
+EAPI="4"
+
+inherit eutils flag-o-matic multilib
+
+BINUTILS_PV="2.20.1"
+NEWLIB_PV="1.20.0"
+GCC_PV="4.4.3"
+NACL_REVISION="${PV##*_p}"
+
+DESCRIPTION="Native Client newlib-based toolchain (only for compiling IRT)"
+HOMEPAGE="http://code.google.com/chrome/nativeclient/"
+SRC_URI="mirror://gnu/binutils/binutils-${BINUTILS_PV}.tar.bz2
+ ftp://sources.redhat.com/pub/newlib/newlib-${NEWLIB_PV}.tar.gz
+ mirror://gnu/gcc/gcc-${GCC_PV}/gcc-${GCC_PV}.tar.bz2
+ http://gsdview.appspot.com/nativeclient-archive2/x86_toolchain/r${NACL_REVISION}/nacltoolchain-buildscripts-r${NACL_REVISION}.tar.gz
+ http://gsdview.appspot.com/nativeclient-archive2/x86_toolchain/r${NACL_REVISION}/naclbinutils-${BINUTILS_PV}-r${NACL_REVISION}.patch.bz2
+ http://gsdview.appspot.com/nativeclient-archive2/x86_toolchain/r${NACL_REVISION}/naclnewlib-${NEWLIB_PV}-r${NACL_REVISION}.patch.bz2
+ http://gsdview.appspot.com/nativeclient-archive2/x86_toolchain/r${NACL_REVISION}/naclgcc-${GCC_PV}-r${NACL_REVISION}.patch.bz2
+"
+
+LICENSE="BSD" # NaCl
+LICENSE+=" || ( GPL-3 LGPL-3 )" # binutils
+LICENSE+=" NEWLIB LIBGLOSS GPL-2" # newlib
+LICENSE+=" GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2" # gcc
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# Stripping with a non-NaCl strip breaks the toolchain, bug #386931.
+# Tests are broken, bug #391761.
+RESTRICT="strip test"
+
+# Executable section checks do not make sense for newlib, bug #390383.
+QA_EXECSTACK="usr/lib*/nacl-toolchain-newlib/*/lib*/*"
+
+RDEPEND="
+ >=dev-libs/gmp-5.0.2
+ >=dev-libs/mpfr-3.0.1
+ >=sys-libs/glibc-2.8
+ >=sys-libs/zlib-1.1.4
+"
+DEPEND="${RDEPEND}
+ app-arch/zip
+ app-arch/unzip
+ dev-libs/mpc
+ dev-libs/cloog-ppl
+ dev-libs/ppl
+ >=media-libs/libart_lgpl-2.1
+ >=sys-apps/texinfo-4.8
+ >=sys-devel/binutils-2.15.94
+ >=sys-devel/bison-1.875
+ >=sys-devel/flex-2.5.4
+ sys-devel/gnuconfig
+ sys-devel/m4
+ >=sys-libs/ncurses-5.2-r2
+ >=sys-apps/sed-4
+ sys-devel/gettext
+ virtual/libiconv
+ virtual/yacc
+"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ # Unset variables known to break the build. This is a black-list
+ # rather than white-list because it's not obvious how to come up
+ # with a comprehensive white-list.
+ # For more info see bug #413995.
+ unset -v LANGUAGES || die
+}
+
+src_prepare() {
+ mkdir SRC || die
+ mv binutils-${BINUTILS_PV} SRC/binutils || die
+ mv newlib-${NEWLIB_PV} SRC/newlib || die
+ mv gcc-${GCC_PV} SRC/gcc || die
+ cd SRC || die
+ EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${S}"
+}
+
+src_compile() {
+ strip-flags # See bug #390589.
+ emake PREFIX="${PWD}/${PN}" CANNED_REVISION="yes" build-with-newlib
+}
+
+src_install() {
+ local TOOLCHAIN_HOME="/usr/$(get_libdir)"
+ dodir "${TOOLCHAIN_HOME}"
+ mv "${WORKDIR}/${PN}" "${ED}/${TOOLCHAIN_HOME}" || die
+}