--- /usr/portage/net-libs/polarssl/polarssl-1.2.8.ebuild 2013-08-28 08:31:26.000000000 -0400 +++ /usr/local/portage/net-libs/polarssl/polarssl-1.2.8.ebuild 2013-09-04 14:36:05.665803922 -0400 @@ -13,7 +13,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 arm hppa ppc ppc64 s390 sparc x86 ~amd64-fbsd ~x86-fbsd" -IUSE="examples sse2" +IUSE="havege examples sse2" src_prepare() { sed -i '/.SILENT:/d' Makefile */Makefile @@ -24,6 +24,10 @@ else sed -i '15iCFLAGS += -fPIC' Makefile fi + cd ../include + if use havege ; then + sed -i "631a#define POLARSSL_HAVEGE_C" polarssl/config.h + fi } src_compile() {