diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-01-07 10:58:27 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-01-07 10:58:27 +0000 |
commit | ff4b17c407dc39aca53d1c5428a4d251a367d3a0 (patch) | |
tree | 4c9a67418db996f1494d25560dc7a1fef88a61de /sys-libs/uclibc | |
parent | dont use tc-endian anymore (diff) | |
download | gentoo-2-ff4b17c407dc39aca53d1c5428a4d251a367d3a0.tar.gz gentoo-2-ff4b17c407dc39aca53d1c5428a4d251a367d3a0.tar.bz2 gentoo-2-ff4b17c407dc39aca53d1c5428a4d251a367d3a0.zip |
dont use tc-endian anymore
(Portage version: 2.1.2_rc4-r6)
Diffstat (limited to 'sys-libs/uclibc')
-rw-r--r-- | sys-libs/uclibc/uclibc-0.9.27-r1.ebuild | 14 | ||||
-rw-r--r-- | sys-libs/uclibc/uclibc-0.9.28-r1.ebuild | 14 | ||||
-rw-r--r-- | sys-libs/uclibc/uclibc-0.9.28.ebuild | 14 |
3 files changed, 30 insertions, 12 deletions
diff --git a/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild b/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild index 6d91911b4631..4cd66f804893 100644 --- a/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild +++ b/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild,v 1.20 2006/12/02 23:24:07 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild,v 1.21 2007/01/07 10:58:27 vapier Exp $ inherit eutils flag-o-matic toolchain-funcs @@ -66,6 +66,12 @@ just_headers() { use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] } +uclibc_endian() { + printf "#include <endian.h>\n#if __BYTE_ORDER == __LITTLE_ENDIAN\nlittle\n#else\nbig\n#endif\n" \ + | $(tc-getCPP) - \ + | tail -n 1 +} + pkg_setup() { just_headers && return 0 has_version ${CATEGORY}/uclibc || return 0 @@ -130,7 +136,7 @@ src_unpack() { einfo "CHOST: ${CHOST}" einfo "CTARGET: ${CTARGET}" einfo "CPU: ${UCLIBC_CPU}" - einfo "ENDIAN: $(tc-endian)" + einfo "ENDIAN: $(uclibc_endian)" echo ########## PATCHES ########## @@ -176,7 +182,7 @@ src_unpack() { fi sed -i -e '/ARCH_.*_ENDIAN/d' .config - echo "ARCH_$(tc-endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config + echo "ARCH_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config if [[ ${CTARGET//_/-} == *-softfloat-* ]] ; then sed -i -e '/^HAS_FPU=y$/d' .config diff --git a/sys-libs/uclibc/uclibc-0.9.28-r1.ebuild b/sys-libs/uclibc/uclibc-0.9.28-r1.ebuild index 3de84f3efb07..1386947e77f3 100644 --- a/sys-libs/uclibc/uclibc-0.9.28-r1.ebuild +++ b/sys-libs/uclibc/uclibc-0.9.28-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28-r1.ebuild,v 1.5 2006/12/02 23:24:07 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28-r1.ebuild,v 1.6 2007/01/07 10:58:27 vapier Exp $ #ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc" #inherit subversion @@ -64,6 +64,12 @@ just_headers() { use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] } +uclibc_endian() { + printf "#include <endian.h>\n#if __BYTE_ORDER == __LITTLE_ENDIAN\nlittle\n#else\nbig\n#endif\n" \ + | $(tc-getCPP) - \ + | tail -n 1 +} + pkg_setup() { just_headers && return 0 has_version ${CATEGORY}/uclibc || return 0 @@ -143,7 +149,7 @@ src_unpack() { einfo "CHOST: ${CHOST}" einfo "CTARGET: ${CTARGET}" einfo "CPU: ${UCLIBC_CPU:-default}" - einfo "ENDIAN: $(tc-endian)" + einfo "ENDIAN: $(uclibc_endian)" echo ########## PATCHES ########## @@ -196,7 +202,7 @@ src_unpack() { fi sed -i -e '/ARCH_.*_ENDIAN/d' .config - echo "ARCH_$(tc-endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config + echo "ARCH_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config if [[ ${CTARGET//_/-} == *-softfloat-* ]] ; then sed -i -e '/^HAS_FPU=y$/d' .config diff --git a/sys-libs/uclibc/uclibc-0.9.28.ebuild b/sys-libs/uclibc/uclibc-0.9.28.ebuild index 577ee7cddaba..2da83e9623ec 100644 --- a/sys-libs/uclibc/uclibc-0.9.28.ebuild +++ b/sys-libs/uclibc/uclibc-0.9.28.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28.ebuild,v 1.25 2006/09/29 23:50:00 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28.ebuild,v 1.26 2007/01/07 10:58:27 vapier Exp $ #ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc" #inherit subversion @@ -64,6 +64,12 @@ just_headers() { use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] } +uclibc_endian() { + printf "#include <endian.h>\n#if __BYTE_ORDER == __LITTLE_ENDIAN\nlittle\n#else\nbig\n#endif\n" \ + | $(tc-getCPP) - \ + | tail -n 1 +} + pkg_setup() { just_headers && return 0 has_version ${CATEGORY}/uclibc || return 0 @@ -143,7 +149,7 @@ src_unpack() { einfo "CHOST: ${CHOST}" einfo "CTARGET: ${CTARGET}" einfo "CPU: ${UCLIBC_CPU:-default}" - einfo "ENDIAN: $(tc-endian)" + einfo "ENDIAN: $(uclibc_endian)" echo ########## PATCHES ########## @@ -196,7 +202,7 @@ src_unpack() { fi sed -i -e '/ARCH_.*_ENDIAN/d' .config - echo "ARCH_$(tc-endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config + echo "ARCH_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config if [[ ${CTARGET//_/-} == *-softfloat-* ]] ; then sed -i -e '/^HAS_FPU=y$/d' .config |