--- mathgl-1.8.1.ebuild.orig 2009-08-13 00:08:24.000000000 +1200 +++ mathgl-1.8.1.ebuild 2009-08-13 00:14:32.000000000 +1200 @@ -13,7 +13,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="doc fltk gif glut gsl hdf5 jpeg octave python qt4 wxwindows" +IUSE="doc fltk gif glut gsl hdf5 jpeg octave python qt4 wxwindows openmp" RDEPEND="media-libs/libpng virtual/glu @@ -26,7 +26,8 @@ gsl? ( sci-libs/gsl ) octave? ( sci-mathematics/octave ) qt4? ( x11-libs/qt-gui:4 ) - wxwindows? ( x11-libs/wxGTK:2.8 )" + wxwindows? ( x11-libs/wxGTK:2.8 ) + openmp? ( sys-devel/gcc[openmp] )" DEPEND="${RDEPEND} doc? ( app-text/texi2html virtual/texi2dvi ) python? ( dev-lang/swig ) @@ -44,6 +45,8 @@ epatch "${FILESDIR}"/${P}-gcc43.patch # bug 274282 epatch "${FILESDIR}"/${P}-gcc44.patch + # bug 280642 + epatch "${FILESDIR}/${P}-openmp.patch" # correct location of numpy/arrayobject.h if use python; then @@ -70,7 +73,8 @@ $(use_enable python) \ $(use_enable octave) \ $(use_enable gsl) \ - $(use_enable doc docs) + $(use_enable doc docs) \ + $(use_enable openmp) } src_compile() {