Skip to content

Commit

Permalink
sci-libs/trilinos: migrate from cmake-utils to cmake eclass
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Matthias Maier <[email protected]>
  • Loading branch information
tamiko committed Nov 12, 2021
1 parent 638a22a commit 8f64344
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions sci-libs/trilinos/trilinos-13.0.1-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
EAPI=7

CMAKE_MAKEFILE_GENERATOR=emake
inherit cmake-utils toolchain-funcs multilib
inherit cmake toolchain-funcs multilib

DESCRIPTION="Scientific library collection for large scale problems"
HOMEPAGE="http://trilinos.sandia.gov/"
Expand Down Expand Up @@ -183,15 +183,14 @@ src_configure() {
#
export CC=mpicc CXX=mpicxx && tc-export CC CXX

#
# cmake-utils eclass patches the base directory CMakeLists.txt
# which does not work for complex Trilinos CMake modules
#
CMAKE_BUILD_TYPE=RELEASE cmake-utils_src_configure
# Trilinos needs a custom build type:
local CMAKE_BUILD_TYPE=Release

cmake_src_configure
}

src_install() {
cmake-utils_src_install
cmake_src_install

# Clean up the mess:
mv "${ED}"/bin "${ED}/usr/$(get_libdir)"/trilinos || die "mv failed"
Expand Down

0 comments on commit 8f64344

Please sign in to comment.