diff options
author | Justin Lecher <jlec@gentoo.org> | 2013-11-26 09:28:45 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2013-11-26 09:28:45 +0000 |
commit | ff7dc11ecd2f32f35699cbeb0c84615fa4d15398 (patch) | |
tree | 1e07803c07821992f80253a01096728555e0f6cf /dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r3.ebuild | |
parent | nova-2013.2; delete white space & fix, revbump; add IUSE test, test deps, tes... (diff) | |
download | historical-ff7dc11ecd2f32f35699cbeb0c84615fa4d15398.tar.gz historical-ff7dc11ecd2f32f35699cbeb0c84615fa4d15398.tar.bz2 historical-ff7dc11ecd2f32f35699cbeb0c84615fa4d15398.zip |
dev-util/nvidia-cuda-toolkit: Use MERGE_TYPE wrap for postinst check, thanks lxnay pointing this out
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0xB9D4F231BD1558AB!
Diffstat (limited to 'dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r3.ebuild')
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r3.ebuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r3.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r3.ebuild index 3871d1692d2f..a0d6ebd05d1a 100644 --- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r3.ebuild +++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r3.ebuild,v 1.2 2013/08/11 12:16:42 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r3.ebuild,v 1.3 2013/11/26 09:28:44 jlec Exp $ EAPI=5 @@ -104,7 +104,7 @@ src_install() { dobin "${T}"/cuda-config } -pkg_postinst() { +pkg_postinst_check() { local a b a="$(version_sort $(cuda-config -s))"; a=( $a ) # greatest supported version @@ -122,3 +122,9 @@ pkg_postinst() { echo fi } + +pkg_postinst() { + if [[ ${MERGE_TYPE} != binary ]]; then + pkg_postinst_check + fi +} |