You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1004 B
56 lines
1004 B
1 year ago
|
# Copyright 1999-2023 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
1 year ago
|
EAPI=8
|
||
4 years ago
|
|
||
1 year ago
|
inherit autotools desktop qmake-utils xdg
|
||
6 years ago
|
|
||
|
DESCRIPTION="A time-memory-trade-off-cracker"
|
||
3 years ago
|
HOMEPAGE="https://ophcrack.sourceforge.io/"
|
||
|
SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}/${PV}/${P}.tar.bz2"
|
||
6 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
1 year ago
|
IUSE="gui +tables"
|
||
6 years ago
|
|
||
4 years ago
|
DEPEND="
|
||
1 year ago
|
dev-libs/openssl:=
|
||
3 years ago
|
dev-libs/expat
|
||
4 years ago
|
net-libs/netwib
|
||
1 year ago
|
gui? (
|
||
4 years ago
|
dev-qt/qtcharts:5
|
||
1 year ago
|
dev-qt/qtcore:5
|
||
4 years ago
|
dev-qt/qtgui:5
|
||
1 year ago
|
dev-qt/qtwidgets:5
|
||
4 years ago
|
)"
|
||
|
RDEPEND="
|
||
|
${DEPEND}
|
||
|
tables? ( app-crypt/ophcrack-tables )"
|
||
|
BDEPEND="
|
||
|
app-arch/unzip
|
||
|
virtual/pkgconfig"
|
||
|
|
||
1 year ago
|
PATCHES=( "${FILESDIR}"/${P}-buildsystem.patch )
|
||
6 years ago
|
|
||
1 year ago
|
src_prepare() {
|
||
|
default
|
||
|
eautoreconf
|
||
|
}
|
||
6 years ago
|
|
||
1 year ago
|
src_configure() {
|
||
2 years ago
|
# bug #765229
|
||
1 year ago
|
use gui && export PATH="$(qt5_get_bindir):${PATH}"
|
||
2 years ago
|
|
||
1 year ago
|
econf $(use_enable gui)
|
||
6 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
4 years ago
|
default
|
||
6 years ago
|
|
||
1 year ago
|
if use gui; then
|
||
|
newicon src/gui/pixmaps/os.xpm ophcrack.xpm
|
||
|
make_desktop_entry "${PN}" OphCrack ophcrack
|
||
|
fi
|
||
6 years ago
|
}
|