diff tool_dependencies.xml @ 104:0b732f3cfad0 draft

Uploaded
author bgruening
date Thu, 03 Apr 2014 06:07:32 -0400
parents de242914a56a
children f258fbfead4b
line wrap: on
line diff
--- a/tool_dependencies.xml	Wed Mar 05 02:24:52 2014 -0500
+++ b/tool_dependencies.xml	Thu Apr 03 06:07:32 2014 -0400
@@ -1,49 +1,74 @@
 <?xml version="1.0"?>
 <tool_dependency>
-    <package name="libxml2" version="2.9.1">
-        <repository changeset_revision="cff446402e07" name="package_libxml2_2_9_1" owner="devteam" prior_installation_required="True" toolshed="http://testtoolshed.g2.bx.psu.edu" />
-    </package>
-    <package name="iconv" version="1.14">
-        <repository changeset_revision="5b87c1521e4d" name="package_iconv_1_14" owner="iracooke" prior_installation_required="True" toolshed="http://testtoolshed.g2.bx.psu.edu" />
+    <package name="openbabel" version="2.3.2">
+        <repository changeset_revision="8426be5149ce" name="package_openbabel_2_3" owner="iuc" prior_installation_required="True" toolshed="http://testtoolshed.g2.bx.psu.edu" />
     </package>
-    <package name="openssl" version="1.0">
-        <repository changeset_revision="d3f9ae5d3727" name="package_openssl_1_0" owner="iuc" prior_installation_required="True" toolshed="http://testtoolshed.g2.bx.psu.edu" />
+    <package name="graphicsmagick" version="1.3.18">
+        <repository changeset_revision="2fd4eb971ba5" name="package_graphicsmagick_1_3" owner="iuc" prior_installation_required="True" toolshed="http://testtoolshed.g2.bx.psu.edu" />
     </package>
-
-    <package name="ruby" version="2.0">
+    <package name="osra" version="2.0.0">
         <install version="1.0">
             <actions>
-                <action type="download_by_url">http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p451.tar.gz</action>
+                <!-- first action is always downloading -->
+                <action type="download_by_url">http://downloads.sourceforge.net/project/osra/osra/2.0.0/osra-2.0.0.tgz</action>
+
+                <!-- populate the environment variables from the dependend repos -->
                 <action type="set_environment_for_install">
-                    <repository changeset_revision="cff446402e07" name="package_libxml2_2_9_1" owner="devteam" toolshed="http://testtoolshed.g2.bx.psu.edu">
-                        <package name="libxml2" version="2.9.1" />
+                    <repository changeset_revision="8426be5149ce" name="package_openbabel_2_3" owner="iuc" toolshed="http://testtoolshed.g2.bx.psu.edu">
+                        <package name="openbabel" version="2.3.2" />
                     </repository>
-                    <repository changeset_revision="5b87c1521e4d" name="package_iconv_1_14" owner="iracooke" toolshed="http://testtoolshed.g2.bx.psu.edu">
-                        <package name="iconv" version="1.14" />
-                    </repository>
-                    <repository changeset_revision="d3f9ae5d3727" name="package_openssl_1_0" owner="iuc" toolshed="http://testtoolshed.g2.bx.psu.edu">
-                        <package name="openssl" version="1.0" />
+                    <repository changeset_revision="2fd4eb971ba5" name="package_graphicsmagick_1_3" owner="iuc" toolshed="http://testtoolshed.g2.bx.psu.edu">
+                        <package name="graphicsmagick" version="1.3.18" />
                     </repository>
                 </action>
 
-                <!-- Fails on OSX due to lack of openssl. -->
-                <action type="autoconf">--disable-install-doc</action>
+                <!--compiling potrace-1.11 -->
+                <action type="shell_command">wget http://potrace.sourceforge.net/download/potrace-1.11.tar.gz</action>
+                <action type="shell_command">tar xfvz potrace-1.11.tar.gz &amp;&amp; cd potrace-1.11 &amp;&amp; ./configure --with-libpotrace --prefix=$INSTALL_DIR/potrace/build &amp;&amp; make &amp;&amp; make install</action>
+
+                <!--compiling gocr 0.50patched -->
+                <!-- not yet possible 
+                <action type="shell_command">wget http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.50.tar.gz</action>
+                <action type="shell_command">tar xfvz gocr-0.50.tar.gz &amp;&amp; cd gocr-0.50 &amp;&amp; ./configure -|-prefix=$INSTALL_DIR/gocr/build &amp;&amp; make libs &amp;&amp; make all install</action>
+                -->
+                <action type="shell_command">wget http://downloads.sourceforge.net/project/osra/gocr-patched/gocr-0.50pre-patched.tgz</action>
+                <action type="shell_command">tar xfvz gocr-0.50pre-patched.tgz &amp;&amp; cd gocr-0.50pre-patched &amp;&amp; ./configure --prefix=$INSTALL_DIR/gocr/build &amp;&amp; make libs &amp;&amp; make all install</action>
+
+
+                <!--compiling tclap 1.2.1 -->
+                <action type="shell_command">wget http://downloads.sourceforge.net/project/tclap/tclap-1.2.1.tar.gz</action>
+                <action type="shell_command">tar xfvz tclap-1.2.1.tar.gz &amp;&amp; cd tclap-1.2.1 &amp;&amp; ./configure --prefix=$INSTALL_DIR/tclap/build &amp;&amp; make &amp;&amp; make install</action>
+
+                <!--compiling ocrad 0.21 -->
+                <action type="shell_command">wget http://mirror.checkdomain.de/gnu/ocrad/ocrad-0.21.tar.gz</action>
+                <action type="shell_command">tar xfvz ocrad-0.21.tar.gz &amp;&amp; cd ocrad-0.21 &amp;&amp; ./configure --prefix=$INSTALL_DIR/ocrad/build &amp;&amp; make &amp;&amp; make install</action>
+
+                <!--compiling cuneiform 1.1.0 -->
+                <action type="shell_command">wget https://launchpad.net/cuneiform-linux/1.1/1.1/+download/cuneiform-linux-1.1.0.tar.bz2</action>
+                <action type="shell_command">tar xfvj cuneiform-linux-1.1.0.tar.bz2 &amp;&amp; cd cuneiform-linux-1.1.0 &amp;&amp; mkdir build &amp;&amp; cd build &amp;&amp; cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR/cuneiform/build/ &amp;&amp; make &amp;&amp; make install</action>
+
+                <!--And finally OSRA 1.4.0-->
+                <!-- Extending the PATH is needed for OSRA -->
+                <action type="shell_command">export PATH=$PATH:$GRAPHICSMAGICK_ROOT_DIR/bin/ &amp;&amp; 
+                    ./configure --with-tclap-include=$INSTALL_DIR/tclap/build/include/ --with-potrace-include=$INSTALL_DIR/potrace/build/include/ --with-potrace-lib=$INSTALL_DIR/potrace/build/lib/ --with-gocr-include=$INSTALL_DIR/gocr/build/include/gocr/ --with-gocr-lib=$INSTALL_DIR/gocr/build/lib/ --with-ocrad-include=$INSTALL_DIR/ocrad/build/include/ --with-ocrad-lib=$INSTALL_DIR/ocrad/build/lib/ --with-cuneiform-include=$INSTALL_DIR/cuneiform/build/install/include/ --with-cuneiform --with-cuneiform-lib=$INSTALL_DIR/cuneiform/build/install/lib/ --with-openbabel-include=$OPENBABEL_INCLUDE_DIR/openbabel-2.0/ --with-openbabel-lib=$OPENBABEL_LIB_DIR --with-graphicsmagick-lib=$GRAPHICSMAGICK_ROOT_DIR/lib/ --with-graphicsmagick-include=$GRAPHICSMAGICK_ROOT_DIR/include/GraphicsMagick/ --prefix=$INSTALL_DIR </action>
+                <action type="shell_command">make</action>
+                <action type="shell_command">make install</action>
+
+                <action type="shell_command">rm $INSTALL_DIR/tclap/ -r</action>
+                <!--<action type="shell_command">rm $INSTALL_DIR/openbabel/ -r</action>-->
+                <action type="shell_command">rm $INSTALL_DIR/gocr/ -r</action>
+                <action type="shell_command">rm $INSTALL_DIR/ocrad/ -r</action>
+                <action type="shell_command">rm $INSTALL_DIR/cuneiform/ -r</action>
 
                 <action type="set_environment">
+                    <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$ENV[GRAPHICSMAGICK_ROOT_DIR]/lib/</environment_variable>
+                    <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/potrace/build/lib/</environment_variable>
                     <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
-                    <environment_variable action="set_to" name="RUBYLIB">$INSTALL_DIR/lib/</environment_variable>
-                    <environment_variable action="set_to" name="RUBY_HOME">$INSTALL_DIR</environment_variable>
-                    <environment_variable action="set_to" name="GALAXY_RUBY_HOME">$INSTALL_DIR</environment_variable>
-                    <!--<environment_variable name="LD_LIBRARY_PATH" action="prepend_to">$ENV[PYTHONPATH_NUMPY]</environment_variable>-->
+                    <!-- OSRA_DATA_FILES is only used by the galaxy wrapper and is not part of OSRA -->
+                    <environment_variable action="set_to" name="OSRA_DATA_FILES">$INSTALL_DIR/share</environment_variable>
                 </action>
             </actions>
         </install>
-        <readme>
-            This installs ruby 2.0.x. Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.
-            It has an elegant syntax that is natural to read and easy to write.
-            https://www.ruby-lang.org/
-
-            RUBYHOME and RUBYLIB will be set and with GALAXY_RUBY_HOME you can access the root installation directory.
-        </readme>
+        <readme>We still have a handfull of requirements</readme>
     </package>
 </tool_dependency>