diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-04 14:56:24 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-01-04 14:57:25 -0500 |
commit | 31c35a379828faca7d29276ea6e3a046c71a0974 (patch) | |
tree | da1ff845c304a4219c935b0099f5492a77e90795 /sys-libs | |
parent | app-misc/abook: version bump to 0.6.1 (diff) | |
download | gentoo-31c35a379828faca7d29276ea6e3a046c71a0974.tar.gz gentoo-31c35a379828faca7d29276ea6e3a046c71a0974.tar.bz2 gentoo-31c35a379828faca7d29276ea6e3a046c71a0974.zip |
sys-libs/newlib: version bump to 2.3.0.20160104
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/newlib/Manifest | 1 | ||||
-rw-r--r-- | sys-libs/newlib/newlib-2.3.0.20160104.ebuild | 82 |
2 files changed, 83 insertions, 0 deletions
diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest index d5e19256c3f3..21ea4cbcf1a2 100644 --- a/sys-libs/newlib/Manifest +++ b/sys-libs/newlib/Manifest @@ -5,3 +5,4 @@ DIST newlib-2.0.0.tar.gz 15868470 SHA256 49c29e9129325e7c3b221aa829743ddcd796d02 DIST newlib-2.1.0.tar.gz 16199705 SHA256 3e4d5ab9f0508942b6231b8ade4f8e5048cf92c96ed574c2bd6bd3320a599a48 SHA512 6770864f9307abb2401a4e48f286845d3a4afc30b2ac987da4b964a5485cc3823b32d06a0abf61528e93c4ad8a3a0aa3cc1ecd3b033850e6b2bde6d9bbc9a547 WHIRLPOOL 6faba54a72c6242c694f43a7f2e62d23584fec658818201ee58e1d2954d45b58a5f4effd63f5274b99748ed7730db76e0cf2aa1ecfbdf7001f10929d7db6353c DIST newlib-2.2.0.20150423.tar.gz 17485660 SHA256 b1ff3642b246adc6ee546884cb9ea3b0913f17394cbf7ca4d3b82544fef759f7 SHA512 0eecaf5dbf6caf0e0fca3697dfd70e5f60ecbc0a3365852586bc40a32bd535ef0936fa7fc68fceda3426cdb9b6259de12ed00303cadeea09d95b5f1a07022bae WHIRLPOOL 37d78cf24a072819bcf098e3b384cf6fa3a11ded461d6fb12e8635169fcb8b638400622878ad947df55236957a6ce3884ad46f02f7351414842eb048ceed7d73 DIST newlib-2.2.0.tar.gz 16521910 SHA256 f8add263b0737591aff451b12a00c262c2efac4fa87d741fa1c318fc3bb335be SHA512 ab9161f16845367c823b6709e3c5708969f29f05c77edb1cf969ff4202f358648f1e55080974599dcefed2fbced4694dc73748596e76c1aa37c50cddff6e4be3 WHIRLPOOL 8dfc23f93d774c5092d64d1482c3ecc6e3ba35395822bb1d52f5e3b86f644ee803927bff133883926f3e019cfd5d9f04ffe0dcaac20bdf144c542ba1dc3edff9 +DIST newlib-2.3.0.20160104.tar.gz 17674117 SHA256 c92a0e02904bd4fbe1dd416ed94e786c66afbaeae484e4c26be8bb7c7c1e4cd1 SHA512 d83ce298b1b72eabf92e4ec14af3afdf3122e34aff5e320295a398df077235a78aa87148895b441a4f7de3047815e7ce13ea06a06135dd86b69a200236514293 WHIRLPOOL 41ab57955b886dad8988bd06a18c1b5bbf21c7b554410711c17141bbc12d70af2f6ce6f9d3503c11180d46b42bcf305c6347ea58252d24459dc02c568aeb8497 diff --git a/sys-libs/newlib/newlib-2.3.0.20160104.ebuild b/sys-libs/newlib/newlib-2.3.0.20160104.ebuild new file mode 100644 index 000000000000..8c40312c0ad2 --- /dev/null +++ b/sys-libs/newlib/newlib-2.3.0.20160104.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit flag-o-matic toolchain-funcs eutils + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://sourceware.org/git/newlib.git" + inherit git-r3 +else + SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz" +# if [[ ${PV} != *.201[5-9]???? ]] ; then + KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" +# fi +fi + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +DESCRIPTION="Newlib is a C library intended for use on embedded systems" +HOMEPAGE="http://sourceware.org/newlib/" + +LICENSE="NEWLIB LIBGLOSS GPL-2" +SLOT="0" +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_prepare() { + epatch_user +} + +src_configure() { + # we should fix this ... + unset LDFLAGS + CHOST=${CTARGET} strip-unsupported-flags + + local myconf="" + [[ ${CTARGET} == "spu" ]] \ + && myconf="${myconf} --disable-newlib-multithread" \ + || myconf="${myconf} $(use_enable threads newlib-multithread)" + + mkdir -p "${NEWLIBBUILD}" + cd "${NEWLIBBUILD}" + + ECONF_SOURCE=${S} \ + econf \ + $(use_enable unicode newlib-mb) \ + $(use_enable nls) \ + ${myconf} +} + +src_compile() { + emake -C "${NEWLIBBUILD}" +} + +src_install() { + cd "${NEWLIBBUILD}" + emake -j1 DESTDIR="${D}" install +# env -uRESTRICT CHOST=${CTARGET} prepallstrip + # minor hack to keep things clean + rm -fR "${D}"/usr/share/info + rm -fR "${D}"/usr/info +} |