From 3cc853d6f4c6c1bcd94d8b256c6ab93355b583c3 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Mon, 26 Nov 2012 09:12:31 +0100 Subject: sci-chemistry/openbabel: Add test phase, check openmp correctly Package-Manager: portage-2.2.0_alpha142 --- sci-chemistry/openbabel/ChangeLog | 3 +++ sci-chemistry/openbabel/openbabel-2.3.2.ebuild | 16 +++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) (limited to 'sci-chemistry/openbabel') diff --git a/sci-chemistry/openbabel/ChangeLog b/sci-chemistry/openbabel/ChangeLog index fc85dc342..fdd934a61 100644 --- a/sci-chemistry/openbabel/ChangeLog +++ b/sci-chemistry/openbabel/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 26 Nov 2012; Justin Lecher openbabel-2.3.2.ebuild: + Add test phase, check openmp correctly + *openbabel-2.3.2 (19 Oct 2012) 19 Oct 2012; Reinis Danne +openbabel-2.3.2.ebuild, diff --git a/sci-chemistry/openbabel/openbabel-2.3.2.ebuild b/sci-chemistry/openbabel/openbabel-2.3.2.ebuild index a44d835aa..4be6337c1 100644 --- a/sci-chemistry/openbabel/openbabel-2.3.2.ebuild +++ b/sci-chemistry/openbabel/openbabel-2.3.2.ebuild @@ -12,13 +12,13 @@ DESCRIPTION="Interconverts file formats used in molecular modeling" HOMEPAGE="http://openbabel.sourceforge.net/" SRC_URI="mirror://sourceforge/openbabel/${P}.tar.gz" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" SLOT="0" LICENSE="GPL-2" -IUSE="doc openmp perl python wxwidgets" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="doc openmp perl python test wxwidgets" RDEPEND=" - dev-cpp/eigen:= + dev-cpp/eigen:3 dev-libs/libxml2:2 !sci-chemistry/babel sci-libs/inchi @@ -34,6 +34,16 @@ DOCS="AUTHORS ChangeLog NEWS README THANKS doc/*.inc doc/README* doc/*.mol2" PATCHES=( "${FILESDIR}"/${P}-test_lib_path.patch ) +pkg_setup() { + if use openmp; then + if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then + ewarn "OpenMP is not available in your current selected gcc" + die "need openmp capable gcc" + fi + FORTRAN_NEED_OPENMP=1 + fi +} + src_configure() { local mycmakeargs="" mycmakeargs="${mycmakeargs} -- cgit v1.2.3-65-gdbad