Skip to content

Commit

Permalink
Add libgff recipe (#51706)
Browse files Browse the repository at this point in the history
  • Loading branch information
mencian authored Oct 28, 2024
1 parent ce97b38 commit 12b3152
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
16 changes: 16 additions & 0 deletions recipes/libgff/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

export M4="${BUILD_PREFIX}/bin/m4"

if [[ `uname` == "Darwin" ]]; then
export CONFIG_ARGS="-DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_FIND_APPBUNDLE=NEVER"
else
export CONFIG_ARGS=""
fi

cmake -S . -B build -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER="${CXX}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
"${CONFIG_ARGS}"

cmake --build build --target install -j "${CPU_COUNT}" -v
42 changes: 42 additions & 0 deletions recipes/libgff/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{% set name = "libgff" %}
{% set version = "2.0.0" %}
{% set sha256 = "7656b19459a7ca7d2fd0fcec4f2e0fd0deec1b4f39c703a114e8f4c22d82a99c" %}

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

source:
url: https://github.com/COMBINE-lab/libgff/archive/refs/tags/v{{ version }}.tar.gz
sha256: {{ sha256 }}

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

requirements:
build:
- make
- cmake
- {{ compiler('cxx') }}
host:
- bzip2
- zlib
- xz

test:
commands:
- "ls ${PREFIX}/lib/libgff.a"

about:
home: https://github.com/COMBINE-lab/libgff
license: MIT
license_family: MIT
summary: 'A simple "libraryfication" of the GFF/GTF parsing code that is used in GFFRead codebase.'
dev_url: https://github.com/COMBINE-lab/libgff

extra:
additional-platforms:
- linux-aarch64
- osx-arm64

0 comments on commit 12b3152

Please sign in to comment.