cryptohaze-combined: fix deps, move cuda-sdk to gentoo, add blood

This commit is contained in:
Zero_Chaos 2012-08-03 05:59:44 +00:00
parent 074da81375
commit 0c1c22530c
7 changed files with 6 additions and 193 deletions

View file

@ -1,3 +1,3 @@
DIST Cryptohaze-Src_1_31.tar.bz2 5536082 RMD160 ab68f3554c784e9bf8a3f4526b5272c3b5c80f44 SHA1 8357afabcbe02e0ee7b239fa3b1bc24b03d219a8 SHA256 7fe5b3207c66cb46f60ec439f6d5d4af3efa4a42f16657e72a3b187c214d1139
EBUILD cryptohaze-combined-1.31.ebuild 1610 RMD160 efd29d77a52ed08351b095b19401d149924734d9 SHA1 ff5c97ee61bed5e61a7775deeb16265074be9d33 SHA256 ccdbf36d1dbfb5d79d7eedfcfd8641050819a8eb2b29375f96b6b0a97651e54d
EBUILD cryptohaze-combined-9999.ebuild 1355 RMD160 8ebab0e1960440f1f182133fb36e150cddced978 SHA1 ed6ae1082b6c96f95f9a9ee96c0d831ff180e0ff SHA256 a5cf416bdaf6263dce889c0e9c03120ebce9c48705a22ad5a4e69bd85f7d326a
DIST Cryptohaze-Src_1_31.tar.bz2 5536082 SHA256 7fe5b3207c66cb46f60ec439f6d5d4af3efa4a42f16657e72a3b187c214d1139 SHA512 848333c81d953732f0cb73e6c917d3e16f6346e039924ddd49c7de728186a5d6960092ef1d5b78ecd66044c30ef10ff14202367f552f78eaf07392de9452d1eb WHIRLPOOL 4e800868f5a9b04521cfca335527643af5bc7ea203e9aa2f83188d963c230f75138b148aa81e8f0f43ff40af797c4200d5d91834380aa72ad5e8014ef9dacc91
EBUILD cryptohaze-combined-1.31.ebuild 1612 SHA256 fe4d0c5d4403372a013a01a7ba4390a99781f65bb9e1ec77c8a7085fe8a2c555 SHA512 ce4c0b624cc5a069d017176ceffd68fee473a4285001c8db79fc9fca4de22df9462b3f8b0a8b669f2777491f9915bc28f37b276a0f389c6f01df3bc351f4fa3a WHIRLPOOL ab5d5b07cd938b8077211457640349a610fc9b793750f75bc39e5e18679c973c5b37dc29d6cea86de0ed114ebaa134c79b469a44f8d7721b34dd9824d69de295
EBUILD cryptohaze-combined-9999.ebuild 1347 SHA256 0452c24fe541d219af25a2d20f62c2729f659d4f81d8d1130439de8c6426d387 SHA512 e9b0a3876ec8c597e858433c36a705699ecfa47a498fcbc2cd80a1fa2b65d45344ed15ff4635540fc0d473c4a84f8ccdd7e19ab3463220230140feb49dc2cc0c WHIRLPOOL af7dc701557a96793fef6236c3b7df371f8e86345b6c665ec5af59fcacea98823d0cd1b51904300686b660ac664acb210497fe349da6e5a60f2c7382c95c0747

View file

@ -14,7 +14,7 @@ IUSE="+grt +multiforcer"
DEPEND="dev-libs/argtable
net-misc/curl
dev-libs/protobuf
dev-util/nvidia-cuda-sdk[pentoo]
dev-util/nvidia-cuda-sdk[examples]
>=dev-libs/boost-1.47.0"
RDEPEND="${DEPEND}"

View file

@ -16,7 +16,7 @@ IUSE=""
DEPEND="dev-libs/argtable
net-misc/curl
dev-libs/protobuf
dev-util/nvidia-cuda-sdk[pentoo]
dev-util/nvidia-cuda-sdk
>=dev-libs/boost-1.48.0"
RDEPEND="${DEPEND}"

View file

@ -1,4 +0,0 @@
DIST gpucomputingsdk_4.1.28_linux.run 155378846 RMD160 e2ddaec1f75d6620013ad8f076436f171d25df45 SHA1 3f533bf68fd72dd915c0f7cb115992a4dca67eb1 SHA256 1d6c6b6b25ae70d7a725cb89a06644b7101a63c1508bce69daacd32b32b0f6f9
DIST gpucomputingsdk_4.2.9_linux.run 152436489 RMD160 7b0cbe3565d0abbb29bdd3d1f5fe49c273d46f4f SHA1 ba39a23a43dca4a64f07c7bfe574e9c3398abd83 SHA256 b6a53afcf8f8422b5075aa37cec6730b0b9896d50867ee9105da05d62e95b8bb
EBUILD nvidia-cuda-sdk-4.1.ebuild 1981 RMD160 8501b809e20ed8650c77fd3f4e3fae99f22b09cb SHA1 d9bd1c551efa19fdcf17b6f16c44b2cdca77d502 SHA256 2f471042c79f9287c21f98a3783ea76c1715277ad49d1622ca2d95c33e44560a
EBUILD nvidia-cuda-sdk-4.2.ebuild 1982 RMD160 5b6b2c0f972ac94606b08365e48554a4468fce6e SHA1 dfae2ad6e53585836c64291302964105d8d89db2 SHA256 bc32cdb650ee8558fa9b95bf356767e13b9290d3ec1512970e3cabcd6ed26c1a

View file

@ -1,92 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.1.ebuild,v 1.3 2012/02/05 16:39:02 spock Exp $
EAPI=2
inherit unpacker toolchain-funcs
DESCRIPTION="NVIDIA CUDA Software Development Kit"
HOMEPAGE="http://developer.nvidia.com/cuda"
CUDA_V=${PV//_/-}
DIR_V=${CUDA_V//./_}
DIR_V=${DIR_V//beta/Beta}
SRC_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}/rel/sdk/gpucomputingsdk_${CUDA_V}.28_linux.run"
LICENSE="CUDPP"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug +doc +examples opencl pentoo +cuda"
RDEPEND=">=dev-util/nvidia-cuda-toolkit-4.1
examples? ( >=x11-drivers/nvidia-drivers-260.19.21 )
media-libs/freeglut"
DEPEND="${RDEPEND}"
S="${WORKDIR}"
RESTRICT="binchecks"
pkg_setup() {
if use cuda || use opencl && [ $(gcc-major-version) -lt 4 -o $(gcc-minor-version) -lt 5 ]; then
eerror "This package requires >=sys-devel/gcc-4.5 to build sucessfully."
eerror "Please use gcc-config to switch to a compatible GCC version."
die ">=sys-devel/gcc-4.4 required"
fi
echo $(gcc-major-version) $(gcc-minor-version)
}
src_compile() {
if ! use examples && ! use pentoo ; then
return
fi
local myopts=""
if use debug; then
myopts="${myopts} dbg=1"
fi
cd "${S}/sdk"
if use cuda; then
cd C
emake -j1 cuda-install=/opt/cuda ${myopts} || die
cd ..
fi
if use opencl; then
cd OpenCL
emake -j1 || die
cd ..
fi
}
src_install() {
cd "${S}/sdk"
if ! use doc; then
rm -rf *.txt doc */doc */Samples.htm */releaseNotesData
fi
if ! use examples; then
rm -rf bin */bin */tools
fi
for f in $(find .); do
local t="$(dirname ${f})"
if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then
continue
fi
if [[ ! -d "${f}" ]]; then
if [[ -x "${f}" ]]; then
exeinto "/opt/cuda/sdk/${t}"
doexe "${f}"
else
insinto "/opt/cuda/sdk/${t}"
doins "${f}"
fi
fi
done
}

View file

@ -1,92 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.1.ebuild,v 1.3 2012/02/05 16:39:02 spock Exp $
EAPI=2
inherit unpacker toolchain-funcs
DESCRIPTION="NVIDIA CUDA Software Development Kit"
HOMEPAGE="http://developer.nvidia.com/cuda"
CUDA_V=${PV//_/-}
DIR_V=${CUDA_V//./_}
DIR_V=${DIR_V//beta/Beta}
SRC_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}/rel/sdk/gpucomputingsdk_${CUDA_V}.9_linux.run"
LICENSE="CUDPP"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug +doc +examples opencl pentoo +cuda"
RDEPEND=">=dev-util/nvidia-cuda-toolkit-${PV}
examples? ( >=x11-drivers/nvidia-drivers-260.19.21 )
media-libs/freeglut"
DEPEND="${RDEPEND}"
S="${WORKDIR}"
RESTRICT="binchecks"
pkg_setup() {
if use cuda || use opencl && [ $(gcc-major-version) -lt 4 -o $(gcc-minor-version) -lt 5 ]; then
eerror "This package requires >=sys-devel/gcc-4.5 to build sucessfully."
eerror "Please use gcc-config to switch to a compatible GCC version."
die ">=sys-devel/gcc-4.4 required"
fi
echo $(gcc-major-version) $(gcc-minor-version)
}
src_compile() {
if ! use examples && ! use pentoo ; then
return
fi
local myopts=""
if use debug; then
myopts="${myopts} dbg=1"
fi
cd "${S}/sdk"
if use cuda; then
cd C
emake -j1 cuda-install=/opt/cuda ${myopts} || die
cd ..
fi
if use opencl; then
cd OpenCL
emake -j1 || die
cd ..
fi
}
src_install() {
cd "${S}/sdk"
if ! use doc; then
rm -rf *.txt doc */doc */Samples.htm */releaseNotesData
fi
if ! use examples; then
rm -rf bin */bin */tools
fi
for f in $(find .); do
local t="$(dirname ${f})"
if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then
continue
fi
if [[ ! -d "${f}" ]]; then
if [[ -x "${f}" ]]; then
exeinto "/opt/cuda/sdk/${t}"
doexe "${f}"
else
insinto "/opt/cuda/sdk/${t}"
doins "${f}"
fi
fi
done
}

View file

@ -0,0 +1 @@
app-crypt/cryptohaze-combined **