diff --git a/sys-devel/nvptx-tools/Manifest b/sys-devel/nvptx-tools/Manifest index 818fa1f044217..66e5b53cef781 100644 --- a/sys-devel/nvptx-tools/Manifest +++ b/sys-devel/nvptx-tools/Manifest @@ -1,2 +1,3 @@ DIST nvptx-tools-0_pre20240809.tar.gz 994915 BLAKE2B eef94a55d4ec48fb3031e20d5722e4f0564e7ed5ddc217a0b88d15236d9c15bbd60d14ab537e3535c40e800d75578c21833c6f414bdf11f0fed6f7eb3721478a SHA512 b98ee6f045ec820d056ce7cf4af4d3dcabdd0e77d15f02a88dd3e7f60de6ec32ecb454787f1ef626e358cde7744c5635f8d2e8ff78b46a714f627a37ac256ddb DIST nvptx-tools-0_pre20260402.tar.gz 1005862 BLAKE2B f2b458f2546b5a5faeafce33207d2f4d72a0dedc153f1f5fa0796d594fc054cec1e861af3fdb988d9eaa9f5c58ceb9de50c485bf619c021f72c15a46ed03175e SHA512 6f475200cab4d9858457b334f07f5e525e5a84eb02421eea6fa714efe5c58fd3f1ad7d7d0b8ad4797a3ab84ff4ed5ca08ea1c149ad63e38aec7648e78f91c170 +DIST nvptx-tools-0_pre20261017.tar.gz 1029414 BLAKE2B efaa431f8f442d1c20cf296265f725d0927f8a3c2939e066f8fab4c9df4a01795d6d089472713ce2235cd6423a589ba28e044cf91fec4b352af07052178fe583 SHA512 9be43f019ebed85272df8042136738bb2fa731847f871ae7978f51dd36c56e6451665f9e06cb139a8b7fac4483129ae74087fc8b7c7a54f66b8729ec2d0a3e85 diff --git a/sys-devel/nvptx-tools/nvptx-tools-0_pre20261017.ebuild b/sys-devel/nvptx-tools/nvptx-tools-0_pre20261017.ebuild new file mode 100644 index 0000000000000..cb3f98a510143 --- /dev/null +++ b/sys-devel/nvptx-tools/nvptx-tools-0_pre20261017.ebuild @@ -0,0 +1,52 @@ +# Copyright 2023-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Collection of tools for use with nvptx-none GCC toolchains" +HOMEPAGE="https://github.com/SourceryTools/nvptx-tools https://gcc.gnu.org/wiki/nvptx https://gcc.gnu.org/wiki/Offloading" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/SourceryTools/nvptx-tools" + inherit git-r3 +else + MY_COMMIT="58ccfa5783d59315d49c60fd9b7f076611b4e6ae" + SRC_URI="https://github.com/SourceryTools/nvptx-tools/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}"/${PN}-${MY_COMMIT} + + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +BDEPEND=" + test? ( + dev-python/lit + dev-util/dejagnu + ) +" + +is_crosscompile() { + [[ ${CHOST} != ${CTARGET} ]] +} + +pkg_setup() { + # Reject newlib-on-glibc type installs + if [[ ${CTARGET} == ${CHOST} ]] ; then + case ${CHOST} in + *-newlib|nvptx-*) ;; + *) die "Use sys-devel/crossdev to build a nvptx(-none) toolchain" ;; + esac + fi +} diff --git a/sys-devel/nvptx-tools/nvptx-tools-9999.ebuild b/sys-devel/nvptx-tools/nvptx-tools-9999.ebuild index b6308a59af98f..cb3f98a510143 100644 --- a/sys-devel/nvptx-tools/nvptx-tools-9999.ebuild +++ b/sys-devel/nvptx-tools/nvptx-tools-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Gentoo Authors +# Copyright 2023-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -10,7 +10,7 @@ if [[ ${PV} == 9999 ]] ; then EGIT_REPO_URI="https://github.com/SourceryTools/nvptx-tools" inherit git-r3 else - MY_COMMIT="a0c1fff6534a4df9fb17937c3c4a4b1071212029" + MY_COMMIT="58ccfa5783d59315d49c60fd9b7f076611b4e6ae" SRC_URI="https://github.com/SourceryTools/nvptx-tools/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}"/${PN}-${MY_COMMIT}