From 2f168392284fec294f9bfbb06d1c0a8a46f5a7d5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 10 Aug 2015 03:39:36 -0400 Subject: anacron: improve CFLAGS/CC handling Rather than expand CFLAGS in the sed statement, pass it via the env later on when running make. Make sure we set up CC to a sane default. --- sys-process/anacron/anacron-2.3-r3.ebuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sys-process') diff --git a/sys-process/anacron/anacron-2.3-r3.ebuild b/sys-process/anacron/anacron-2.3-r3.ebuild index aa35863c8a09..202cfdd6b889 100644 --- a/sys-process/anacron/anacron-2.3-r3.ebuild +++ b/sys-process/anacron/anacron-2.3-r3.ebuild @@ -4,7 +4,7 @@ EAPI="5" -inherit eutils +inherit eutils toolchain-funcs DESCRIPTION="a periodic command scheduler" HOMEPAGE="http://anacron.sourceforge.net/" @@ -21,7 +21,13 @@ RDEPEND="${RDEPEND} src_prepare() { epatch "${FILESDIR}"/${P}-compile-fix-from-debian.patch - sed -i "s:^CFLAGS =:CFLAGS = $CFLAGS:" Makefile + sed -i \ + -e '/^CFLAGS/{s:=:+=:;s:-O2::}' \ + Makefile || die +} + +src_configure() { + tc-export CC } src_install() { -- cgit v1.2.3-65-gdbad