Skip to content

Commit

Permalink
Try original conda recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
CamilaDuitama committed Jan 20, 2025
1 parent be2a098 commit c0eb9dd
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 132 deletions.
31 changes: 17 additions & 14 deletions recipes/muset/build.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
#!/bin/bash
set -ex
set -e
set -x

# Create build directory
mkdir -p build && cd build
mkdir -p ${PREFIX}/bin

# CMake configuration
cmake .. \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCONDA_BUILD=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_STANDARD=17 \
-DARCH_NATIVE=OFF
mkdir build-conda
cd build-conda

# Build with parallel compilation
make -j4
echo "Current directory: ${PWD}"
ls -lh

# Install
make install
cmake .. -DCONDA_BUILD=ON
make -j8
cd ..

echo "Current directory: ${PWD}"
ls -lh

cp ./bin/kmat_tools ${PREFIX}/bin
cp ./bin/muset ${PREFIX}/bin
cp ./bin/muset_pa ${PREFIX}/bin
14 changes: 11 additions & 3 deletions recipes/muset/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
c_compiler:
- gcc # [linux]
- clang # [osx]
c_compiler_version: # [unix]
- 12 # [linux]
- 16 # [osx]
cxx_compiler:
- gxx
cxx_compiler_version:
- 7.3
- gxx # [linux]
- clangxx # [osx]
cxx_compiler_version: # [unix]
- 12 # [linux]
- 16 # [osx]
100 changes: 0 additions & 100 deletions recipes/muset/external_projects.patch

This file was deleted.

31 changes: 16 additions & 15 deletions recipes/muset/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
{% set name = "muset" %}
{% set version = "0.5.1" %}

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

source:
url: https://github.com/camiladuitama/muset/archive/v{{ version }}.tar.gz
url: https://github.com/CamilaDuitama/muset/archive/v{{ version }}.tar.gz
sha256: 0f924e44e2af25397147e40934e024180a8b65c715750f2e9aacdb72fedeb600
recursive: True
patches:
- external_projects.patch

build:
number: 0
number: 1
skip: True # [not linux]
run_exports:
- {{ pin_subpackage('muset', max_pin="x.x") }}

requirements:
build:
- {{ compiler('cxx') }}
- cmake >=3.15
- make

host:
- zlib

run:
- bioconda::ggcat >=1.1.0
- zlib

test:
commands:
- muset --help

about:
home: https://github.com/camiladuitama/muset
license: AGPL-3.0
license_file: LICENSE
summary: 'A pipeline for building an abundance unitig matrix from a list of FASTA/FASTQ files'
description: |
MUSET is a software for generating an abundance unitig matrix from a collection
of input samples (in FASTA/Q format).
home: "https://github.com/CamilaDuitama/muset"
license: MIT
description: "A pipeline for building an abundance unitig matrix from a list of FASTA/FASTQ files."
dev_url: "https://github.com/CamilaDuitama/muset"

extra:
recipe-maintainers:
Expand Down

0 comments on commit c0eb9dd

Please sign in to comment.