mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 22:30:59 +02:00
cryptohaze-combined: working new build system incorrectly, next step, properly
This commit is contained in:
parent
2c0fba2e3c
commit
4577e04837
2 changed files with 15 additions and 11 deletions
|
|
@ -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 1612 RMD160 79365a5c47f888e176d808171e5aa7a77f03dcde SHA1 3a1b0700452ba29ae7586d560f157af7a36b0145 SHA256 bee6cf9a6aad89e68f17fa8bb11d455fb77a05f83db3bc65915623378a82a415
|
||||
EBUILD cryptohaze-combined-9999.ebuild 1503 RMD160 bd0d6284c4a0ca7b13772c2a5e96c139e408a5d5 SHA1 993957fc4b1b7c6307c16c0e274046a8e136a01f SHA256 c0c68cb502a0ef4de945ab6607c145f0143f1453f8dff634dd4214054d48756f
|
||||
|
|
|
|||
|
|
@ -15,12 +15,12 @@ DEPEND="dev-libs/argtable
|
|||
net-misc/curl
|
||||
dev-libs/protobuf
|
||||
dev-util/nvidia-cuda-sdk[pentoo]
|
||||
>=dev-libs/boost-1.47.0"
|
||||
>=dev-libs/boost-1.48.0"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit subversion
|
||||
KEYWORDS="-*"
|
||||
KEYWORDS=""
|
||||
ESVN_REPO_URI="https://cryptohaze.svn.sourceforge.net/svnroot/cryptohaze/Cryptohaze-Combined"
|
||||
else
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
|
@ -28,23 +28,27 @@ else
|
|||
SRC_URI="mirror://sourceforge/cryptohaze/Cryptohaze-Src_${MY_PV}.tar.bz2"
|
||||
fi
|
||||
|
||||
#required for new cmake build system which seems broken and unusable
|
||||
#export NVSDKCUDA_ROOT=/opt/cuda/sdk/C
|
||||
|
||||
S="${WORKDIR}"/Cryptohaze-Combined
|
||||
|
||||
src_configure() {
|
||||
cd build || die
|
||||
cmake ../ -DCUDA_SDK_ROOT_DIR:OPTION=/opt/cuda/sdk/C -DBoost_USE_STATIC_LIBS:BOOL=OFF || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use grt && emake -j1 CUDA_INSTALL_PATH=/opt/cuda CUDA_SDK_INSTALL_PATH=/opt/cuda/sdk grt
|
||||
use multiforcer && emake -j1 CUDA_INSTALL_PATH=/opt/cuda CUDA_SDK_INSTALL_PATH=/opt/cuda/sdk multiforcer
|
||||
cd build || die
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd build || die
|
||||
emake install
|
||||
dodir /opt/${PN}
|
||||
cp -R "${S}"/binaries/* "${ED}"/opt/${PN}
|
||||
cp -R "${S}"/build/bin/* "${ED}"/opt/${PN}
|
||||
dodir /usr/bin
|
||||
for i in $(ls -1 /opt/${PN})
|
||||
for i in $(ls -1 ${ED}/opt/${PN})
|
||||
do
|
||||
if [ "${i}" != "kernels" ]
|
||||
if [ -f ${ED}/opt/${PN}/${i} ]
|
||||
then
|
||||
echo '#! /bin/sh' > "${ED}"/usr/bin/${i}
|
||||
echo "cd /opt/${PN}" >> "${ED}"/usr/bin/${i}
|
||||
|
|
|
|||
Loading…
Reference in a new issue