Debian Codegraph @

inc/Module/Install/Win32.pm

raw symbols SCIP
1 #line 1
2 package Module::Install::Win32scip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/;
3
4 use strictscip-perl cpan Icon-FamFamFam-Silk 0.002001003 strict/;
5 use Module::Install::Basescip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Base/ ();
6
7 use varsscip-perl cpan Icon-FamFamFam-Silk 0.002001003 vars/ qw{$VERSION @ISA $ISCORE};
8 BEGIN {
9 $VERSIONscip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/$VERSION. = '1.02';
10 @ISAscip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/`@ISA`. = 'Module::Install::Base';
11 $ISCOREscip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/$ISCORE. = 1;
12 }
13
14 # determine if the user needs nmake, and download it if needed
15 sub check_nmakescip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/check_nmake(). {
16 my $self = shiftscip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/shift().;
17 $self->loadscip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/load().('can_run');
18 $self->loadscip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/load().('get_file');
19
20 requirescip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/require(). Config;
21 return unless (
22 $^Oscip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/`$^O`. eq 'MSWin32' and
23 $Config::Configscip-perl cpan Icon-FamFamFam-Silk 0.002001003 Config/`%Config`.{make} and
24 $Config::Configscip-perl cpan Icon-FamFamFam-Silk 0.002001003 Config/`%Config`.{make} =~ /^nmake\b/i and
25 ! $self->can_runscip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/can_run().('nmake')
26 );
27
28 printscip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/print(). "The required 'nmake' executable not found, fetching it...\n";
29
30 requirescip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/require(). File::Basename;
31 my $rv = $self->get_filescip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/get_file().(
32 url => 'http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe',
33 ftp_url => 'ftp://ftp.microsoft.com/Softlib/MSLFILES/Nmake15.exe',
34 local_dir => File::Basename::dirnamescip-perl cpan Icon-FamFamFam-Silk 0.002001003 File/Basename/dirname().($^Xscip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/`$^X`.),
35 size => 51928,
36 run => 'Nmake15.exe /o > nul',
37 check_for => 'Nmake.exe',
38 remove => 1,
39 );
40
41 diescip-perl cpan Icon-FamFamFam-Silk 0.002001003 Module/Install/Win32/die(). <<'END_MESSAGE' unless $rv;
42
43 -------------------------------------------------------------------------------
44
45 Since you are using Microsoft Windows, you will need the 'nmake' utility
46 before installation. It's available at:
47
48 http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe
49 or
50 ftp://ftp.microsoft.com/Softlib/MSLFILES/Nmake15.exe
51
52 Please download the file manually, save it to a directory in %PATH% (e.g.
53 C:\WINDOWS\COMMAND\), then launch the MS-DOS command line shell, "cd" to
54 that directory, and run "Nmake15.exe" from there; that will create the
55 'nmake.exe' file needed by this module.
56
57 You may then resume the installation process described in README.
58
59 -------------------------------------------------------------------------------
60 END_MESSAGE
61
62 }
63
64 1;