-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Id$
-EAPI="3"
+EAPI="6"
inherit eutils
DESCRIPTION="A time-memory-trade-off-cracker"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="qt4 debug +tables"
+IUSE="debug libressl qt4 +tables"
-CDEPEND="dev-libs/openssl
+CDEPEND="!libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
net-libs/netwib
qt4? ( dev-qt/qtgui:4 )"
DEPEND="app-arch/unzip
RDEPEND="tables? ( app-crypt/ophcrack-tables )
${CDEPEND}"
+PATCHES="${FILESDIR}/ophcrack-openssl-des.patch"
+
src_configure() {
local myconf