Skip to content

Commit

Permalink
Add lrge v0.1.1 (#52356)
Browse files Browse the repository at this point in the history
* add lrge v0.1.0

* fix incorrect usage of stdlib

* remove comment

* skip whitespace lint

* specify package to install

* specify bin instead of package

* specify path to bin crate

* add zlib to requirements

* update to 0.1.1

* move to build script and set CFLAGS

* try bindgen flags

* try rustflags

* add clangdev
  • Loading branch information
mbhall88 authored Nov 26, 2024
1 parent 3e0acde commit 264fbfd
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
12 changes: 12 additions & 0 deletions recipes/lrge/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -euo pipefail

export INCLUDE_PATH="${PREFIX}/include"
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
export CFLAGS="${CFLAGS} -O3 -fcommon"
export CXXFLAGS="${CFLAGS} -O3 -fcommon -I${PREFIX}/include"

cargo-bundle-licenses --format yaml --output THIRDPARTY.yml

RUST_BACKTRACE=full RUSTFLAGS="-C linker=$CC" cargo install -v --locked --no-track --root "$PREFIX" --path lrge
47 changes: 47 additions & 0 deletions recipes/lrge/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% set version = "0.1.1" %}
{% set name = "lrge" %}

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

source:
url: https://github.com/mbhall88/{{ name }}/archive/{{ name }}-{{ version }}.tar.gz
sha256: 768b26435c8afa3eda00889818937276a0f0b0b8a2f0e3e17d67f183915c3da2

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

requirements:
build:
- {{ compiler('rust') }}
- cargo-bundle-licenses
- {{ compiler('c') }}
- {{ stdlib('c') }}
- zlib
host:
- zlib
- clangdev

test:
commands:
- lrge --version

about:
home: https://github.com/mbhall88/lrge
license: MIT
license_file:
- LICENSE
- THIRDPARTY.yml
summary: Genome size estimation from long read overlaps

extra:
skip-lints:
- version_constraints_missing_whitespace # see https://github.com/bioconda/bioconda-recipes/issues/51185
additional-platforms:
- linux-aarch64
- osx-arm64
recipe-maintainers:
- mbhall88

0 comments on commit 264fbfd

Please sign in to comment.