0
|
1 <tool_dependency>
|
|
2 <package name="openbabel" version="2.3.2">
|
|
3 <install version="1.0">
|
|
4 <actions>
|
|
5 <action type="download_by_url">http://downloads.sourceforge.net/project/openbabel/openbabel/2.3.2/openbabel-2.3.2.tar.gz</action>
|
|
6 <!--
|
|
7 Huge hack, to point to the actual python lib path. Cmake gets confused with mixed python versions (2.x and 3.x) and we need to point explicitely to the recent version.
|
|
8 -->
|
|
9 <action type="shell_command">cmake . -DPYTHON_BINDINGS=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DPYTHON_LIBRARY=`python -c 'import sys; print "%s/lib/python%s.%s/config/libpython%s.%s.so" % (sys.exec_prefix, sys.version_info.major, sys.version_info.minor, sys.version_info.major, sys.version_info.minor)'`</action>
|
|
10 <action type="shell_command">make</action>
|
|
11 <action type="shell_command">make install</action>
|
|
12 <action type="set_environment">
|
|
13 <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable>
|
|
14 <environment_variable name="PYTHONPATH" action="prepend_to">$INSTALL_DIR/lib/</environment_variable>
|
1
|
15 <!-- internal variables for open babel -->
|
0
|
16 <environment_variable name="BABEL_DATADIR" action="set_to">$INSTALL_DIR/share/openbabel</environment_variable>
|
|
17 <environment_variable name="BABEL_LIBDIR" action="set_to">$INSTALL_DIR/lib/openbabel/2.3.2</environment_variable>
|
1
|
18 <!-- galaxy variables for other tool wrappers -->
|
|
19 <environment_variable name="OPENBABEL_LIB_DIR" action="set_to">$INSTALL_DIR/lib/</environment_variable>
|
|
20 <environment_variable name="OPENBABEL_INCLUDE_DIR" action="set_to">$INSTALL_DIR/include/</environment_variable>
|
0
|
21 </action>
|
|
22 </actions>
|
|
23 </install>
|
1
|
24 <readme>Compiling OpenBabel requires g++ and CMake 2.4+. Optional but required for a few features is Eigen version 2 or newer and the cairo development libraries. OPENBABEL_INCLUDE_DIR and OPENBABEL_LIB_DIR can be accessed from other tool wrappers.</readme>
|
0
|
25 </package>
|
|
26 </tool_dependency>
|