Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
453331db
Commit
453331db
authored
8 years ago
by
Denis Davydov
Committed by
Todd Gamblin
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
dealii: switch to CMakePackage and minor cleanup (#2237)
parent
1eeef97c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/dealii/package.py
+6
-11
6 additions, 11 deletions
var/spack/repos/builtin/packages/dealii/package.py
with
6 additions
and
11 deletions
var/spack/repos/builtin/packages/dealii/package.py
+
6
−
11
View file @
453331db
...
...
@@ -23,10 +23,9 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from
spack
import
*
import
sys
class
Dealii
(
Package
):
class
Dealii
(
CMake
Package
):
"""
C++ software library providing well-documented tools to build finite
element codes for a broad variety of PDEs.
"""
homepage
=
"
https://www.dealii.org
"
...
...
@@ -118,7 +117,8 @@ class Dealii(Package):
depends_on
(
"
numdiff
"
,
when
=
'
@develop
'
)
depends_on
(
"
astyle@2.04
"
,
when
=
'
@develop
'
)
def
install
(
self
,
spec
,
prefix
):
def
cmake_args
(
self
):
spec
=
self
.
spec
options
=
[]
options
.
extend
(
std_cmake_args
)
...
...
@@ -127,7 +127,6 @@ def install(self, spec, prefix):
if
word
.
startswith
(
'
-DCMAKE_BUILD_TYPE
'
):
options
.
remove
(
word
)
dsuf
=
'
dylib
'
if
sys
.
platform
==
'
darwin
'
else
'
so
'
lapack_blas
=
spec
[
'
lapack
'
].
lapack_libs
+
spec
[
'
blas
'
].
blas_libs
options
.
extend
([
'
-DCMAKE_BUILD_TYPE=DebugRelease
'
,
...
...
@@ -215,9 +214,9 @@ def install(self, spec, prefix):
'
-DNETCDF_FOUND=true
'
,
'
-DNETCDF_LIBRARIES=%s;%s
'
%
(
join_path
(
spec
[
'
netcdf-cxx
'
].
prefix
.
lib
,
'
libnetcdf_c++.%s
'
%
ds
uf
),
'
libnetcdf_c++.%s
'
%
ds
o_suffix
),
join_path
(
spec
[
'
netcdf
'
].
prefix
.
lib
,
'
libnetcdf.%s
'
%
ds
uf
)),
'
libnetcdf.%s
'
%
ds
o_suffix
)),
'
-DNETCDF_INCLUDE_DIRS=%s;%s
'
%
(
spec
[
'
netcdf-cxx
'
].
prefix
.
include
,
spec
[
'
netcdf
'
].
prefix
.
include
),
...
...
@@ -238,11 +237,7 @@ def install(self, spec, prefix):
'
-DDEAL_II_WITH_OPENCASCADE=OFF
'
])
cmake
(
'
.
'
,
*
options
)
make
()
if
self
.
run_tests
:
make
(
"
test
"
)
make
(
"
install
"
)
return
options
def
setup_environment
(
self
,
spack_env
,
env
):
env
.
set
(
'
DEAL_II_DIR
'
,
self
.
prefix
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment