mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 22:30:59 +02:00
cryptohaze-combined: EAPI bump, fix repo.eapi-banned
This commit is contained in:
parent
456c533e84
commit
68952890c6
4 changed files with 33 additions and 104 deletions
|
|
@ -1 +1 @@
|
|||
DIST Cryptohaze-Src_1_31.tar.bz2 5536082 SHA256 7fe5b3207c66cb46f60ec439f6d5d4af3efa4a42f16657e72a3b187c214d1139 SHA512 848333c81d953732f0cb73e6c917d3e16f6346e039924ddd49c7de728186a5d6960092ef1d5b78ecd66044c30ef10ff14202367f552f78eaf07392de9452d1eb WHIRLPOOL 4e800868f5a9b04521cfca335527643af5bc7ea203e9aa2f83188d963c230f75138b148aa81e8f0f43ff40af797c4200d5d91834380aa72ad5e8014ef9dacc91
|
||||
DIST Cryptohaze-Src_1_31.tar.bz2 5536082 BLAKE2B b7d0be2299db20b4f4abac116d4e17c3d23b4d175fc13c1025ce21de47420f30a4c2ebba8289f8cea7e533a1f0b4577f6c27a52f9eaf0a3931167e74c2bee4cb SHA512 848333c81d953732f0cb73e6c917d3e16f6346e039924ddd49c7de728186a5d6960092ef1d5b78ecd66044c30ef10ff14202367f552f78eaf07392de9452d1eb
|
||||
|
|
|
|||
|
|
@ -1,42 +1,38 @@
|
|||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=4
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="GPU and OpenCL accelerated password auditing tools for security professionals"
|
||||
HOMEPAGE="http://www.cryptohaze.com/"
|
||||
|
||||
MY_PV="${PV/\./_}"
|
||||
SRC_URI="mirror://sourceforge/cryptohaze/Cryptohaze-Src_${MY_PV}.tar.bz2"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+grt +multiforcer"
|
||||
|
||||
DEPEND="dev-libs/argtable
|
||||
net-misc/curl
|
||||
DEPEND="
|
||||
dev-libs/argtable
|
||||
dev-libs/boost:=
|
||||
dev-libs/protobuf
|
||||
dev-util/nvidia-cuda-sdk[examples]
|
||||
>=dev-libs/boost-1.47.0"
|
||||
dev-util/nvidia-cuda-sdk[examples(+)]
|
||||
net-misc/curl"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit subversion
|
||||
KEYWORDS="-*"
|
||||
# ESVN_REPO_URI="https://cryptohaze.svn.sourceforge.net/svnroot/cryptohaze/Cryptohaze-Combined"
|
||||
ESVN_REPO_URI="https://svn.code.sf.net/p/cryptohaze/code/Cryptohaze-Combined"
|
||||
else
|
||||
KEYWORDS="amd64 x86"
|
||||
MY_PV=${PV/\./_}
|
||||
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
|
||||
S="${WORKDIR}/Cryptohaze-Combined"
|
||||
|
||||
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
|
||||
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
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
|||
|
|
@ -1,79 +0,0 @@
|
|||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cuda cmake-utils pax-utils
|
||||
|
||||
DESCRIPTION="GPU and OpenCL accelerated password auditing tools for security professionals"
|
||||
HOMEPAGE="http://www.cryptohaze.com/"
|
||||
|
||||
REQUIRED_USE="|| ( video_cards_nvidia video_cards_fglrx )"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
IUSE_VIDEO_CARDS="video_cards_fglrx video_cards_nvidia"
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS} pax_kernel"
|
||||
|
||||
DEPEND="dev-libs/argtable
|
||||
net-misc/curl
|
||||
dev-libs/protobuf
|
||||
dev-util/nvidia-cuda-sdk
|
||||
>=dev-util/nvidia-cuda-toolkit-5.5.22
|
||||
>=dev-libs/boost-1.48.0:=
|
||||
video_cards_nvidia? ( x11-drivers/nvidia-drivers )
|
||||
video_cards_fglrx? ( x11-drivers/ati-drivers )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit subversion
|
||||
KEYWORDS=""
|
||||
# ESVN_REPO_URI="https://cryptohaze.svn.sourceforge.net/svnroot/cryptohaze/Cryptohaze-Combined"
|
||||
ESVN_REPO_URI="https://svn.code.sf.net/p/cryptohaze/code/Cryptohaze-Combined"
|
||||
else
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
MY_PV=${PV/\./_}
|
||||
SRC_URI="mirror://sourceforge/cryptohaze/Cryptohaze-Src_${MY_PV}.tar.bz2"
|
||||
fi
|
||||
|
||||
S="${WORKDIR}"/Cryptohaze-Combined
|
||||
|
||||
src_prepare() {
|
||||
cuda_src_prepare
|
||||
export CUDA_NVCC_FLAGS="${NVCCFLAGS}"
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCUDA_SDK_ROOT_DIR:OPTION=/opt/cuda/sdk/C
|
||||
-DBoost_USE_STATIC_LIBS:BOOL=OFF
|
||||
-DCMAKE_INSTALL_PREFIX=/usr/share/${PN}
|
||||
-DCUDA_NVCC_FLAGS="${NVCCFLAGS}"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
pax-mark mr "${ED}"/usr/share/cryptohaze-combined/Cryptohaze-Multiforcer
|
||||
|
||||
dodir /usr/bin
|
||||
for i in $(ls -1 "${ED}/usr/share/${PN}")
|
||||
do
|
||||
if [ -f "${ED}/usr/share/${PN}/"${i} ]
|
||||
then
|
||||
cat <<-EOF > "${ED}"/usr/bin/${i}
|
||||
#! /bin/sh
|
||||
cd /usr/share/${PN}
|
||||
echo "Warning: running from /usr/share/${PN} so be careful of relative paths."
|
||||
exec ./${i} "\$@"
|
||||
EOF
|
||||
|
||||
fperms +x /usr/bin/${i}
|
||||
fi
|
||||
done
|
||||
}
|
||||
12
app-crypt/cryptohaze-combined/metadata.xml
Normal file
12
app-crypt/cryptohaze-combined/metadata.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="grt">Build GRT utilities</flag>
|
||||
<flag name="multiforcer">Enable multiforcer build stuff</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Loading…
Reference in a new issue