Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding MGIS (MFrontGenericInterfaceSupport) by tfel #23818

Merged
merged 19 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions recipes/mgis/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

mkdir build
cd build

export TFELHOME="${PREFIX}"
python_version="${CONDA_PY:0:1}.${CONDA_PY:1:2}"

cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-Denable-c-bindings=OFF \
-Denable-fortran-bindings=OFF \
-Denable-python-bindings=ON \
-Denable-portable-build=ON \
-Denable-julia-bindings=OFF \
-Denable-website=OFF \
-Denable-broken-boost-python-module-visibility-handling=ON \
-DPYTHONLIBS_VERSION_STRING="${CONDA_PY}" \
-DPython_ADDITIONAL_VERSIONS="${python_version}" \
-DPYTHON_EXECUTABLE:FILEPATH="${PREFIX}/bin/python" \
-DPYTHON_LIBRARY:FILEPATH="${PREFIX}/lib/libpython${python_version}.so" \
-DPYTHON_LIBRARY_PATH:PATH="${PREFIX}/lib" \
-DPYTHON_INCLUDE_DIRS:PATH="${PREFIX}/include" \
-DUSE_EXTERNAL_COMPILER_FLAGS=ON \
${CMAKE_ARGS}

make -j$CPU_COUNT
make install
6 changes: 6 additions & 0 deletions recipes/mgis/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
c_compiler_version:
- 8 # [unix]
cxx_compiler_version:
- 8 # [unix]
fortran_compiler_version:
- 8 # [unix]
65 changes: 65 additions & 0 deletions recipes/mgis/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{% set name = "mgis" %}
{% set version = "2.1" %}

package:
name: '{{ name|lower }}'
version: '{{ version }}'

source:
- fn: '{{ name }}_{{ version }}.tar.gz'
url: https://github.com/thelfer/MFrontGenericInterfaceSupport/archive/refs/tags/MFrontGenericInterfaceSupport-{{ version }}.tar.gz
sha256: f5b556aab130da0c423f395fe4c35d6bf509dd8fc958242f2e37ea788464aea9

build:
number: 0
detect_binary_files_with_prefix: true
skip: true # [py2k or osx or win or (python_impl == 'pypy')]

requirements:
build:
- "{{ compiler('c') }}"
- "{{ compiler('cxx') }}"
- "{{ compiler('fortran') }}"
- cmake >=3.26.4
- autoconf
- make

host:
- python
- boost 1.78
- numpy
- mfront 4.1.0

run:
- mfront
- boost
- python

test:
imports:
- mgis
requires:
- pip
commands:
- pip check
# Check for libMFrontGenericInterface.so library
- test -f $PREFIX/lib/libMFrontGenericInterface.so
carterbox marked this conversation as resolved.
Show resolved Hide resolved
- test -f $PREFIX/include/MGIS/Config.hxx
- test -f $PREFIX/share/mgis/cmake/MFrontGenericInterfaceConfig.cmake


about:
home: https://thelfer.github.io/mgis/web/index.html
license: LGPL-3.0-or-later and CECILL-C
license_file:
- LGPL-3.0.txt
- CeCILL-C_V1-en.txt
- CeCILL-C_V1-fr.txt
summary: 'MGIS - MFrontGenericInterfaceSupport '
description: |
This project aims at proving tools (functions, classes, bindings, etc…) to handle behaviours written using MFront generic interface
doc_url: https://github.com/thelfer/MFrontGenericInterfaceSupport

extra:
recipe-maintainers:
- Krande