changeset 0:091a97f8c585 draft

Uploaded
author iuc
date Sat, 02 Nov 2013 09:46:36 -0400
parents
children a15115e0d2b9
files tool_dependencies.xml
diffstat 1 files changed, 41 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml	Sat Nov 02 09:46:36 2013 -0400
@@ -0,0 +1,41 @@
+<tool_dependency>
+    <package name="perl" version="5.18.1">
+        <install version="1.0">
+            <actions>
+
+                <!-- install perl -->
+                <action type="download_by_url">http://www.cpan.org/src/5.0/perl-5.18.1.tar.gz</action>
+                <action type="shell_command">/Configure -des -Dprefix=$INSTALL_DIR</action>
+                <action type="autoconf" />
+
+                <action type="download_file">http://www.cpan.org/authors/id/A/AP/APEIRON/local-lib-1.008009.tar.gz</action>
+                <action type="shell_command">tar xfvz local-lib-1.008009.tar.gz</action>
+                <action type="change_directory">local-lib-1.008009</action>
+                <action type="shell_command">perl Makefile.PL --bootstrap=$INSTALL_DIR/local-lib/ --no-manpages</action>
+                <action type="shell_command">make install</action>
+                <action type="shell_command">eval $(perl -I$INSTALL_DIR/local-lib/perl5 -Mlocal::lib=$INSTALL_DIR/local-lib)</action>
+
+                <action type="download_file">https://raw.github.com/miyagawa/cpanminus/c0c88f71118ecec334d62ba280e883933e7a6d39/cpanm</action>
+                <action type="chmod">
+                    <file mode="750">cpanm</file>
+                </action>
+                <action type="move_file">
+                    <source>cpanm</source>
+                    <destination>$INSTALL_DIR/bin/</destination>
+                </action>
+                <action type="shell_command">cpanm --local-lib=$INSTALL_DIR XML::Parser</action>
+                <action type="shell_command">cpanm --local-lib=$INSTALL_DIR CGI</action>
+
+
+                <action type="set_environment">
+                    <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable>
+                    <environment_variable name="PERL5LIB" action="prepend_to">$INSTALL_DIR/lib/perl5</environment_variable>
+                    <environment_variable name="PERL_ROOT_DIR" action="set_to">$INSTALL_DIR/lib</environment_variable>
+                </action>
+            </actions>
+        </install>
+        <readme>
+            Perl installation test.
+        </readme>
+    </package>
+</tool_dependency>