-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.perl5mods
41 lines (27 loc) · 1.23 KB
/
Makefile.perl5mods
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
include config/base.config
####
PERL_INST_PATH = ${NLYTIQ_INST_PATH}
#### Modules
PERL_MODULES = CPAN threads threads::shared MCE::Loop
all: perl-modules forced
clean:
rm -fr perl-modules forced ${HOME}/.cpan
#--------------------------------------------------------------------------#
perl-modules:
NONINTERACTIVE_TESTING=1 PERL_MM_USE_DEFAULT=1 ${NLYTIQ_INST_PATH}/bin/cpan YAML
echo "o conf build_requires_install_policy yes ; o conf commit" | ${NLYTIQ_INST_PATH}/bin/perl -MCPAN -e shell
for module in ${PERL_MODULES} ; do \
TEST_JOBS=${NCPU} NONINTERACTIVE_TESTING=1 PERL_AUTOINSTALL="--alldeps" PERL_AUTOINSTALL_PREFER_CPAN=1 \
${NLYTIQ_INST_PATH}/bin/cpan -f -T $$module ; \
done
# now have perl do the installations in parallel
${NLYTIQ_INST_PATH}/bin/perl sources/perl5mods.pl
# repeat as it appears that there is a dependency error, and second pass
# fixes it. For all properly installed modules, this is a no-op.
${NLYTIQ_INST_PATH}/bin/perl sources/perl5mods.pl
touch perl-modules
#--------------------------------------------------------------------------#
forced:
# Term::ReadLine::Gnu has major problems with readline libs.
${NLYTIQ_INST_PATH}/bin/cpan -T Term::ReadLine::Gnu
touch forced