# HG changeset patch # User bgruening # Date 1366902309 14400 # Node ID 3b50c1d0d1e53c7443e31995e53c972355aa5d64 # Parent deccc074dbfb0b5a7006ef8edc75033a11c5d792 Uploaded diff -r deccc074dbfb -r 3b50c1d0d1e5 osra.py --- a/osra.py Fri Apr 12 18:14:31 2013 -0400 +++ b/osra.py Thu Apr 25 11:05:09 2013 -0400 @@ -5,7 +5,8 @@ """ OSRA_DATA_FILES is set during the toolshed Installation - if it is not set, use the standard configuration of OSRA and hope the best. + If it is not set, use the standard configuration of OSRA. + That means we need to delete argument 4-7. That script is a hack, because we do not know the content of OSRA_DATA_FILES at xml evaluation time. osra -f $oformat $infile diff -r deccc074dbfb -r 3b50c1d0d1e5 tool_dependencies.xml --- a/tool_dependencies.xml Fri Apr 12 18:14:31 2013 -0400 +++ b/tool_dependencies.xml Thu Apr 25 11:05:09 2013 -0400 @@ -1,8 +1,20 @@ + + + + http://downloads.sourceforge.net/project/osra/osra/1.4.0/osra-1.4.0.tgz + + + + + + + + wget http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/1.3.18/GraphicsMagick-1.3.18.tar.gz 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 @@ -24,10 +36,10 @@ wget http://mirror.checkdomain.de/gnu/ocrad/ocrad-0.21.tar.gz tar xfvz ocrad-0.21.tar.gz && cd ocrad-0.21 && ./configure --prefix=$INSTALL_DIR/ocrad/build && make && make install - + wget https://launchpad.net/cuneiform-linux/1.1/1.1/+download/cuneiform-linux-1.1.0.tar.bz2 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 @@ -37,12 +49,12 @@ wget http://share.gruenings.eu/osra-1.4.0-configure.patch patch configure < osra-1.4.0-configure.patch - 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 + 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=$OPENBABEL_INCLUDE_DIR/openbabel-2.0/ --with-openbabel-lib=$OPENBABEL_LIB_DIR --with-graphicsmagick-lib=$INSTALL_DIR/gmagick/build/lib/ --with-graphicsmagick-include=$INSTALL_DIR/gmagick/build/include/GraphicsMagick/ --prefix=$INSTALL_DIR make make install rm $INSTALL_DIR/tclap/ -r - rm $INSTALL_DIR/openbabel/ -r + rm $INSTALL_DIR/gocr/ -r rm $INSTALL_DIR/ocrad/ -r rm $INSTALL_DIR/cuneiform/ -r