Skip to content

Commit

Permalink
For VarDict-Java, install utility scripts. (#12488)
Browse files Browse the repository at this point in the history
* For VarDict-Java, install utility scripts.

Utility script that were previously only shipped with VarDict are not
part of VarDict-Java as well, making installation of both packages
unnecessary.

* Bump build.

* Improve variable name.

* Make vardict depend on vardict-java for utility scripts.
  • Loading branch information
cbrueffer authored and chapmanb committed Dec 5, 2018
1 parent ea6ec17 commit 481b146
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
7 changes: 5 additions & 2 deletions recipes/vardict-java/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ mkdir -p $PREFIX/bin

cp lib/*.jar $outdir/lib
cp bin/VarDict $outdir/bin/vardict-java
chmod +x $outdir/bin/vardict-java
ln -s $outdir/bin/vardict-java $PREFIX/bin
cp bin/*.{R,pl} $outdir/bin
for executable in vardict-java testsomatic.R teststrandbias.R var2vcf_paired.pl var2vcf_valid.pl; do
chmod +x $outdir/bin/$executable
ln -s $outdir/bin/$executable $PREFIX/bin
done
5 changes: 4 additions & 1 deletion recipes/vardict-java/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ source:
sha256: 36a177b06114ea939d24f7037b6e339b58e572763736a589232f0ced3731735b

build:
number: 0
number: 1
noarch: generic

requirements:
run:
- openjdk
- perl
- r-base

test:
commands:
- vardict-java -h
- var2vcf_paired.pl -h

about:
home: https://github.com/AstraZeneca-NGS/VarDictJava
Expand Down
4 changes: 0 additions & 4 deletions recipes/vardict/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,4 @@ chmod a+x $outdir/*.pl
chmod a+x $outdir/*.R
ln -s $outdir/vardict.pl $PREFIX/bin/vardict
ln -s $outdir/vardict.pl $PREFIX/bin
ln -s $outdir/testsomatic.R $PREFIX/bin
ln -s $outdir/teststrandbias.R $PREFIX/bin
ln -s $outdir/var2vcf_valid.pl $PREFIX/bin
ln -s $outdir/var2vcf_paired.pl $PREFIX/bin
ln -s $outdir/vardict2mut.pl $PREFIX/bin
6 changes: 3 additions & 3 deletions recipes/vardict/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ source:
sha256: '{{sha256}}'

build:
number: 0
number: 1

requirements:
host:
- perl
- r-base
- vardict-java
run:
- perl
- r-base
- vardict-java

test:
commands:
Expand Down

0 comments on commit 481b146

Please sign in to comment.