annotate tool_dependencies.xml @ 7:43ce4d7c22a3 draft

PERL_ROOT_DIR now set to root not lib
author iuc
date Tue, 05 Nov 2013 18:00:08 -0500
parents 8cf570efdd1e
children ab58b9f990c5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
091a97f8c585 Uploaded
iuc
parents:
diff changeset
1 <tool_dependency>
091a97f8c585 Uploaded
iuc
parents:
diff changeset
2 <package name="perl" version="5.18.1">
091a97f8c585 Uploaded
iuc
parents:
diff changeset
3 <install version="1.0">
091a97f8c585 Uploaded
iuc
parents:
diff changeset
4 <actions>
091a97f8c585 Uploaded
iuc
parents:
diff changeset
5
091a97f8c585 Uploaded
iuc
parents:
diff changeset
6 <!-- install perl -->
091a97f8c585 Uploaded
iuc
parents:
diff changeset
7 <action type="download_by_url">http://www.cpan.org/src/5.0/perl-5.18.1.tar.gz</action>
5
978287122b91 Uploaded
iuc
parents: 4
diff changeset
8 <action type="shell_command">./Configure -des -Dprefix=$INSTALL_DIR</action>
978287122b91 Uploaded
iuc
parents: 4
diff changeset
9 <action type="make_install" />
0
091a97f8c585 Uploaded
iuc
parents:
diff changeset
10
091a97f8c585 Uploaded
iuc
parents:
diff changeset
11 <action type="download_file">http://www.cpan.org/authors/id/A/AP/APEIRON/local-lib-1.008009.tar.gz</action>
091a97f8c585 Uploaded
iuc
parents:
diff changeset
12 <action type="shell_command">tar xfvz local-lib-1.008009.tar.gz</action>
091a97f8c585 Uploaded
iuc
parents:
diff changeset
13 <action type="change_directory">local-lib-1.008009</action>
5
978287122b91 Uploaded
iuc
parents: 4
diff changeset
14 <!-- TODO: Here we need to use the new installed perl binary -->
978287122b91 Uploaded
iuc
parents: 4
diff changeset
15 <action type="shell_command">$INSTALL_DIR/bin/perl Makefile.PL --bootstrap=$INSTALL_DIR/local-lib/ --no-manpages</action>
0
091a97f8c585 Uploaded
iuc
parents:
diff changeset
16 <action type="shell_command">make install</action>
6
8cf570efdd1e Minor change to ensure installed perl is used when installing local-lib
iuc
parents: 5
diff changeset
17 <action type="shell_command">eval $($INSTALL_DIR/bin/perl -I$INSTALL_DIR/local-lib/perl5 -Mlocal::lib=$INSTALL_DIR/local-lib)</action>
0
091a97f8c585 Uploaded
iuc
parents:
diff changeset
18
4
c807cdcad590 Fix cpanminus install actions
iuc
parents: 3
diff changeset
19 <!-- install cpanminus into our new perl environment -->
0
091a97f8c585 Uploaded
iuc
parents:
diff changeset
20 <action type="download_file">https://raw.github.com/miyagawa/cpanminus/c0c88f71118ecec334d62ba280e883933e7a6d39/cpanm</action>
5
978287122b91 Uploaded
iuc
parents: 4
diff changeset
21 <!-- prepanding means that the new install perl binary will be used after the pipe -->
4
c807cdcad590 Fix cpanminus install actions
iuc
parents: 3
diff changeset
22 <action type="shell_command">export PERL5LIB=$INSTALL_DIR/lib/perl5/:$PERL5LIB ; export PATH=$INSTALL_DIR/bin/:$PATH ; cat cpanm | perl - App::cpanminus</action>
c807cdcad590 Fix cpanminus install actions
iuc
parents: 3
diff changeset
23
0
091a97f8c585 Uploaded
iuc
parents:
diff changeset
24 <action type="set_environment">
091a97f8c585 Uploaded
iuc
parents:
diff changeset
25 <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable>
091a97f8c585 Uploaded
iuc
parents:
diff changeset
26 <environment_variable name="PERL5LIB" action="prepend_to">$INSTALL_DIR/lib/perl5</environment_variable>
7
43ce4d7c22a3 PERL_ROOT_DIR now set to root not lib
iuc
parents: 6
diff changeset
27 <environment_variable name="PERL_ROOT_DIR" action="set_to">$INSTALL_DIR</environment_variable>
0
091a97f8c585 Uploaded
iuc
parents:
diff changeset
28 </action>
091a97f8c585 Uploaded
iuc
parents:
diff changeset
29 </actions>
091a97f8c585 Uploaded
iuc
parents:
diff changeset
30 </install>
091a97f8c585 Uploaded
iuc
parents:
diff changeset
31 <readme>
5
978287122b91 Uploaded
iuc
parents: 4
diff changeset
32 Perl 5 is a highly capable, feature-rich programming language with over 25 years of development.
978287122b91 Uploaded
iuc
parents: 4
diff changeset
33 http://www.perl.org/
978287122b91 Uploaded
iuc
parents: 4
diff changeset
34
978287122b91 Uploaded
iuc
parents: 4
diff changeset
35 This repository contains local-lib and cpanm in addition.
978287122b91 Uploaded
iuc
parents: 4
diff changeset
36 It is recommended to use something like "cpanm --local-lib=$PERL_ROOT_DIR XML::Parser" to install additional perl modules.
0
091a97f8c585 Uploaded
iuc
parents:
diff changeset
37 </readme>
091a97f8c585 Uploaded
iuc
parents:
diff changeset
38 </package>
091a97f8c585 Uploaded
iuc
parents:
diff changeset
39 </tool_dependency>