From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B1BED1382C5 for ; Sun, 27 Dec 2020 19:15:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1842AE0B18; Sun, 27 Dec 2020 19:15:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F1804E0B18 for ; Sun, 27 Dec 2020 19:15:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0F3E2341502 for ; Sun, 27 Dec 2020 19:15:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6863C49 for ; Sun, 27 Dec 2020 19:15:49 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1609096546.3dbe219bfd55947e20f39476d36d2094a7255a46.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/cgnslib/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/cgnslib/cgnslib-3.4.0.ebuild X-VCS-Directories: sci-libs/cgnslib/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3dbe219bfd55947e20f39476d36d2094a7255a46 X-VCS-Branch: master Date: Sun, 27 Dec 2020 19:15:49 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 04afbd0c-5655-4ae4-ae39-b0b06805b6cb X-Archives-Hash: 2969dc7369f72a37238e2e5592d11040 commit: 3dbe219bfd55947e20f39476d36d2094a7255a46 Author: Bernd Waibel gmail com> AuthorDate: Sun Dec 27 18:37:56 2020 +0000 Commit: Sam James gentoo org> CommitDate: Sun Dec 27 19:15:46 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dbe219b sci-libs/cgnslib: fix cmake unused variable warnings - fix warnings about unused variables from cmake - restrict test when USE=fortran, the tests don't build Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Bernd Waibel gmail.com> Closes: https://github.com/gentoo/gentoo/pull/18838 Signed-off-by: Sam James gentoo.org> sci-libs/cgnslib/cgnslib-3.4.0.ebuild | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/sci-libs/cgnslib/cgnslib-3.4.0.ebuild b/sci-libs/cgnslib/cgnslib-3.4.0.ebuild index d7da6448621..6eac6426bb8 100644 --- a/sci-libs/cgnslib/cgnslib-3.4.0.ebuild +++ b/sci-libs/cgnslib/cgnslib-3.4.0.ebuild @@ -19,7 +19,15 @@ LICENSE="ZLIB" SLOT="0/3" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="doc examples fortran hdf5 legacy mpi static-libs szip test tools" -RESTRICT="!test? ( test )" +RESTRICT=" + fortran? ( test ) + !test? ( test ) +" + +REQUIRED_USE=" + mpi? ( hdf5 ) + szip? ( hdf5 ) +" RDEPEND="hdf5? ( sci-libs/hdf5:=[mpi=,szip=] ) tools? ( @@ -57,10 +65,16 @@ src_configure() { -DCGNS_ENABLE_HDF5="$(usex hdf5)" -DCGNS_ENABLE_LEGACY="$(usex legacy)" -DCGNS_ENABLE_TESTS="$(usex test)" - -DHDF5_NEED_MPI="$(usex mpi)" - -DHDF5_NEED_SZIP="$(usex szip)" - -DHDF5_NEED_ZLIB="$(usex szip)" ) + + if use hdf5; then + mycmakeargs+=( + -DHDF5_NEED_MPI="$(usex mpi)" + -DHDF5_NEED_SZIP="$(usex szip)" + -DHDF5_NEED_ZLIB="$(usex szip)" + ) + fi + cmake_src_configure }