Hi Tin I attach a quick and dirty script I use when I need to add extra perl libraries to my Perl easyconfig in case it's useful for you.
The output is something like this: $ ./get-perl-package.pl Digest::SHA1 found a package for Digest::SHA1 : https://cpan.metacpan.org/authors/id/G/GA/GAAS/Digest-SHA1-2.13.tar.gz =======Please add the following lines to the easybuild config file ('Digest::SHA1', '2.13', { 'source_tmpl': 'Digest-SHA1-2.13.tar.gz', 'source_urls': ['https://cpan.metacpan.org/authors/id/G/GA/GAAS'], }), regards, Pablo. 2014-11-20 2:04 GMT+01:00 tin h <[email protected]>: > Hello fellow easybuilder :) > > > On a traditional, OS-based Perl installation, one would use CPAN to > automatically fetch and install modules and libraries, including all the > dependencies. > > > > What easy (as in "lazy") way is there to accomplish the same thing when > using EasyBuild? > > > > I have a Perl.eb that looks like the one below. I understand that I > can list all the CPAN modules by listing them in the exts_list, but this a > very long and tedious process, as it does not take care of dependencies. > Things like BioPerl has a gigantic list of dependent modules, and I rather > not write out this list by hand. I did say I wanted to be lazy, yes? :p > > > Thoughts? How the the Perl guru handling this? > > > Much thanks in advance, > > Tin > > > > > > > name = 'Perl' > > version = '5.20.0' > > toolchain = {'name': 'goolf', 'version': '1.5.14-NX'} > > source_urls = ['http://www.cpan.org/src/5.0'] > > sources = [SOURCELOWER_TAR_GZ] > > > exts_list = [ > > ('DBI', '1.631', { > > 'source_urls': ['http://www.cpan.org/modules/by-module/DBI/TIMB/' > ], > > }), > > ('Module::Build', '0.4205', { > > 'source_tmpl': 'Module-Build-0.4205.tar.gz', > > 'source_urls': [' > http://www.cpan.org/modules/by-module/Module/LEONT/'], > > }), > > ('Devel::StackTrace', '1.32', { > > 'source_tmpl': 'Devel-StackTrace-1.32.tar.gz', > > 'source_urls': [' > http://www.cpan.org/modules/by-module/Devel/DROLSKY'], > > }), > > ('Class::Data::Inheritable', '0.08', { > > 'source_tmpl': 'Class-Data-Inheritable-0.08.tar.gz', > > 'source_urls': ['http://www.cpan.org/modules/by-module/Class/TMTM' > ], > > }) > ] > > moduleclass = 'lang' > >
get-perl-package.sh
Description: Bourne shell script

