annotate tool_dependencies.xml @ 3:c85236cd100d draft

Close the shell command
author peterjc
date Wed, 14 Aug 2013 09:15:52 -0400
parents 0e536576294c
children c83440a9bdfb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
1 <?xml version="1.0"?>
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
2 <tool_dependency>
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
3 <package name="blast+" version="2.2.26+">
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
4 <install version="1.0">
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
5 <actions>
2
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
6 <action type="set_environment">
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
7 <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR</environment_variable>
1
9ff9bfdcd04f Explicit BOOST package dependency
peterjc
parents: 0
diff changeset
8 </action>
2
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
9 <!-- arch under Linux 32bit includes some variants like i386 and i686, so use as default -->
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
10 <action type="shell_command">
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
11 if [[ "$(uname)" == "Linux" ]]; then export FILENAME="ncbi-blast-2.2.26+-ia32-linux.tar.gz"; fi &amp;&amp;
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
12 if [[ "$(arch)" == "x86_64" ]]; then export FILENAME="ncbi-blast-2.2.26+-x64-linux.tar.gz"; fi &amp;&amp;
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
13 if [[ "$(uname)" == "Darwin" ]]; then export FILENAME="ncbi-blast-2.2.26+-universal-macosx.tar.gz"; fi &amp;&amp;
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
14 echo Fetching $FILENAME &amp;&amp;
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
15 if [[ "$(uname)" == "Linux" ]]; then wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.26/$FILENAME; fi &amp;&amp;
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
16 if [[ "$(uname)" == "Darwin" ]]; then curl -O ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.26/$FILENAME; fi &amp;&amp;
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
17 tar -zxvf $FILENAME &amp;&amp;
3
c85236cd100d Close the shell command
peterjc
parents: 2
diff changeset
18 echo Downloaded and decompressed
2
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
19 </action>
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
20 <!-- move the binaries to the installation directory which is now on the $PATH -->
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
21 <action type="move_directory_files">
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
22 <source_directory>ncbi-blast-2.2.26+/bin</source_directory>
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
23 <destination_directory>$INSTALL_DIR</destination_directory>
0
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
24 </action>
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
25 </actions>
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
26 </install>
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
27 <readme>
2
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
28 Downloads the precompiled 32bit Linux, 64bit Linux, or Mac OS X BLAST+
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
29 binaries from the NCBI, which is faster than performing a local compliation,
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
30 avoids any issues with build dependencies, and is more reproducible between
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
31 installations as there is no variability from the compiler or library versions.
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
32
0e536576294c Experimental shell script solution to downloading appropriate binaries.
peterjc
parents: 1
diff changeset
33 For more details, see:
0
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
34 http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;PAGE_TYPE=BlastDocs&amp;DOC_TYPE=Download
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
35 </readme>
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
36 </package>
733eee977fb8 Uploaded tool_dependency.xml previously bundled with ncbi_blast_plus repository.
peterjc
parents:
diff changeset
37 </tool_dependency>