Skip to content

Commit

Permalink
lumpy: trying to fix skipped build (#10338)
Browse files Browse the repository at this point in the history
* lumpy: use python version restriction instead of selector

* lumpy: pass on compiler/linker flags to make

* lumpy: add C(PLUS)?_INCLUDE_PATH exports again because the world ain't perfect

* lumpy-sv: also export LIBRARY_PATH...

* lumpy-sv: fix extractSplitReads_BwaMem path
  • Loading branch information
mbargull authored and bgruening committed Aug 9, 2018
1 parent 463c2e9 commit dc016fa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
21 changes: 15 additions & 6 deletions recipes/lumpy-sv/build.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
#!/bin/bash
set -eu -o pipefail

export CPPFLAGS="-I$PREFIX/include"
export LDFLAGS="-L$PREFIX/lib"
export C_INCLUDE_PATH=${PREFIX}/include
export CPLUS_INCLUDE_PATH=${PREFIX}/include
# The project's Makefiles don't use {CPP,C,CXX,LD}FLAGS everywhere.
# We can try to patch all of those or export the following *_PATH variables.
export C_INCLUDE_PATH="${PREFIX}/include"
export CPLUS_INCLUDE_PATH="${PREFIX}/include"
export LIBRARY_PATH="${PREFIX}/lib"

outdir=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM
mkdir -p $outdir
mkdir -p $outdir/scripts
mkdir -p $outdir/scripts/bamkit
mkdir -p $PREFIX/bin

make
make \
CC="${CC}" \
CXX="${CXX}" \
CPPFLAGS="${CPPFLAGS}" \
CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}" \
LDFLAGS="${LDFLAGS}" \
ZLIB_PATH="${PREFIX/lib}"

cp bin/lumpy $PREFIX/bin
cp bin/lumpy_filter $PREFIX/bin
cp scripts/lumpyexpress $PREFIX/bin
Expand All @@ -29,6 +38,6 @@ cp scripts/bamkit/* $outdir/scripts/bamkit

cp $RECIPE_DIR/lumpyexpress.config $outdir
ln -s $outdir/lumpyexpress.config $PREFIX/bin
ln -s $outdir/extractSplitReads_BwaMem /$PREFIX/bin
ln -s $outdir/scripts/extractSplitReads_BwaMem $PREFIX/bin

chmod +x $PREFIX/bin/extractSplitReads_BwaMem
7 changes: 2 additions & 5 deletions recipes/lumpy-sv/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

package:
name: lumpy-sv
version: 0.2.14a
Expand All @@ -10,8 +9,7 @@ source:
#sha256: 1a7a5d18875b297acaa68ee1e864ca048654ebc85348920b518dc689d2b7a3cf

build:
number: 3
skip: True # [py3k]
number: 2

requirements:
build:
Expand All @@ -21,10 +19,9 @@ requirements:
host:
- zlib
- curl

run:
- zlib
- python
- python 2.7.*
- samtools
- gawk
- curl
Expand Down

0 comments on commit dc016fa

Please sign in to comment.