Repository 'package_imaging_1_1_7'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/package_imaging_1_1_7

Changeset 0:d5f2627f4cfd (2015-03-28)
Commit message:
Uploaded tool dependency definition
added:
tool_dependencies.xml
b
diff -r 000000000000 -r d5f2627f4cfd tool_dependencies.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml Sat Mar 28 16:27:59 2015 -0400
b
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<tool_dependency>
+    <package name="tiff" version="4.0.3">
+        <repository changeset_revision="e35a4a8b7e33" name="package_tiff_4_0_3" owner="iuc" prior_installation_required="True" toolshed="https://toolshed.g2.bx.psu.edu" />
+    </package>
+    <package name="freetype" version="2.4.11">
+        <repository changeset_revision="022adf7d6195" name="package_freetype_2_4" owner="iuc" prior_installation_required="True" toolshed="https://toolshed.g2.bx.psu.edu" />
+    </package>
+    <package name="zlib" version="1.2.8">
+        <repository changeset_revision="63a4a902cda2" name="package_zlib_1_2_8" owner="iuc" prior_installation_required="True" toolshed="https://toolshed.g2.bx.psu.edu" />
+    </package>
+    <package name="imaging" version="1.1.7">
+        <install version="1.0">
+            <actions>
+                <action type="download_by_url">http://effbot.org/downloads/Imaging-1.1.7.tar.gz</action>
+                <action type="make_directory">$INSTALL_DIR/lib/python</action>
+                <action type="set_environment_for_install">
+                   <repository changeset_revision="63a4a902cda2" name="package_zlib_1_2_8" owner="iuc" toolshed="https://toolshed.g2.bx.psu.edu">
+                        <package name="zlib" version="1.2.8" />
+                    </repository>
+                    <repository changeset_revision="e35a4a8b7e33" name="package_tiff_4_0_3" owner="iuc" toolshed="https://toolshed.g2.bx.psu.edu">
+                        <package name="tiff" version="4.0.3" />
+                    </repository>
+                    <repository changeset_revision="022adf7d6195" name="package_freetype_2_4" owner="iuc" toolshed="https://toolshed.g2.bx.psu.edu">
+                        <package name="freetype" version="2.4.11" />
+                    </repository>
+                </action>
+                <action type="shell_command">
+                    export PYTHONPATH=$PYTHONPATH:$INSTALL_DIR/lib/python &amp;&amp; 
+                    sed -i.bak "s#ZLIB_ROOT = None#ZLIB_ROOT = '$ZLIB_ROOT_PATH'#" setup.py &amp;&amp; 
+                    sed -i.bak "s#TIFF_ROOT = None#TIFF_ROOT = '$TIFF_ROOT'#" setup.py &amp;&amp; 
+                    sed -i.bak "s#FREETYPE_ROOT = None#FREETYPE_ROOT = '$FREETYPE_ROOT'#" setup.py &amp;&amp; 
+                    python setup.py install --install-lib $INSTALL_DIR/lib/python --install-scripts $INSTALL_DIR/bin
+                </action>
+                <action type="set_environment">
+                    <environment_variable action="prepend_to" name="PYTHONPATH">$INSTALL_DIR/lib/python</environment_variable>
+                    <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
+                    <environment_variable action="set_to" name="PYTHONPATH_IMAGING">$INSTALL_DIR/lib/python</environment_variable>
+                    <environment_variable action="set_to" name="PATH_IMAGING">$INSTALL_DIR/bin</environment_variable>
+                </action>
+            </actions>
+        </install>
+        <readme />
+    </package>
+</tool_dependency>