commit:     8c6d9a8fd2fce86f98e502acfc3cf2238da919a4
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 16 09:52:51 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Nov 16 09:52:51 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c6d9a8f

app-crypt/ophcrack: Port to EAPI 7

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 app-crypt/ophcrack/ophcrack-3.8.0.ebuild | 45 +++++++++++++++++---------------
 1 file changed, 24 insertions(+), 21 deletions(-)

diff --git a/app-crypt/ophcrack/ophcrack-3.8.0.ebuild 
b/app-crypt/ophcrack/ophcrack-3.8.0.ebuild
index c35c0f3c154..02782e37778 100644
--- a/app-crypt/ophcrack/ophcrack-3.8.0.ebuild
+++ b/app-crypt/ophcrack/ophcrack-3.8.0.ebuild
@@ -1,8 +1,9 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
-inherit eutils
+EAPI=7
+
+inherit desktop toolchain-funcs
 
 DESCRIPTION="A time-memory-trade-off-cracker"
 HOMEPAGE="http://ophcrack.sourceforge.net/";
@@ -13,32 +14,34 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="debug libressl qt5 +tables"
 
-CDEPEND="!libressl? ( dev-libs/openssl:0= )
-               libressl? ( dev-libs/libressl:0= )
-               net-libs/netwib
-               qt5? ( dev-qt/qtcharts:5
-               dev-qt/qtgui:5 )"
-DEPEND="app-arch/unzip
-               virtual/pkgconfig
-               ${CDEPEND}"
-RDEPEND="tables? ( app-crypt/ophcrack-tables )
-               ${CDEPEND}"
-PATCHES=("${FILESDIR}/ophcrack-ar.patch")
+DEPEND="
+       !libressl? ( dev-libs/openssl:0= )
+       libressl? ( dev-libs/libressl:0= )
+       net-libs/netwib
+       qt5? (
+               dev-qt/qtcharts:5
+               dev-qt/qtgui:5
+       )"
+RDEPEND="
+       ${DEPEND}
+       tables? ( app-crypt/ophcrack-tables )"
+BDEPEND="
+       app-arch/unzip
+       virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/ophcrack-ar.patch )
 
 src_configure() {
+       tc-export AR
 
-       local myconf
-
-       myconf="$(use_enable debug)"
-       myconf="${myconf} $(use_enable qt5 gui)"
-
-       econf ${myconf}
+       econf \
+               $(use_enable debug) \
+               $(use_enable qt5 gui)
 }
 
 src_install() {
-       emake install DESTDIR="${D}"
+       default
 
-       cd "${S}"
        newicon src/gui/pixmaps/os.xpm ophcrack.xpm
        make_desktop_entry "${PN}" OphCrack ophcrack
 }

Reply via email to