diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-10-15 22:13:57 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-10-15 22:13:57 +0000 |
commit | daeedb93b3b4be8f8951b72b2bc10cc36df781b0 (patch) | |
tree | 917239d330ce7b1c33af058f8a3c928e7eb3a482 /app-arch/macutil/macutil-2.0_beta3.ebuild | |
parent | Stable on sparc (diff) | |
download | historical-daeedb93b3b4be8f8951b72b2bc10cc36df781b0.tar.gz historical-daeedb93b3b4be8f8951b72b2bc10cc36df781b0.tar.bz2 historical-daeedb93b3b4be8f8951b72b2bc10cc36df781b0.zip |
Respect CFLAGS and LDFLAGS at make. Also respect CC. Closes bug #239926.
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64
Diffstat (limited to 'app-arch/macutil/macutil-2.0_beta3.ebuild')
-rw-r--r-- | app-arch/macutil/macutil-2.0_beta3.ebuild | 14 |
1 files changed, 9 insertions, 5 deletions
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() { |