--- /usr/portage/mail-filter/p3scan/p3scan-2.3.2.ebuild 2009-05-16 04:06:29.000000000 +0300 +++ /usr/portage/mail-filter/p3scan/p3scan-2.3.2.ebuild 2010-01-03 18:42:32.000000000 +0200 @@ -20,10 +20,18 @@ src_prepare() { epatch "${FILESDIR}/p3scan-ocreat.patch" + + # respect CC (bug #244144), and CFLAGS (bug #240786) + sed -i -e 's:^CC=:#CC=:' \ + -e 's:^CFLAGS=-Wall -O2 :CFLAGS+=:' Makefile + # same for the bundled ripmime, but also silencing make jobserver complaints + sed -i -e 's:^CC=:#CC=:' \ + -e 's:^CFLAGS=-Wall -g -O2 :CFLAGS+=:' \ + -e 's:\t./:\t+./:' ripmime/Makefile ripmime/Makefile } src_compile() { - emake || die + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die } src_install () {