sys-devel/nvptx-tools: new package, add 9999, add 0_pre20230122

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-03-21 21:24:07 +00:00
parent 52d54aa579
commit d52cacc4ee
5 changed files with 113 additions and 0 deletions

View File

@@ -612,3 +612,4 @@ www-plugins/chrome-binary-plugins:unstable
dev-util/mingw64-runtime
sys-libs/newlib
dev-embedded/avr-libc
sys-devel/nvptx-tools

View File

@@ -0,0 +1 @@
DIST nvptx-tools-0_pre20230122.tar.gz 789116 BLAKE2B f05b922827c0215a2484c4f91f3424ca866bb91435a3d60559fc9f1f63c06559377f1c8071c9e8e5607ec4dbff1c22d095385ac86d35f43ade29d9df6699f3ff SHA512 9d3bceef2ef7942ea6ec8b6c6b1b9144f0a020bfabc2583ba4ef73db8ef299ffadbc6dbe27748c728bd16aee0ecd6f0fbe1f8bb064bde986bb4e0475b2494870

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>toolchain@gentoo.org</email>
<name>Gentoo Toolchain Project</name>
</maintainer>
<upstream>
<remote-id type="github">MentorEmbedded/nvptx-tools</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2023 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/MentorEmbedded/nvptx-tools https://gcc.gnu.org/wiki/nvptx"
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/MentorEmbedded/nvptx-tools"
inherit git-r3
else
MY_COMMIT="93e00909ceb9cbbc104f0fcba56c0361ffb3ca4b"
SRC_URI="https://github.com/MentorEmbedded/nvptx-tools/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
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
}

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2023 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/MentorEmbedded/nvptx-tools https://gcc.gnu.org/wiki/nvptx"
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/MentorEmbedded/nvptx-tools"
inherit git-r3
else
MY_COMMIT="93e00909ceb9cbbc104f0fcba56c0361ffb3ca4b"
SRC_URI="https://github.com/MentorEmbedded/nvptx-tools/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
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
}