--- freeze-2.5.0.ebuild.orig 2005-11-29 04:05:24.000000000 +0100 +++ freeze-2.5.0.ebuild 2006-10-21 15:22:32.000000000 +0200 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-arch/freeze/freeze-2.5.0.ebuild,v 1.16 2005/11/29 02:57:36 vapier Exp $ +inherit toolchain-funcs + DESCRIPTION="Freeze/unfreeze compression program" HOMEPAGE="http://www.ibiblio.org/pub/Linux/utils/compress/" SRC_URI="ftp://ftp.ibiblio.org/pub/Linux/utils/compress/${P}.tar.gz" @@ -20,13 +22,18 @@ cd ${S} # Hard links confuse prepman and these links are absolute. - sed -e "s:ln -f:ln -sf:g" -i Makefile.in || die "sed failed" + # Fix pre-stripped binary and respect CFLAGS as well + sed -i -e 's:ln -f:ln -sf:g' \ + -e 's:-strip $@::g' \ + -e '/^CFLAGS/s:=.*:+= -I.:' \ + Makefile.in || die "sed failed" } src_compile() { econf || die emake \ + CC=$(tc-getCC) OPTIONS="-DDEFFILE=\\\"/etc/freeze.cnf\\\"" \ || die "compile problem" }