From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B7E6E1381F3 for ; Thu, 29 Nov 2012 07:03:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B4A6821C004; Thu, 29 Nov 2012 07:03:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 23FCA21C02E for ; Thu, 29 Nov 2012 07:03:22 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2C89C33DA98 for ; Thu, 29 Nov 2012 07:03:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 94FB1E5446 for ; Thu, 29 Nov 2012 07:03:19 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1354100056.366a690925f5cc5e4bdd2ea984d9ccca65d8f996.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: eclass/ X-VCS-Repository: proj/sci X-VCS-Files: eclass/cuda.eclass X-VCS-Directories: eclass/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 366a690925f5cc5e4bdd2ea984d9ccca65d8f996 X-VCS-Branch: master Date: Thu, 29 Nov 2012 07:03:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 23e2b113-54e5-417b-8f55-19d8b81420f0 X-Archives-Hash: 0379cfafc6dd5e22cc5643daa702453c commit: 366a690925f5cc5e4bdd2ea984d9ccca65d8f996 Author: Justin Lecher gentoo org> AuthorDate: Wed Nov 28 10:54:16 2012 +0000 Commit: Justin Lecher gentoo org> CommitDate: Wed Nov 28 10:54:16 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=366a6909 Be bin package friendly Move standard call of cuda_sanitize to src_prepapere as it isn't need for bin packages. Signed-off-by: Justin Lecher gentoo.org> --- eclass/cuda.eclass | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass index 08cfb72..beac082 100644 --- a/eclass/cuda.eclass +++ b/eclass/cuda.eclass @@ -110,13 +110,23 @@ cuda_sanitize() { # @FUNCTION: cuda_pkg_setup # @DESCRIPTION: -# Sanitise and export NVCCFLAGS by default +# Call cuda_src_prepare for EAPIs not supporting src_prepare cuda_pkg_setup() { + cuda_src_prepare +} + +# @FUNCTION: cuda_src_prepare +# @DESCRIPTION: +# Sanitise and export NVCCFLAGS by default +cuda_src_prepare() { cuda_sanitize } -EXPORT_FUNCTIONS pkg_setup + case "${EAPI:-0}" in - 0|1|2|3|4|5) ;; + 0|1) + EXPORT_FUNCTIONS pkg_setup ;; + 2|3|4|5) + EXPORT_FUNCTIONS src_prepare ;; *) die "EAPI=${EAPI} is not supported" ;; esac