into ${cudadir}
# Install binaries separately to make sure the X permission is set
- local bindirs=( bin nvvm/bin extras/demo_suite )
+ local bindirs=( bin nvvm/bin extras/demo_suite $(usex profiler "libnsight/nsight") )
for i in $(find "${bindirs[@]}" -maxdepth 1 -type f); do
exeinto ${cudadir}/${i%/*}
doexe ${i}
rm ${i} || die
done
+ exeinto ${cudadir}/bin
+ doexe "${T}"/cuda-config
# Install the rest
insinto ${cudadir}
EOF
doenvd "${T}"/99cuda
- use profiler && \
- make_wrapper nvprof "${ecudadir}/bin/nvprof" "." "${ecudadir}/lib64:${ecudadir}/lib"
-
- dobin "${T}"/cuda-config
+ #Cuda prepackages libraries, don't revdep-build on them
+ echo "SEARCH_DIRS_MASK=\"${ecudadir}\"" > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
}
pkg_postinst_check() {
into ${cudadir}
# Install binaries separately to make sure the X permission is set
- local bindirs=( bin nvvm/bin extras/demo_suite )
+ local bindirs=( bin nvvm/bin extras/demo_suite $(usex profiler "libnsight/nsight") )
for i in $(find "${bindirs[@]}" -maxdepth 1 -type f); do
exeinto ${cudadir}/${i%/*}
doexe ${i}
rm ${i} || die
done
+ exeinto ${cudadir}/bin
+ doexe "${T}"/cuda-config
# Install the rest
insinto ${cudadir}
EOF
doenvd "${T}"/99cuda
- use profiler && \
- make_wrapper nvprof "${ecudadir}/bin/nvprof" "." "${ecudadir}/lib64:${ecudadir}/lib"
-
- dobin "${T}"/cuda-config
+ #Cuda prepackages libraries, don't revdep-build on them
+ echo "SEARCH_DIRS_MASK=\"${ecudadir}\"" > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
}
pkg_postinst_check() {
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
into ${cudadir}
# Install binaries separately to make sure the X permission is set
- local bindirs=( bin nvvm/bin extras/demo_suite )
+ local bindirs=( bin nvvm/bin extras/demo_suite $(usex profiler "libnsight/nsight") )
for i in $(find "${bindirs[@]}" -maxdepth 1 -type f); do
exeinto ${cudadir}/${i%/*}
doexe ${i}
rm ${i} || die
done
+ exeinto ${cudadir}/bin
+ doexe "${T}"/cuda-config
# Install the rest
insinto ${cudadir}
EOF
doenvd "${T}"/99cuda
- use profiler && \
- make_wrapper nvprof "${ecudadir}/bin/nvprof" "." "${ecudadir}/lib64:${ecudadir}/lib"
-
- dobin "${T}"/cuda-config
+ #Cuda prepackages libraries, don't revdep-build on them
+ echo "SEARCH_DIRS_MASK=\"${ecudadir}\"" > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
}
pkg_postinst_check() {
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
into ${cudadir}
# Install binaries separately to make sure the X permission is set
- local bindirs=( bin nvvm/bin extras/demo_suite )
+ local bindirs=( bin nvvm/bin extras/demo_suite $(usex profiler "libnsight/nsight") )
for i in $(find "${bindirs[@]}" -maxdepth 1 -type f); do
exeinto ${cudadir}/${i%/*}
doexe ${i}
rm ${i} || die
done
+ exeinto ${cudadir}/bin
+ doexe "${T}"/cuda-config
# Install the rest
insinto ${cudadir}
EOF
doenvd "${T}"/99cuda
- use profiler && \
- make_wrapper nvprof "${ecudadir}/bin/nvprof" "." "${ecudadir}/lib64:${ecudadir}/lib"
-
- dobin "${T}"/cuda-config
+ #Cuda prepackages libraries, don't revdep-build on them
+ echo "SEARCH_DIRS_MASK=\"${ecudadir}\"" > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
}
pkg_postinst_check() {