Skip to content

Commit

Permalink
Update simpleaf to 0.19.0 (#53475)
Browse files Browse the repository at this point in the history
* Update simpleaf to 0.19.0

* Update meta.yaml

* Update build.sh

* Update build.sh

* Update build.sh

---------

Co-authored-by: Rob Patro <rob-p@users.noreply.github.com>
  • Loading branch information
BiocondaBot and rob-p authored Jan 25, 2025
1 parent 5665c74 commit 72ab8cc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
28 changes: 23 additions & 5 deletions recipes/simpleaf/build.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
#!/bin/bash -euo

export CFLAGS="${CFLAGS} -fcommon"
export CXXFLAGS="${CFLAGS} -fcommon"

if [ "$(uname)" == "Darwin" ]; then
export CFLAGS="${CFLAGS} -fno-define-target-os-macros"
export CXXFLAGS="${CXXFLAGS} -fno-define-target-os-macros"
unamestr=`uname`

if [ "$unamestr" == 'Darwin' ];
then
if [[ $(uname -m) == 'x86_64' ]]; then
echo "OSX x86-64: attempting to fix broken (old) SDK behavior"
export CFLAGS="${CFLAGS} -D_LIBCPP_HAS_NO_C11_ALIGNED_ALLOC -UHAVE_ALIGNED_ALLOC -D__APPLE__"
export CXXFLAGS="${CXXFLAGS} -D_LIBCPP_HAS_NO_C11_ALIGNED_ALLOC -UHAVE_ALIGNED_ALLOC -D__APPLE__"
fi
export MACOSX_DEPLOYMENT_TARGET=10.15
export MACOSX_SDK_VERSION=10.15
export CFLAGS="${CFLAGS} -fcommon -D_LIBCPP_DISABLE_AVAILABILITY -fno-define-target-os-macros"
export CXXFLAGS="${CXXFLAGS} -fcommon -D_LIBCPP_DISABLE_AVAILABILITY"
fi

# Add workaround for SSH-based Git connections from Rust/cargo. See https://github.com/rust-lang/cargo/issues/2078 for details.
# We set CARGO_HOME because we don't pass on HOME to conda-build, thus rendering the default "${HOME}/.cargo" defunct.
export CARGO_NET_GIT_FETCH_WITH_CLI=true CARGO_HOME="$(pwd)/.cargo"
export CARGO_NET_GIT_FETCH_WITH_CLI=true
export CARGO_HOME="$(pwd)/.cargo"

if [ "$unamestr" == 'Darwin' ];
then
# build statically linked binary with Rust
RUST_BACKTRACE=1 cargo install --locked --verbose --root $PREFIX --path .
CONDA_BUILD=TRUE RUSTFLAGS="-C link-args=-Wl,-undefined,dynamic_lookup" RUST_BACKTRACE=1 cargo install -v -v -j 1 --locked --verbose --root $PREFIX --path .
else
# build statically linked binary with Rust
CONDA_BUILD=TRUE RUSTFLAGS="-L $PREFIX/lib64" RUST_BACKTRACE=1 cargo install -v -v --locked --verbose --root $PREFIX --path .
fi
7 changes: 4 additions & 3 deletions recipes/simpleaf/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
{% set version = "0.18.4" %}
{% set version = "0.19.0" %}

package:
name: simpleaf
version: {{ version }}

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

source:
url: https://github.com/COMBINE-lab/simpleaf/archive/v{{ version }}.tar.gz
sha256: 52f39e264e41bf6d405b3bfcf6e6e968d0b8237cac6d0db5f54e02c658792998
sha256: 76347b27a36d0e28cde539a5b5c6261a1a025733dac83cf7889e2104ff8f250b

requirements:
build:
- autoconf
- make
- cmake
- {{ compiler('cxx') }}
- {{ compiler('rust') }}
- pkg-config
Expand Down

0 comments on commit 72ab8cc

Please sign in to comment.