Mercurial > repos > bgruening > osra
view tool_dependencies.xml @ 3:deccc074dbfb
Uploaded
author | bgruening |
---|---|
date | Fri, 12 Apr 2013 18:14:31 -0400 |
parents | abe9670bfc44 |
children | 3b50c1d0d1e5 |
line wrap: on
line source
<tool_dependency> <package name="osra" version="1.4.0"> <install version="1.0"> <actions> <action type="download_by_url">http://downloads.sourceforge.net/project/osra/osra/1.4.0/osra-1.4.0.tgz</action> <!--compiling GraphicsMagick-1.3.18 --> <action type="shell_command">wget http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/1.3.18/GraphicsMagick-1.3.18.tar.gz</action> <action type="shell_command">tar xfvz GraphicsMagick-1.3.18.tar.gz && cd GraphicsMagick-1.3.18 && ./configure --prefix=$INSTALL_DIR/gmagick/build --enable-shared=yes && make && make install</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 && cd potrace-1.11 && ./configure --with-libpotrace --prefix=$INSTALL_DIR/potrace/build && make && make install</action> <!--compiling gocr 0.50patched --> <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 && cd gocr-0.50pre-patched && ./configure --prefix=$INSTALL_DIR/gocr/build && make libs && 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 && cd tclap-1.2.1 && ./configure --prefix=$INSTALL_DIR/tclap/build && make && 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 && cd ocrad-0.21 && ./configure --prefix=$INSTALL_DIR/ocrad/build && make && make install</action> <!--compiling openbabel 2.3.2 --> <action type="shell_command">wget http://downloads.sourceforge.net/project/openbabel/openbabel/2.3.2/openbabel-2.3.2.tar.gz</action> <action type="shell_command">tar xfvz openbabel-2.3.2.tar.gz && cd openbabel-2.3.2 && cmake . -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR/openbabel/build && make && 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 && cd cuneiform-linux-1.1.0 && mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR/cuneiform/build/ && make && make install</action> <!--And finally OSRA 1.4.0--> <!--<action type="download_by_url">http://downloads.sourceforge.net/project/osra/osra/1.4.0/osra-1.4.0.tgz</action>--> <action type="shell_command">wget http://share.gruenings.eu/osra-1.4.0-configure.patch</action> <action type="shell_command">patch configure < osra-1.4.0-configure.patch</action> <!-- Extending the PATH is needed for OSRA --> <action type="shell_command">export PATH=$PATH:$INSTALL_DIR/gmagick/build/bin/ && ./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=$INSTALL_DIR/openbabel/build/include/openbabel-2.0/ --with-openbabel-lib=$INSTALL_DIR/openbabel/build/lib/ --with-graphicsmagick-lib=$INSTALL_DIR/gmagick/build/lib/ --with-graphicsmagick-include=$INSTALL_DIR/gmagick/build/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 name="LD_LIBRARY_PATH" action="prepend_to">$INSTALL_DIR/gmagick/build/lib/</environment_variable> <environment_variable name="LD_LIBRARY_PATH" action="prepend_to">$INSTALL_DIR/potrace/build/lib/</environment_variable> <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable> <!-- OSRA_DATA_FILES is only used by the galaxy wrapper and is not part of OSRA --> <environment_variable name="OSRA_DATA_FILES" action="set_to">$INSTALL_DIR/share</environment_variable> </action> </actions> </install> <readme>We still have a handfull of requirements</readme> </package> </tool_dependency>