Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
1c0f28c5
Commit
1c0f28c5
authored
8 years ago
by
Denis Davydov
Committed by
Todd Gamblin
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gmsh: add 2.15.0 and switch to CMakePackage (#2620)
parent
da2350a1
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/gmsh/package.py
+7
-10
7 additions, 10 deletions
var/spack/repos/builtin/packages/gmsh/package.py
with
7 additions
and
10 deletions
var/spack/repos/builtin/packages/gmsh/package.py
+
7
−
10
View file @
1c0f28c5
...
...
@@ -25,7 +25,7 @@
from
spack
import
*
class
Gmsh
(
Package
):
class
Gmsh
(
CMake
Package
):
"""
Gmsh is a free 3D finite element grid generator with a built-in CAD engine
and post-processor. Its design goal is to provide a fast, light and
user-friendly meshing tool with parametric input and advanced visualization
...
...
@@ -38,6 +38,7 @@ class Gmsh(Package):
homepage
=
'
http://gmsh.info
'
url
=
'
http://gmsh.info/src/gmsh-2.11.0-source.tgz
'
version
(
'
2.15.0
'
,
'
992a4b580454105f719f5bc05441d3d392ab0b4b80d4ea07b61ca3bdc974070a
'
)
version
(
'
2.12.0
'
,
'
7fbd2ec8071e79725266e72744d21e902d4fe6fa9e7c52340ad5f4be5c159d09
'
)
version
(
'
2.11.0
'
,
'
f15b6e7ac9ca649c9a74440e1259d0db
'
)
...
...
@@ -71,16 +72,15 @@ class Gmsh(Package):
depends_on
(
'
slepc
'
,
when
=
'
+slepc+petsc
'
)
depends_on
(
'
zlib
'
,
when
=
'
+compression
'
)
def
install
(
self
,
spec
,
prefix
):
def
cmake_args
(
self
):
spec
=
self
.
spec
prefix
=
self
.
prefix
options
=
[]
options
.
extend
(
std_cmake_args
)
# Make sure native file dialogs are used
options
.
extend
([
'
-DENABLE_NATIVE_FILE_CHOOSER=ON
'
])
build_directory
=
join_path
(
self
.
stage
.
path
,
'
spack-build
'
)
source_directory
=
self
.
stage
.
source_path
options
.
append
(
'
-DCMAKE_INSTALL_NAME_DIR:PATH=%s/lib
'
%
prefix
)
# Prevent GMsh from using its own strange directory structure on OSX
...
...
@@ -135,7 +135,4 @@ def install(self, spec, prefix):
if
'
+compression
'
in
spec
:
options
.
append
(
'
-DENABLE_COMPRESSED_IO:BOOL=ON
'
)
with
working_dir
(
build_directory
,
create
=
True
):
cmake
(
source_directory
,
*
options
)
make
()
make
(
'
install
'
)
return
options
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