From 6f9b47fba409212d01cbc9a851f131446dd9f214 Mon Sep 17 00:00:00 2001 From: Parham Kazemi Date: Mon, 4 Nov 2024 14:24:21 -0800 Subject: [PATCH] Add ntStat (#51897) * Create meta.yaml * Create build.sh * Update meta.yaml * Rename ntstat/build.sh to recipes/ntstat/build.sh * Rename ntstat/meta.yaml to recipes/ntstat/meta.yaml * Update meta.yaml * Update meta.yaml * Update build.sh * Update build.sh * Update meta.yaml * Update meta.yaml * Update meta.yaml * Update build.sh --- recipes/ntstat/build.sh | 6 +++++ recipes/ntstat/meta.yaml | 50 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 recipes/ntstat/build.sh create mode 100644 recipes/ntstat/meta.yaml diff --git a/recipes/ntstat/build.sh b/recipes/ntstat/build.sh new file mode 100644 index 0000000000000..4fa9d5a8b56ec --- /dev/null +++ b/recipes/ntstat/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY" + +meson setup --buildtype release --prefix=$PREFIX build +meson install -C build diff --git a/recipes/ntstat/meta.yaml b/recipes/ntstat/meta.yaml new file mode 100644 index 0000000000000..b68ab46df1dd5 --- /dev/null +++ b/recipes/ntstat/meta.yaml @@ -0,0 +1,50 @@ +{% set version = "1.0.0" %} + +package: + name: ntstat + version: {{ version }} + +source: + url: https://github.com/bcgsc/ntStat/releases/download/v{{ version }}/ntStat-{{ version }}.tar.gz + sha256: cbdf691033727466aaa774c5b9a7fc549448280b53f59579d1a43d9e943f9abd + +build: + number: 0 + run_exports: + - {{ pin_subpackage('ntstat', max_pin="x") }} + +requirements: + build: + - {{ compiler('cxx') }} + - meson + - meson-python + - cmake + - python + host: + - python + - llvm-openmp # [osx] + - libgomp # [linux] + - btllib >=1.7.2 + - cpp-argparse + - cpp-tabulate + - indicators + - pybind11 + run: + - python + - ntcard + - btllib >=1.7.2 + - matplotlib-base + - numpy + - scipy + - tabulate + +test: + commands: + - ntstat --version + - ntstat count --help + +about: + home: https://github.com/bcgsc/ntStat + license: GPL-3.0-or-later + license_file: LICENSE + summary: 'a toolkit for statistical analysis of k-mer frequency and depth'