Skip to content

Commit

Permalink
stacks: fix for @ in exe_path (#11580)
Browse files Browse the repository at this point in the history
* stacks: fix for @ in exe_path

* stacks: fixed path
  • Loading branch information
bernt-matthias authored and druvus committed Oct 26, 2018
1 parent 3d03503 commit 68165e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions recipes/stacks/2.2/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@ fi

export CXXFLAGS="${CXXFLAGS} -std=c++11"

./configure --prefix=$PREFIX --enable-bam
./configure --prefix="$PREFIX" --enable-bam
make
make install
# copy missing scripts
cp -p scripts/{convert_stacks.pl,extract_interpop_chars.pl} $PREFIX/bin/
cp -p scripts/{convert_stacks.pl,extract_interpop_chars.pl} "$PREFIX/bin/"

# after installation the exe_dir is set to the absolute binary path
# this is not necessary and leads to an error if there are characters
# like @ included (Galaxy)
for i in ref_map.pl denovo_map.pl
do
sed -i -e 's/\(my $exe_path\s\+= \).*/\1"";/' "$PREFIX/bin/$i"
done

2 changes: 1 addition & 1 deletion recipes/stacks/2.2/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package:
version: {{ version }}

build:
number: 0
number: 1

source:
sha256: {{ hash }}
Expand Down

0 comments on commit 68165e2

Please sign in to comment.