From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 02322138CC5 for ; Mon, 4 May 2015 14:02:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72F1AE0969; Mon, 4 May 2015 14:02:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1F520E0969 for ; Mon, 4 May 2015 14:02:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 43B0033BF0C for ; Mon, 4 May 2015 14:02:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DB27C9D6 for ; Mon, 4 May 2015 14:02:26 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1430317356.f50c8259cf81b2bfe83f90f171fd81c71a9b7bd6.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/netgen/ X-VCS-Repository: proj/sci X-VCS-Files: sci-mathematics/netgen/netgen-5.0.0.ebuild X-VCS-Directories: sci-mathematics/netgen/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: f50c8259cf81b2bfe83f90f171fd81c71a9b7bd6 X-VCS-Branch: master Date: Mon, 4 May 2015 14:02:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2b806c14-709c-45f6-ba87-dcdbd710ed7c X-Archives-Hash: 55af1e974e195da38555804209d4fb41 commit: f50c8259cf81b2bfe83f90f171fd81c71a9b7bd6 Author: Grégory Salvan gmail com> AuthorDate: Wed Apr 29 14:22:36 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Wed Apr 29 14:22:36 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=f50c8259 make metis requirement only with mpi use flag sci-mathematics/netgen/netgen-5.0.0.ebuild | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sci-mathematics/netgen/netgen-5.0.0.ebuild b/sci-mathematics/netgen/netgen-5.0.0.ebuild index 0dc41d5..7490cff 100644 --- a/sci-mathematics/netgen/netgen-5.0.0.ebuild +++ b/sci-mathematics/netgen/netgen-5.0.0.ebuild @@ -21,11 +21,11 @@ DEPEND="dev-tcltk/tix dev-tcltk/togl:1.7 virtual/opengl x11-libs/libXmu - || ( sci-libs/parmetis sci-libs/metis ) + opencascade? ( sci-libs/opencascade ) ffmpeg? ( media-video/ffmpeg ) jpeg? ( virtual/jpeg ) - mpi? ( virtual/mpi ) " + mpi? ( virtual/mpi ( || ( sci-libs/parmetis sci-libs/metis ) ) ) " RDEPEND="${DEPEND}" # Note, MPI has not be tested. @@ -47,13 +47,16 @@ src_configure() { myconf="${myconf} --enable-occ --with-occ=$CASROOT" append-ldflags -L$CASROOT/lin/$(get_libdir) fi - - use mpi && myconf="${myconf} --enable-parallel" + + if use mpi; then + myconf="${myconf} --enable-parallel" + append-cppflags -I/usr/include/metis + fi + use ffmpeg && myconf="${myconf} --enable-ffmpeg" use jpeg && myconf="${myconf} --enable-jpeglib" append-cppflags -I/usr/include/togl-1.7 - append-cppflags -I/usr/include/metis econf \ ${myconf}