diff options
author | Matthias Maier <tamiko@gentoo.org> | 2022-01-15 04:46:56 -0600 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2022-01-15 04:47:18 -0600 |
commit | bb856a779fa4f0e0e090e37ee8e75f8bb53ad4cc (patch) | |
tree | 77fffc98ca14193726ae1862ee43e8828e9b559b /sci-libs | |
parent | dev-util/libabigail: drop 1.6 (diff) | |
download | gentoo-bb856a779fa4f0e0e090e37ee8e75f8bb53ad4cc.tar.gz gentoo-bb856a779fa4f0e0e090e37ee8e75f8bb53ad4cc.tar.bz2 gentoo-bb856a779fa4f0e0e090e37ee8e75f8bb53ad4cc.zip |
sci-libs/dealii: ebuild maintenance, update opencascade dep
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/dealii/dealii-9.3.1-r4.ebuild | 14 | ||||
-rw-r--r-- | sci-libs/dealii/dealii-9999.ebuild | 19 |
2 files changed, 12 insertions, 21 deletions
diff --git a/sci-libs/dealii/dealii-9.3.1-r4.ebuild b/sci-libs/dealii/dealii-9.3.1-r4.ebuild index b93006221e8e..9edb8b2d5a83 100644 --- a/sci-libs/dealii/dealii-9.3.1-r4.ebuild +++ b/sci-libs/dealii/dealii-9.3.1-r4.ebuild @@ -40,11 +40,6 @@ REQUIRED_USE=" slepc? ( petsc ) trilinos? ( mpi )" -# FIXME: The opencascade-7.5.1 ebuild uses a new file system layout where -# the names of the correct include and library directories are not easily -# accessible. Just fix the version for the time being. -CAS_VERSION=7.6.0 - RDEPEND="dev-libs/boost:= app-arch/bzip2 sys-libs/zlib @@ -64,7 +59,7 @@ RDEPEND="dev-libs/boost:= ) mpi? ( virtual/mpi[cxx] ) muparser? ( dev-cpp/muParser ) - opencascade? ( ~sci-libs/opencascade-${CAS_VERSION}:= ) + opencascade? ( >=sci-libs/opencascade-7.6.0:= ) p4est? ( sci-libs/p4est[mpi] ) petsc? ( sci-mathematics/petsc[mpi=] ) scalapack? ( sci-libs/scalapack ) @@ -128,13 +123,12 @@ src_configure() { -DDEAL_II_WITH_TRILINOS="$(usex trilinos)" ) - # Do a little dance for purely cosmetic "QA" reasons. + # Do a little dance for purely cosmetic QA reasons. use opencascade && mycmakeargs+=( - -DOPENCASCADE_DIR="${CASROOT}/$(get_libdir)/opencascade-${CAS_VERSION}" - -DOPENCASCADE_INCLUDE_DIR="${CASROOT}/include/opencascade-${CAS_VERSION}" + -DOPENCASCADE_DIR="${CASROOT}/$(get_libdir)/opencascade" ) - # Do a little dance for purely cosmetic "QA" reasons. The build system + # Do a little dance for purely cosmetic QA reasons. The build system # does query for the highest instruction set first and skips the other # variables if a "higher" variant is set if use cpu_flags_x86_avx512f; then diff --git a/sci-libs/dealii/dealii-9999.ebuild b/sci-libs/dealii/dealii-9999.ebuild index 918e1199b2c0..2e1f4a47b3ba 100644 --- a/sci-libs/dealii/dealii-9999.ebuild +++ b/sci-libs/dealii/dealii-9999.ebuild @@ -8,7 +8,7 @@ EAPI=7 # any of these modules: CMAKE_REMOVE_MODULES_LIST="" -inherit cmake multilib +inherit cmake flag-o-matic multilib DESCRIPTION="Solving partial differential equations with the finite element method" HOMEPAGE="https://www.dealii.org/" @@ -40,11 +40,6 @@ REQUIRED_USE=" slepc? ( petsc ) trilinos? ( mpi )" -# FIXME: The opencascade-7.5.1 ebuild uses a new file system layout where -# the names of the correct include and library directories are not easily -# accessible. Just fix the version for the time being. -CAS_VERSION=7.6.0 - RDEPEND="dev-libs/boost:= app-arch/bzip2 sys-libs/zlib @@ -65,7 +60,7 @@ RDEPEND="dev-libs/boost:= ) mpi? ( virtual/mpi[cxx] ) muparser? ( dev-cpp/muParser ) - opencascade? ( ~sci-libs/opencascade-${CAS_VERSION}:= ) + opencascade? ( >=sci-libs/opencascade-7.6.0:= ) p4est? ( sci-libs/p4est[mpi] ) petsc? ( sci-mathematics/petsc[mpi=] ) scalapack? ( sci-libs/scalapack ) @@ -129,21 +124,23 @@ src_configure() { -DDEAL_II_WITH_TRILINOS="$(usex trilinos)" ) - # Do a little dance for purely cosmetic "QA" reasons. + # Do a little dance for purely cosmetic QA reasons. use opencascade && mycmakeargs+=( - -DOPENCASCADE_DIR="${CASROOT}/$(get_libdir)/opencascade-${CAS_VERSION}" - -DOPENCASCADE_INCLUDE_DIR="${CASROOT}/include/opencascade-${CAS_VERSION}" + -DOPENCASCADE_DIR="${CASROOT}/$(get_libdir)/opencascade" ) - # Do a little dance for purely cosmetic "QA" reasons. The build system + # Do a little dance for purely cosmetic QA reasons. The build system # does query for the highest instruction set first and skips the other # variables if a "higher" variant is set if use cpu_flags_x86_avx512f; then mycmakeargs+=( -DDEAL_II_HAVE_AVX512=yes ) + append-cxxflags "-mavx512f" elif use cpu_flags_x86_avx; then mycmakeargs+=( -DDEAL_II_HAVE_AVX=yes ) + append-cxxflags "-mavx2" elif use cpu_flags_x86_avx; then mycmakeargs+=( -DDEAL_II_HAVE_SSE2=yes ) + append-cxxflags "-msse2" fi cmake_src_configure |