diff --git a/recipes/gfaviz/build.sh b/recipes/gfaviz/build.sh new file mode 100644 index 0000000000000..dc87d2da8f4bd --- /dev/null +++ b/recipes/gfaviz/build.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +#qmake bugfix: qmake fails if there is no g++ executable available, even if QMAKE_CXX is explicitly set +ln -s $CXX $BUILD_PREFIX/bin/g++ +export PATH=$BUILD_PREFIX/bin/:$PATH + +# Build part +qmake +make + +# Install part +mkdir -p "${PREFIX}/bin" +if [ "$(uname)" = "Darwin" ]; then + cp "${SRC_DIR}/gfaviz.app/Contents/MacOS/gfaviz" "${PREFIX}/bin/" +else + cp "${SRC_DIR}/gfaviz" "${PREFIX}/bin/" +fi diff --git a/recipes/gfaviz/meta.yaml b/recipes/gfaviz/meta.yaml new file mode 100644 index 0000000000000..b0e59fdf42376 --- /dev/null +++ b/recipes/gfaviz/meta.yaml @@ -0,0 +1,48 @@ +{% set name = "gfaviz" %} +{% set version="1.0.0" %} +{% set hash="4bc4327dd182812a9cfd53a39632bf41f461170e142df62ebbd0ba441239a6d4" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +build: + number: 0 + run_exports: + - {{ pin_subpackage(name, max_pin="x") }} + +source: + url: https://github.com/ggonnella/gfaviz/archive/refs/tags/v{{ version }}.tar.gz + sha256: {{ hash }} + +requirements: + build: + - {{ compiler('cxx') }} + - make + host: + - qt-main =5 + - libgl-devel # [ linux ] + run: + - {{ pin_compatible('qt-main', max_pin='x.x.x') }} + +test: + commands: + - which gfaviz + - xvfb-run gfaviz --help + requires: + - {{ cdt('xorg-x11-server-xvfb') }} # [ linux ] + +about: + home: https://github.com/ggonnella/gfaviz + license: ISC + license_file: LICENSE.txt + summary: GfaViz is a graphical interactive tool for the visualization of sequence graphs in GFA format. It supports both the GFA1 and GFA2 formats. + +extra: + container: + # needed for libGL + extended-base: true + identifiers: + - doi:10.1093/bioinformatics/bty1046 + recipe-maintainers: + - pbordron