summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-03-22 15:58:07 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-03-22 15:58:07 +0000
commit4ce277e2d7d1e0971bf0fc9f76f686e901843955 (patch)
tree018464d30d4db6fb7b2e5e9723fa65bccba62b60 /app-crypt/pkcrack
parentapp-i18n/uim-svn removal, bug #235934. (diff)
downloadgentoo-2-4ce277e2d7d1e0971bf0fc9f76f686e901843955.tar.gz
gentoo-2-4ce277e2d7d1e0971bf0fc9f76f686e901843955.tar.bz2
gentoo-2-4ce277e2d7d1e0971bf0fc9f76f686e901843955.zip
Respect CFLAGS and LDFLAGS (bug #239971).
(Portage version: 13142-svn/cvs/Linux x86_64)
Diffstat (limited to 'app-crypt/pkcrack')
-rw-r--r--app-crypt/pkcrack/ChangeLog6
-rw-r--r--app-crypt/pkcrack/pkcrack-1.2.2.ebuild21
2 files changed, 16 insertions, 11 deletions
diff --git a/app-crypt/pkcrack/ChangeLog b/app-crypt/pkcrack/ChangeLog
index 684b9b8262be..f9420ac04c1e 100644
--- a/app-crypt/pkcrack/ChangeLog
+++ b/app-crypt/pkcrack/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-crypt/pkcrack
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/pkcrack/ChangeLog,v 1.6 2009/03/12 17:26:06 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/pkcrack/ChangeLog,v 1.7 2009/03/22 15:58:07 arfrever Exp $
+
+ 22 Mar 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ pkcrack-1.2.2.ebuild:
+ Respect CFLAGS and LDFLAGS (bug #239971).
12 Mar 2009; Torsten Veller <tove@gentoo.org> pkcrack-1.2.2.ebuild:
Block <app-text/html-xml-utils-5.3 (#218146)
diff --git a/app-crypt/pkcrack/pkcrack-1.2.2.ebuild b/app-crypt/pkcrack/pkcrack-1.2.2.ebuild
index e41169a27eeb..f7bd3ae52571 100644
--- a/app-crypt/pkcrack/pkcrack-1.2.2.ebuild
+++ b/app-crypt/pkcrack/pkcrack-1.2.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/pkcrack/pkcrack-1.2.2.ebuild,v 1.6 2009/03/12 17:26:06 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/pkcrack/pkcrack-1.2.2.ebuild,v 1.7 2009/03/22 15:58:07 arfrever Exp $
inherit toolchain-funcs
@@ -16,27 +16,28 @@ RDEPEND="!<app-text/html-xml-utils-5.3"
src_unpack() {
unpack ${A}
- cd ${S}/src
+ cd "${S}/src"
sed -i -e "s/^CC=.*/CC=$(tc-getCC)/" \
- -e "s/^CFLAGS=.*/CFLAGS=${CFLAGS}/" \
- Makefile
- sed -i -e "s:void main:int main:" *.c
+ -e "/^CFLAGS=.*/d" \
+ -e "s/CFLAGS/LDFLAGS/" \
+ Makefile || die "sed Makefile failed"
+ sed -i -e "s:void main:int main:" *.c || die "sed *.c failed"
}
src_compile() {
- cd ${S}/src
+ cd "${S}/src"
emake || die "emake failed"
}
src_test() {
- cd ${S}/test
+ cd "${S}/test"
make CC="$(tc-getCC)" all || die "self test failed"
}
src_install() {
- cd ${S}/src
- dobin pkcrack zipdecrypt findkey extract makekey
- dodoc ${S}/doc/*
+ cd "${S}/src"
+ dobin pkcrack zipdecrypt findkey extract makekey || die "dobin failed"
+ dodoc "${S}/doc/"*
}
pkg_postinst() {