sys-devel/binutils-apple-8.2.1-r103: drop CMake based ebuild

For CMake upgrade we can no longer use this ebuild.  Its use has been
minimal, for arm64 cannot use it anyway (and x64 being more or less
legacy).  Retain 3.2.6 as "true" ld64 for 10.5 PPC targets.

Closes: https://bugs.gentoo.org/963592
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This commit is contained in:
Fabian Groffen
2025-10-01 09:21:37 +02:00
parent 965d65f247
commit d6e1e340ce
2 changed files with 0 additions and 131 deletions

View File

@@ -1,6 +1,5 @@
DIST binutils-apple-patches-3.2.6-r0.tar.bz2 3500 BLAKE2B f10dcf71400ea5d4bf7efb8ad906240765cfb56743274b3e1684eeb4273a35171aa4202d475920cff2c5c39e89f9bd1d7e5b0d38ba6c2b4705b0a592ba47e063 SHA512 4ccb8ebd49ac8eac4dbd0c1f24ee1836f216efd2e9e15b13072cbc76d8f83fbf4f1f6b3b60736bf5d5482af3e49ec1eaedfce8dd0ce1e949f915faf9c92ee0ea
DIST cctools-795.tar.gz 1993795 BLAKE2B dc0915f8647eecba5352e34dfc5752b679df39ead9a4734c49955a824d2cc127308eed46a614665dfe08a9d3036eb37f587e1b765a7df727facc42a33befacb0 SHA512 5a34a73dc71d3574a357f6b0f26a48a99dd0995d62695b309cdfe85c4960934b410455b1ba6bdbc9a4e32106bb45b35555604975d2a80ad1be21f5d4eac69254
DIST darwin-xtools-8.2.1-r103.tar.gz 3106189 BLAKE2B f13e77f796eefc393389206d5663c98d55c3fe0eb5123b366155e7c993cea421a039121d705cab2aa5fcdab2ef08d2b17dd5b9d6e0b2c50c97db067b0ec10283 SHA512 241f402ac368606eb9b89421a3e0a2ebbde1ea79d6e84cc55680a7f3dbc31dfa402ee7b20f605627c1bfd9097bbe824dea466339a7ff9026810911ef70940bda
DIST dyld-132.13.tar.gz 342690 BLAKE2B 011418ba5b91a28bb7c5f8188af2fac5478bad53581396b7c1c4623a854a8f0d5ecb92d023246157830ed2db83bbf28e23225a255188e2d07eeb6c933814bda6 SHA512 2c9d50fc32868b696d88730eb6ea6afa9bb9f56883cc2ea4f1d41f370f311b7487a29ce0eff6761e1eeb086a18e2513953989d8d5d3ef1043bb662e86baadd3f
DIST ld64-97.17.tar.gz 421947 BLAKE2B 56820ef28490f2e0181d6e36b87506c6f00ae5759afe304a063fb6bd1904ace566ef4aa69ff0d235d65968af547a1a5735cb23bcefa990f418740188d399b637 SHA512 841774a1a7c0e2f661ac7e66703f7578d8f11274897ffa15f8c49daf290a23465763f264a4dae99f15754891f44c425c0d327652112007b499bc8f755a7fc9d6
DIST libunwind-30.tar.gz 82811 BLAKE2B 26993d6afa6930931c01b579326964a66832ed7a6ffa26eff10016c8d6d175d3b671753cf8700dcdbae7f0a9c01b16e9cbd3c9fe86697608f1f08a8eceb64782 SHA512 57106eafa1516791b4e0db2de6c6336bc0c1cbd8bf098a6d3a809fafa457802c95a7aeae9137f4ca5922a3018dfd8f597907ea4187b0afbbf267500eae00041f

View File

@@ -1,130 +0,0 @@
# Copyright 2020-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CMAKE_MAKEFILE_GENERATOR=emake # keep dependencies down
inherit cmake
DESCRIPTION="Darwin Xtools matching Xcode Tools ${PN}"
HOMEPAGE="https://github.com/iains/darwin-xtools"
SRC_URI="https://github.com/grobian/darwin-xtools/archive/gentoo-${PVR}.tar.gz -> darwin-xtools-${PVR}.tar.gz"
LICENSE="APSL-2"
SLOT="8"
KEYWORDS="~arm64-macos ~ppc-macos ~x64-macos"
# xtools uses c++11 features, not available in gcc-apple, hence gcc/clang dep
DEPEND="sys-devel/binutils-config
|| ( sys-devel/gcc:* llvm-core/clang:* )
app-arch/xar
dev-libs/libyaml"
RDEPEND="${DEPEND}"
BDEPEND=""
S="${WORKDIR}/darwin-xtools-gentoo-${PVR}"
src_prepare() {
cmake_src_prepare
# kill forced libstd=libc++ usage, breaks with GCC-13 which has
# preliminary support for that
# check_cxx_compiler_flag(-stdlib=libc++ # XTOOLS_CXX_HAS_STDLIB_FLAG)
#
sed -i -e '/check_cxx_compiler_flag/s/XTOOLS_CXX_HAS_STDLIB_FLAG/NO_&/' \
cmake/config-ix.cmake || die
}
src_configure() {
CTARGET=${CTARGET:-${CHOST}}
if [[ ${CTARGET} == ${CHOST} ]] ; then
if [[ ${CATEGORY} == cross-* ]] ; then
export CTARGET=${CATEGORY#cross-}
fi
fi
LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/xtools-${PV}
DATAPATH=/usr/share/binutils-data/${CTARGET}/xtools-${PV}
if [[ ${CHOST} != ${CTARGET} ]] ; then
BINPATH=/usr/${CHOST}/${CTARGET}/binutils-bin/xtools-${PV}
else
BINPATH=/usr/${CTARGET}/binutils-bin/xtools-${PV}
fi
is-host-64bit() {
case ${CTARGET} in
x86_64-*|powerpc64-*|arm64-*) echo YES ;;
*) echo NO ;;
esac
}
local mycmakeargs=(
-DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET}
-DPACKAGE_VERSION="Gentoo ${PN}-${PVR}"
-DCMAKE_INSTALL_PREFIX="${EPREFIX}${BINPATH%/*}" # cmake insists on /bin
-DCCTOOLS_LD_CLASSIC=NO # fails to link, and is useless anyway
-DXTOOLS_AS_USE_CLANG=YES # default to host as for unsupported targets
-DXTOOLS_AS_CLANG_USE_HOST=YES # search for arch/as-host iso clang
-DXTOOLS_AS_SUBDIR="${EPREFIX}${LIBPATH}/"
-DXTOOLS_LTO_SUPPORT=NO
-DXTOOLS_HAS_LIBPRUNETRIE=YES
-DXTOOLS_TAPI_SUPPORT=ON
-DXTOOLS_USE_TAPILITE=ON
-DXTOOLS_HOST_IS_64B=$(is-host-64bit)
-DXTOOLS_BUGURL="https://bugs.gentoo.org/"
)
cmake_src_configure
}
src_install() {
cmake_src_install
# cmake insists on installing in /bin, so move bins to the place we
# want them
mv "${ED}${BINPATH%/*}/bin" "${ED}${BINPATH}" || die
# move as impls into LIBPATH, such that binutils-config doesn't
# create links for this
dodir "${LIBPATH}"
local as
for as in "${ED}${BINPATH}"/*/as ; do
as=${as%/as}
mv "${as}" "${ED}${LIBPATH}"/ || die
done
# provide as-host wrappers, used on "unsupported" platforms: x86,
# x64, arm, arm64, the main reason here is missing support for
# instructions, e.g. the as works fine, until newer instruction sets
# are used like SSE4.1, AVX, etc.
local arch
for arch in i386 x86_64 arm arm64 ; do
mkdir -p "${ED}${LIBPATH}"/${arch}
as="${ED}${LIBPATH}"/${arch}/as-host
rm -f "${as}"
cat <<-EOF > "${as}"
#!/usr/bin/env bash
exec /usr/bin/as "\$@"
EOF
chmod 755 "${as}"
done
doman ld64/doc/man/man*/* cctools/man/*.[135]
dodir "${DATAPATH}"
mv "${ED}"/usr/share/man "${ED}/${DATAPATH}/" || die
docompress "${DATAPATH}"/man
cd "${S}"
insinto /etc/env.d/binutils
cat <<-EOF > env.d
TARGET="${CHOST}"
VER="xtools-${PV}"
FAKE_TARGETS="${CHOST}"
EOF
newins env.d ${CHOST}-xtools-${PV}
}
pkg_postinst() {
binutils-config ${CHOST}-xtools-${PV}
}