summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-10-15 22:13:57 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-10-15 22:13:57 +0000
commit000db50ff9c2435f51b88f5b4ef9f0331a45771d (patch)
treedc7fead9b7520a824f2ed5d2c1491dc5e9c1ed5c /app-arch/macutil
parentStable on sparc (diff)
downloadgentoo-2-000db50ff9c2435f51b88f5b4ef9f0331a45771d.tar.gz
gentoo-2-000db50ff9c2435f51b88f5b4ef9f0331a45771d.tar.bz2
gentoo-2-000db50ff9c2435f51b88f5b4ef9f0331a45771d.zip
Respect CFLAGS and LDFLAGS at make. Also respect CC. Closes bug #239926.
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64)
Diffstat (limited to 'app-arch/macutil')
-rw-r--r--app-arch/macutil/ChangeLog6
-rw-r--r--app-arch/macutil/macutil-2.0_beta3.ebuild14
2 files changed, 14 insertions, 6 deletions
diff --git a/app-arch/macutil/ChangeLog b/app-arch/macutil/ChangeLog
index 0e07292a0857..42e00e4983bf 100644
--- a/app-arch/macutil/ChangeLog
+++ b/app-arch/macutil/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-arch/macutil
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/macutil/ChangeLog,v 1.16 2008/08/23 18:15:44 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/macutil/ChangeLog,v 1.17 2008/10/15 22:13:57 flameeyes Exp $
+
+ 15 Oct 2008; Diego Pettenò <flameeyes@gentoo.org>
+ macutil-2.0_beta3.ebuild:
+ Respect CFLAGS and LDFLAGS at make. Also respect CC. Closes bug #239926.
23 Aug 2008; Markus Meier <maekke@gentoo.org> macutil-2.0_beta3.ebuild:
add ~amd64, bug #225985
diff --git a/app-arch/macutil/macutil-2.0_beta3.ebuild b/app-arch/macutil/macutil-2.0_beta3.ebuild
index ec82456aaa45..80b02cd90959 100644
--- a/app-arch/macutil/macutil-2.0_beta3.ebuild
+++ b/app-arch/macutil/macutil-2.0_beta3.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/macutil/macutil-2.0_beta3.ebuild,v 1.15 2008/08/23 18:15:44 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/macutil/macutil-2.0_beta3.ebuild,v 1.16 2008/10/15 22:13:57 flameeyes Exp $
-inherit eutils
+inherit eutils toolchain-funcs
MY_P=${P/_beta/b}
DESCRIPTION="A collection of programs to handle Macintosh files/archives on non-Macintosh systems"
@@ -25,15 +25,19 @@ src_unpack() {
cd ${PN}
sed -i.orig \
- -e "s:CF =\t\(.*\):CF = \1 ${CFLAGS}:g" \
-e "s:-DBSD::g" \
-e "s:-DDEBUG::g" \
-e "s:/ufs/dik/tmpbin:${D}/usr/bin:g" \
- makefile
+ makefile || die "sed makefile failed"
+
+ sed -i \
+ -e '/^CFLAGS =/s:= -O:+=:' \
+ -e '/(OBJ/s:CFLAGS:LDFLAGS:' \
+ */makefile || die "sed makefile [2] failed"
}
src_compile() {
- emake || die "build failed"
+ emake CC="$(tc-getCC)" || die "build failed"
}
src_install() {