summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-arch/macutil/macutil-2.0_beta3.ebuild')
-rw-r--r--app-arch/macutil/macutil-2.0_beta3.ebuild14
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() {