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

Update cmaple to 1.1.0 #51853

Merged
merged 3 commits into from
Nov 4, 2024
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
11 changes: 8 additions & 3 deletions recipes/cmaple/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ set -ex
sed -i.bak 's/-mavx/-mno-avx -mno-avx2 -march=nocona -mtune=haswell/' CMakeLists.txt

DCMAKE_ARGS=""
if [ "$(uname)" == Darwin ]; then
if [[ "$(uname)" == Darwin ]]; then
CC=$(which "$CC")
CXX=$(which "$CXX")
AR=$(which "$AR")
RANLIB=$(which "$RANLIB")
DCMAKE_ARGS=(-DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}"
-DCMAKE_CXX_COMPILER_AR="${AR}" -DCMAKE_CXX_COMPILER_RANLIB="${RANLIB}")
export CONFIG_ARGS="-DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_FIND_APPBUNDLE=NEVER"
else
export CONFIG_ARGS=""
fi

case $(uname -m) in
Expand All @@ -27,10 +30,12 @@ aarch64)
esac

mkdir build
cmake -S . -B build -DCMAKE_INSTALL_PREFIX="${PREFIX}" -G Ninja \
cmake -S . -B build -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_BUILD_TYPE=Release -G Ninja \
"${DCMAKE_ARGS[@]}" \
-DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF \
-Wno-dev -Wno-deprecated --no-warn-unused-cli
-Wno-dev -Wno-deprecated --no-warn-unused-cli \
"${CONFIG_ARGS}"

VERBOSE=1 cmake --build build --target install -j ${JOBS}

Expand Down
18 changes: 11 additions & 7 deletions recipes/cmaple/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{% set name = "cmaple" %}
{% set version = "1.0.0" %}
{% set sha256 = "68693229053d8c456028b7696ee39770ff55a3eaf3454d7087def08accbf0603" %}
{% set version = "1.1.0" %}
{% set sha256 = "72079ac3881840ce6a6d45603202a2ab9a399aa8ebaf51fbdcd85337696e4435" %}

package:
name: {{ name }}
version: {{ version | replace("-", "_") }}

build:
number: 1
number: 0
run_exports:
- {{ pin_subpackage(name, max_pin="x") }}

source:
- url: https://github.com/iqtree/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
sha256: {{ sha256 }}
# Patch necessary to build on arm, can be removed with next release
patches:
- patch

requirements:
build:
- {{ compiler('c') }}
Expand All @@ -24,6 +25,7 @@ requirements:
host:
- libgomp # [linux]
- llvm-openmp # [osx]

test:
source_files:
- example/input.fa
Expand All @@ -33,14 +35,16 @@ test:
- cmaple-aa
# Mulled builds don't work with source_files
- cmaple -aln example/input.fa # [osx]

about:
home: "https://github.com/iqtree/cmaple"
dev_url: "https://github.com/iqtree/cmaple"
doc_url: "https://github.com/iqtree/cmaple/wiki"
license: "GPL-2.0"
license_family: GPL2
license_file: LICENSE
summary: "MAximum Parsimonious Likelihood Estimation in C/C++"
summary: "MAximum Parsimonious Likelihood Estimation in C/C++."

extra:
additional-platforms:
- linux-aarch64
Expand Down
Loading