Skip to content

Commit

Permalink
fix qmake g++ not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
pbordron committed Dec 12, 2024
1 parent c5adc5c commit 456a6bc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
18 changes: 18 additions & 0 deletions recipes/gfaviz/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/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

qmake
make
mkdir -p "${PREFIX}/bin"

#if [ -z ${MACOSX_DEPLOYMENT_TARGET+x} ]; then

# Install part
if [ "$(uname)" = "Darwin" ]; then
cp "${SRC_DIR}/gfaviz.app/Contents/MacOS/gfaviz" "${PREFIX}/bin/" # [ osx ]
else
cp "${SRC_DIR}/gfaviz" "${PREFIX}/bin/" # [ linux ]
fi
26 changes: 12 additions & 14 deletions recipes/gfaviz/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,32 @@
{% set hash="4bc4327dd182812a9cfd53a39632bf41f461170e142df62ebbd0ba441239a6d4" %}

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

build:
number: 0
skip: True # [ windows ]
run_exports:
- {{ pin_subpackage(name, max_pin="x") }}
script:
- qmake
- make
- mkdir -p {{ PREFIX }}/bin
- cp {{ SRC_DIR }}/gfaviz.app/Contents/MacOS/gfaviz {{ PREFIX }}/bin/ # [ osx ]
- cp {{ SRC_DIR }}/gfaviz {{ PREFIX }}/bin/ # [ linux ]

source:
url: https://github.com/ggonnella/gfaviz/archive/refs/tags/v{{ version }}.tar.gz
sha256: {{ hash }}


requirements:
build:
- {{ compiler('cxx') }}
- qt =5
- make
host:
- qt-main =5
- libgl-devel # [ linux ]
run:
# - qt =5
- {{ pin_compatible('qt', max_pin='x.x.x') }}
- {{ pin_compatible('qt-main', max_pin='x.x.x') }}

test:
commands:
- gfaviz --no-gui
- gfaviz --help
- which gfaviz
# - gfaviz --help

about:
home: https://github.com/ggonnella/gfaviz
Expand All @@ -44,5 +37,10 @@ about:
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

0 comments on commit 456a6bc

Please sign in to comment.