diff options
Diffstat (limited to 'sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r3.ebuild')
-rw-r--r-- | sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r3.ebuild | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r3.ebuild b/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r3.ebuild index c144abe8aca5..0a8cb2421474 100644 --- a/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r3.ebuild +++ b/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r3.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="7" -inherit toolchain flag-o-matic autotools prefix toolchain-funcs +inherit flag-o-matic autotools prefix toolchain-funcs GCC_VERS=${PV/_p*/} APPLE_VERS="${PV/*_p/}.3" @@ -32,7 +32,7 @@ RDEPEND=">=sys-libs/zlib-1.1.4 )" DEPEND="${RDEPEND} >=sys-apps/texinfo-4.2-r4 - >=sys-devel/bison-1.875 + app-alternatives/yacc ${CATEGORY}/binutils-apple >=dev-libs/mpfr-2.2.0_p10" PDEPEND="sys-libs/csu" @@ -42,6 +42,17 @@ S=${WORKDIR}/gcc-${APPLE_VERS} # TPREFIX is the prefix of the CTARGET installation export TPREFIX=${TPREFIX:-${EPREFIX}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} = ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +is_crosscompile() { + [[ ${CHOST} != ${CTARGET} ]] +} + do_bootstrap() { is_crosscompile && return 1 [[ ${CHOST} != ${CBUILD} ]] && return 1 @@ -301,6 +312,8 @@ src_install() { echo "STDCXX_INCDIR=\"g++-v${GCC_VERS/\.*/}\"" >> ${gcc_envd_file} is_crosscompile && echo "CTARGET=${CTARGET}" >> ${gcc_envd_file} + docompress /usr/share/gcc-data/${CTARGET}/${GCC_VERS}/{man,info} + # Move <cxxabi.h> to compiler-specific directories [[ -f ${D}${STDCXX_INCDIR}/cxxabi.h ]] && \ mv -f "${D}"${STDCXX_INCDIR}/cxxabi.h "${D}"${LIBPATH}/include/ |