--- /usr/portage/dev-cpp/gccxml/gccxml-0.9.0_pre20090516.ebuild 2009-05-25 07:05:48.000000000 -0700 +++ gccxml-0.9.0_pre20090516-r1.ebuild 2009-05-30 00:05:46.000000000 -0700 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/gccxml/gccxml-0.9.0_pre20090516.ebuild,v 1.5 2009/05/25 13:49:53 armin76 Exp $ +EAPI=2 + inherit eutils toolchain-funcs DESCRIPTION="XML output extension to GCC" @@ -21,13 +23,19 @@ src_unpack() { mkdir "${MYBUILDDIR}" unpack ${A} +} +src_prepare() { cd "${S}" # patch below taken from Debian sed -i \ -e 's/xatexit.c//' \ "${S}/GCC/libiberty/CMakeLists.txt" || die "sed failed" + sed -i \ + -e '/__builtin_isunordered/s:\(.*\):\1\nbool __builtin_va_arg_pack(...)\;:' \ + "${S}/GCC_XML/Support/GCC/4.3/gccxml_builtins.h" || die "sed failed" } + src_compile() { cd "${MYBUILDDIR}" cmake "${S}" \