Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ctyper to conda #53303

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions recipes/Ctyper/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -xe

mkdir -p $PREFIX/bin

export CFLAGS="$CFLAGS -I$PREFIX/include"
export LDFLAGS="$LDFLAGS -L$PREFIX/lib"
export CPATH=${PREFIX}/include
export EIGEN_ROOT=${CONDA_PREFIX}
cd src && make -j ${CPU_COUNT} CC="${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -fPIE " CXX="${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS} -fPIE" && cd ..

cp src/ctyper $PREFIX/bin

48 changes: 48 additions & 0 deletions recipes/Ctyper/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{% set version = "1.0" %}

package:
name: Ctyper
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: Ctyper
name: ctyper

version: {{ version }}

source:
url: https://github.com/ChaissonLab/Ctyper/archive/refs/tags/v{{version}}.tar.gz
sha256: 55ea1f5a46149e5c5da1e1c2ebe4159a175d8af649ee579174fe97e8da4b91c0
patches:
- ctyper-aarch64.patch # [linux and aarch64]

build:
number: 0
run_exports:
- {{ pin_subpackage('Ctyper', max_pin='x.x') }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- {{ pin_subpackage('Ctyper', max_pin='x.x') }}
- {{ pin_subpackage('ctyper', max_pin='x.x') }}


requirements:
build:
- make
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- zlib 1.2.*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- zlib 1.2.*


host:
- zlib
- htslib
- boost
- zlib 1.2.*
- eigen
run:
- htslib
- zlib 1.2.*
- eigen

test:
commands:
- ctyper | grep 'Usage'

about:
home: https://github.com/ChaissonLab/Ctyper
license: USC-RL v1.0
license_file: LICENSE.txt
summary: 'Genotyping sequence-resolved copy-number variation using pangenomes'

extra:
additional-platforms:
- linux-aarch64
Loading