|
0
|
1 <?xml version="1.0"?>
|
|
|
2 <tool_dependency>
|
|
|
3 <package name="cmake" version="3.2.3">
|
|
|
4 <repository changeset_revision="2da7b99cb1a1" name="package_cmake_3_2_3" owner="iuc" prior_installation_required="True" toolshed="https://testtoolshed.g2.bx.psu.edu" />
|
|
|
5 </package>
|
|
|
6 <package name="icqsol" version="1.0">
|
|
|
7 <install version="1.0">
|
|
|
8 <actions_group>
|
|
|
9 <actions architecture="x86_64" os="linux">
|
|
|
10 <!-- Install and compile Anaconda 2.3.0 which provides Python 2.7.10 -->
|
|
|
11 <action target_filename="Anaconda-2.3.0-Linux-x86_64.sh" type="download_file">https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.3.0-Linux-x86_64.sh</action>
|
|
|
12
|
|
|
13 <action type="set_environment_for_install">
|
|
|
14 <repository changeset_revision="2da7b99cb1a1" name="package_cmake_3_2_3" owner="iuc" toolshed="https://testtoolshed.g2.bx.psu.edu">
|
|
|
15 <package name="cmake" version="3.2.3" />
|
|
|
16 </repository>
|
|
|
17 </action>
|
|
|
18
|
|
|
19 <action type="shell_command">bash Anaconda-2.3.0-Linux-x86_64.sh -b -f -p $INSTALL_DIR</action>
|
|
|
20
|
|
|
21 <!-- Install VTK 6.3.0 into the above Python -->
|
|
|
22 <action type="make_directory">$TMP_WORK_DIR/vtk</action>
|
|
|
23 <action type="change_directory">$TMP_WORK_DIR/vtk</action>
|
|
|
24 <action target_filename="VTK-6.2.0.tar.gz" type="download_file">http://www.vtk.org/files/release/6.2/VTK-6.2.0.tar.gz</action>
|
|
|
25 <action type="shell_command">tar xfvz VTK-6.2.0.tar.gz</action>
|
|
|
26 <action type="change_directory">VTK-6.2.0</action>
|
|
|
27 <action type="shell_command">
|
|
|
28
|
|
|
29 export PATH=$INSTALL_DIR/bin:$PATH &&
|
|
|
30 export PYTHONPATH=$INSTALL_DIR:$PYTHONPATH &&
|
|
|
31 export PKG_CONFIG_PATH=$INSTALL_DIR/lib/pkgconfig:$PKG_CONFIG_PATH &&
|
|
|
32 cmake \
|
|
|
33 -DCMAKE_BUILD_TYPE:STRING=Release \
|
|
|
34 -DCMAKE_INSTALL_PREFIX:PATH=`pwd`/../build \
|
|
|
35 -DVTK_WRAP_PYTHON:BOOL=ON \
|
|
|
36 -DVTK_Group_StandAlone:BOOL=OFF \
|
|
|
37 -DVTK_Group_Rendering:BOOL=OFF \
|
|
|
38 -DModule_vtkCommonColor:BOOL=ON \
|
|
|
39 -DModule_vtkCommonComputationalGeometry:BOOL=ON \
|
|
|
40 -DModule_vtkCommonDataModel:BOOL=ON \
|
|
|
41 -DModule_vtkCommonExecutionModel:BOOL=ON \
|
|
|
42 -DModule_vtkCommonMath:BOOL=ON \
|
|
|
43 -DModule_vtkCommonMisc:BOOL=ON \
|
|
|
44 -DModule_vtkCommonSystem:BOOL=ON \
|
|
|
45 -DModule_vtkCommonTransforms:BOOL=ON \
|
|
|
46 -DModule_vtkFiltersCore:BOOL=ON \
|
|
|
47 -DModule_vtkFiltersExtraction:BOOL=ON \
|
|
|
48 -DModule_vtkFiltersGeneral:BOOL=ON \
|
|
|
49 -DModule_vtkFiltersGeneric:BOOL=ON \
|
|
|
50 -DModule_vtkFiltersGeometry:BOOL=ON \
|
|
|
51 -DModule_vtkFiltersPython:BOOL=ON \
|
|
|
52 -DModule_vtkImagingHybrid:BOOL=ON \
|
|
|
53 -DModule_vtkIOCore:BOOL=ON \
|
|
|
54 -DModule_vtkIOGeometry:BOOL=ON \
|
|
|
55 -DModule_vtkIOLegacy:BOOL=ON \
|
|
|
56 -DModule_vtkWrappingPythonCore:BOOL=ON \
|
|
|
57 -DModule_vtkIOPLY:BOOL=ON \
|
|
|
58 -DVTK_INSTALL_PYTHON_MODULE_DIR:PATH=$INSTALL_DIR/lib/python2.7/site-packages \
|
|
|
59 -DPYTHON_EXECUTABLE:PATH=$INSTALL_DIR/bin/python \
|
|
|
60 -DPYTHON_LIBRARY:PATH=$INSTALL_DIR/lib/libpython2.7.so \
|
|
|
61 -DPYTHON_INCLUDE_DIR:PATH=$INSTALL_DIR/include/python2.7 . &&
|
|
|
62 make &&
|
|
|
63 make install
|
|
|
64
|
|
|
65 </action>
|
|
|
66 <action type="move_directory_files">
|
|
|
67 <source_directory>../build/bin</source_directory>
|
|
|
68 <destination_directory>$INSTALL_DIR/bin</destination_directory>
|
|
|
69 </action>
|
|
|
70 <action type="move_directory_files">
|
|
|
71 <source_directory>../build/include</source_directory>
|
|
|
72 <destination_directory>$INSTALL_DIR/include</destination_directory>
|
|
|
73 </action>
|
|
|
74 <action type="move_directory_files">
|
|
|
75 <source_directory>../build/lib</source_directory>
|
|
|
76 <destination_directory>$INSTALL_DIR/lib</destination_directory>
|
|
|
77 </action>
|
|
|
78
|
|
|
79 <!-- Install and compile icqsol version 1.0 as a package in the above Python -->
|
|
|
80 <action type="make_directory">$TMP_WORK_DIR/icqsol</action>
|
|
|
81 <action type="change_directory">$TMP_WORK_DIR/icqsol</action>
|
|
|
82 <action type="shell_command">git clone https://github.com/pletzer/icqsol.git</action>
|
|
|
83 <action type="change_directory">icqsol</action>
|
|
|
84 <action type="shell_command">
|
|
|
85
|
|
|
86 export PATH=$INSTALL_DIR/bin:$PATH &&
|
|
|
87 $INSTALL_DIR/bin/python setup.py develop --prefix=$INSTALL_DIR
|
|
|
88 $INSTALL_DIR/bin/python setup.py install --prefix=$INSTALL_DIR
|
|
|
89
|
|
|
90 </action>
|
|
|
91
|
|
|
92 <action type="set_environment">
|
|
|
93 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
|
|
|
94 <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib</environment_variable>
|
|
|
95 <environment_variable action="set_to" name="ICQSOL_ROOT_DIR">$INSTALL_DIR</environment_variable>
|
|
|
96 </action>
|
|
|
97 </actions>
|
|
|
98 </actions_group>
|
|
|
99 </install>
|
|
|
100 <readme />
|
|
|
101 </package>
|
|
|
102 </tool_dependency>
|