annotate tool_dependencies.xml @ 0:40c69b76b46e draft

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