Lines 7-14
Link Here
|
7 |
|
7 |
|
8 |
DESCRIPTION="Scientific library collection for large scale problems" |
8 |
DESCRIPTION="Scientific library collection for large scale problems" |
9 |
HOMEPAGE="http://trilinos.sandia.gov/" |
9 |
HOMEPAGE="http://trilinos.sandia.gov/" |
10 |
SRC_URI="${P}-Source.tar.gz" |
10 |
SRC_URI="${P}-Source.tar.bz2" |
11 |
SRC_PAGE="10.10" |
11 |
SRC_PAGE="10.12" |
12 |
|
12 |
|
13 |
KEYWORDS="~amd64 ~x86" |
13 |
KEYWORDS="~amd64 ~x86" |
14 |
RESTRICT="fetch" |
14 |
RESTRICT="fetch" |
Lines 65-80
Link Here
|
65 |
) |
65 |
) |
66 |
} |
66 |
} |
67 |
|
67 |
|
|
|
68 |
src_prepare() { |
69 |
epatch "${FILESDIR}"/${P}-fix-install-paths.patch |
70 |
} |
71 |
|
68 |
src_configure() { |
72 |
src_configure() { |
69 |
CMAKE_BUILD_TYPE="release" |
73 |
CMAKE_BUILD_TYPE="release" |
|
|
74 |
|
70 |
mycmakeargs=( |
75 |
mycmakeargs=( |
71 |
-DBUILD_SHARED_LIBS=ON |
76 |
-DBUILD_SHARED_LIBS=ON |
72 |
-DTrilinos_ENABLE_ALL_PACKAGES=ON |
77 |
-DTrilinos_ENABLE_ALL_PACKAGES=ON |
73 |
|
78 |
|
74 |
# Directories (workaround for generating correct Makefiles and CMakefiles) |
79 |
-DTrilinos_INSTALL_BIN_DIR="bin" |
75 |
-DCMAKE_INSTALL_PREFIX="/" |
80 |
-DTrilinos_INSTALL_CONFIG_DIR="$(get_libdir)/cmake" |
76 |
-DTrilinos_INSTALL_INCLUDE_DIR="/usr/include/trilinos" |
81 |
-DTrilinos_INSTALL_INCLUDE_DIR="include/trilinos" |
77 |
-DTrilinos_INSTALL_LIB_DIR="/usr/$(get_libdir)/trilinos" |
82 |
-DTrilinos_INSTALL_LIB_DIR="$(get_libdir)/trilinos" |
78 |
|
83 |
|
79 |
# Tests |
84 |
# Tests |
80 |
$(cmake-utils_use test Trilinos_ENABLE_TESTS) |
85 |
$(cmake-utils_use test Trilinos_ENABLE_TESTS) |
Lines 107-113
Link Here
|
107 |
|
112 |
|
108 |
# Scotch libraries |
113 |
# Scotch libraries |
109 |
if use scotch; then |
114 |
if use scotch; then |
110 |
mycmakeargs+=( -DScotch_INCLUDE_DIRS="/usr/include/scotch" ) |
115 |
mycmakeargs+=( -DScotch_INCLUDE_DIRS="${EPREFIX}/usr/include/scotch" ) |
111 |
fi |
116 |
fi |
112 |
|
117 |
|
113 |
# Add BLAS libraries |
118 |
# Add BLAS libraries |
Lines 116-122
Link Here
|
116 |
trilinos_alternatives scalapack SCALAPACK |
121 |
trilinos_alternatives scalapack SCALAPACK |
117 |
trilinos_alternatives scalapack BLACS |
122 |
trilinos_alternatives scalapack BLACS |
118 |
|
123 |
|
119 |
mycmakeargs+=( -DBLACS_INCLUDE_DIRS="/usr/include/blacs" ) |
124 |
mycmakeargs+=( -DBLACS_INCLUDE_DIRS="${EPREFIX}/usr/include/blacs" ) |
120 |
|
125 |
|
121 |
cmake-utils_src_configure |
126 |
cmake-utils_src_configure |
122 |
} |
127 |
} |