| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-crypt/hashcat-gui/hashcat-gui-0.5.1.ebuild,v 1.4 2012/07/27 18:21:33 kensington Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
inherit qt4-r2 |
| 8 |
|
| 9 |
DESCRIPTION="A gui for the *hashcat* suite of tools" |
| 10 |
HOMEPAGE="https://github.com/scandium/hashcat-gui" |
| 11 |
|
| 12 |
SRC_URI="mirror://github/scandium/hashcat-gui/zipball/b6b01be723742ad89ba31fdb2c30b35306318f8b -> ${P}.zip" |
| 13 |
|
| 14 |
LICENSE="GPL-3" |
| 15 |
SLOT="0" |
| 16 |
KEYWORDS="~amd64 ~x86" |
| 17 |
|
| 18 |
IUSE="cuda opencl" |
| 19 |
|
| 20 |
RDEPEND="app-crypt/hashcat-bin |
| 21 |
cuda? ( app-crypt/oclhashcat-plus-bin |
| 22 |
app-crypt/oclhashcat-lite-bin ) |
| 23 |
opencl? ( app-crypt/oclhashcat-plus-bin |
| 24 |
app-crypt/oclhashcat-lite-bin ) |
| 25 |
x11-libs/qt-gui:4 |
| 26 |
x11-libs/qt-core:4" |
| 27 |
|
| 28 |
DEPEND="x11-libs/qt-gui:4 |
| 29 |
x11-libs/qt-core:4 |
| 30 |
app-arch/unzip" |
| 31 |
|
| 32 |
S="${WORKDIR}"/scandium-hashcat-gui-b6b01be/src |
| 33 |
|
| 34 |
src_prepare() { |
| 35 |
sed -i 's#./hashcat#/opt/hashcat-bin#g' mainwindow.cpp || die |
| 36 |
sed -i 's#./oclHashcat-plus#/opt/oclhashcat-plus-bin#g' mainwindow.cpp || die |
| 37 |
sed -i 's#./oclHashcat-lite#/opt/oclhashcat-lite-bin#g' mainwindow.cpp || die |
| 38 |
} |
| 39 |
|
| 40 |
src_install() { |
| 41 |
dobin hashcat-gui |
| 42 |
cd "${WORKDIR}"/scandium-hashcat-gui-b6b01be || die |
| 43 |
dodoc ChangeLog FAQ INSTALL README TODO |
| 44 |
} |