--- wxGTK-2.8.12.1.ebuild.orig 2013-04-18 03:22:11.000000000 +0200 +++ wxGTK-2.8.12.1.ebuild 2013-04-18 05:07:10.000000000 +0200 @@ -71,10 +71,20 @@ epatch "${FILESDIR}"/${PN}-2.8.11-collision.patch epatch "${FILESDIR}"/${PN}-2.8.7-mmedia.patch # Bug #174874 epatch "${FILESDIR}"/${PN}-2.8.10.1-odbc-defines.patch # Bug #310923 - sed \ + epatch "${FILESDIR}"/${PN}-2.8.12.1-setconcurrency-backport.patch + sed -e '/^for ac_func in thr_/ s:thr:pthread:' \ + -e '/^char *(.f) *() *=/ s:():() __attribute__((used)):' \ + -e '/^SEARCH_INCLUDE="/,/"/cSEARCH_INCLUDE="/usr/include"' \ -e "s:/usr:${EPREFIX}/usr:g" \ - -e '/SEARCH_INCLUDE="\\/,/"/cSEARCH_INCLUDE="'${EPREFIX}'/usr/include"' \ -i configure || die "sed on configure failed" + + # epatch_user source with portage patches applied + epatch_user + + # wxGTK:2.8 does not like eauto{,re}conf, bakefile/m4 version mismatch + # the generated configure will be buggy, e.g. cached value tests, + # so it does not make sense to patch *.in / *.ac for this build + #eautoconf } src_configure() {