summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2009-02-10 16:15:32 +0000
committerChristoph Mende <angelos@gentoo.org>2009-02-10 16:15:32 +0000
commit477829062d638e560049b3529bc04b7e4fd3c3fe (patch)
tree651ec7e082c784f5f81d2eeab9fa51eec4931afa /app-crypt/mdcrack/mdcrack-1.2.ebuild
parentPython 2.5 series. Added +xml use flag to standarize. (diff)
downloadgentoo-2-477829062d638e560049b3529bc04b7e4fd3c3fe.tar.gz
gentoo-2-477829062d638e560049b3529bc04b7e4fd3c3fe.tar.bz2
gentoo-2-477829062d638e560049b3529bc04b7e4fd3c3fe.zip
QA: Fixed compilation with --as-needed (bug 246867), respect CC (bug 243544), respect LDFLAGS, let dobin die
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'app-crypt/mdcrack/mdcrack-1.2.ebuild')
-rw-r--r--app-crypt/mdcrack/mdcrack-1.2.ebuild22
1 files changed, 12 insertions, 10 deletions
diff --git a/app-crypt/mdcrack/mdcrack-1.2.ebuild b/app-crypt/mdcrack/mdcrack-1.2.ebuild
index 430dc02e24a0..d7dda2302fc4 100644
--- a/app-crypt/mdcrack/mdcrack-1.2.ebuild
+++ b/app-crypt/mdcrack/mdcrack-1.2.ebuild
@@ -1,38 +1,40 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/mdcrack/mdcrack-1.2.ebuild,v 1.3 2005/09/10 22:47:30 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/mdcrack/mdcrack-1.2.ebuild,v 1.4 2009/02/10 16:15:32 angelos Exp $
-inherit eutils
+inherit eutils toolchain-funcs
DESCRIPTION="A MD4/MD5/NTML hashes bruteforcer."
HOMEPAGE="http://mdcrack.df.ru/"
SRC_URI="http://mdcrack.df.ru/download/${P}.tar.gz"
+
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="ncurses"
-DEPEND="virtual/libc"
src_unpack() {
unpack ${A}
- epatch ${FILESDIR}/${P}-gcc4.diff
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc4.diff \
+ "${FILESDIR}"/${P}-asneeded.patch
}
src_compile() {
use ncurses || \
sed -i -e 's/^NCURSES/#NCURSES/g' \
- -e 's/^LDFLAGS/#LDFLAGS/g' Makefile
- sed -i "s,^\(CFLAGS =\).*,\1 ${CFLAGS},g" Makefile
+ -e 's/^LIBS/#LIBS/g' Makefile
+ sed -i -e "/^CFLAGS/d" Makefile
#endian
- emake little || die "emake failed"
+ emake CC="$(tc-getCC)" little || die "emake failed"
}
src_test() {
- make fulltest ||die 'self test failed'
+ make CC="$(tc-getCC)" fulltest || die "self test failed"
}
src_install() {
- dobin bin/mdcrack
+ dobin bin/mdcrack || die "dobin failed"
dodoc BENCHMARKS CREDITS FAQ README TODO VERSIONS WWW
}