forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eclass: standardize prologue/epilogue
Closes: gentoo#30061 Signed-off-by: David Seifert <[email protected]>
- Loading branch information
1 parent
b5240fb
commit 2cba2db
Showing
68 changed files
with
382 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,6 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
case "${EAPI:-0}" in | ||
[0-6]) | ||
die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" | ||
;; | ||
7|8) | ||
;; | ||
*) | ||
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" | ||
;; | ||
esac | ||
|
||
# @ECLASS: cuda.eclass | ||
# @MAINTAINER: | ||
# Gentoo Science Project <[email protected]> | ||
|
@@ -25,10 +14,15 @@ esac | |
# @EXAMPLE: | ||
# inherit cuda | ||
|
||
case ${EAPI} in | ||
7|8) ;; | ||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; | ||
esac | ||
|
||
if [[ -z ${_CUDA_ECLASS} ]]; then | ||
_CUDA_ECLASS=1 | ||
|
||
inherit flag-o-matic toolchain-funcs | ||
[[ ${EAPI} == [56] ]] && inherit eapi7-ver | ||
|
||
# @ECLASS_VARIABLE: NVCCFLAGS | ||
# @DESCRIPTION: | ||
|
@@ -195,7 +189,6 @@ cuda_src_prepare() { | |
cuda_sanitize | ||
} | ||
|
||
EXPORT_FUNCTIONS src_prepare | ||
|
||
_CUDA_ECLASS=1 | ||
fi | ||
|
||
EXPORT_FUNCTIONS src_prepare |
Oops, something went wrong.