Skip to content

Commit

Permalink
Update cmaple to 1.1.0 (bioconda#51853)
Browse files Browse the repository at this point in the history
* Update cmaple to 1.1.0

* remove patch

---------

Co-authored-by: Joshua Zhuang <[email protected]>
Co-authored-by: mencian <[email protected]>
  • Loading branch information
3 people authored Nov 4, 2024
1 parent 17ddc5c commit eca545f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 573 deletions.
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

0 comments on commit eca545f

Please sign in to comment.