Class: RubyInstaller::Build::Components::DevTools
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Base ,
Rake::Task
|
|
Instance Chain:
self,
Base ,
::RubyInstaller::Build::Colors ,
Rake::Task
|
|
Inherits: |
RubyInstaller::Build::Components::Base
|
Defined in: | lib/ruby_installer/build/components/03_dev_tools.rb |
Constant Summary
-
PACKAGES =
# File 'lib/ruby_installer/build/components/03_dev_tools.rb', line 51{ 'mingw32' => PACKAGES_MINGW32, 'mingw64' => PACKAGES_MINGW64, 'ucrt64' => PACKAGES_MINGW64, }
-
PACKAGES_COMMON =
# File 'lib/ruby_installer/build/components/03_dev_tools.rb', line 13%w[ autoconf autogen automake-wrapper diffutils file gawk grep libtool m4 make patch sed texinfo texinfo-tex wget mingw-w64-binutils mingw-w64-crt-git mingw-w64-gcc mingw-w64-gcc-libs mingw-w64-headers-git mingw-w64-libmangle-git mingw-w64-libwinpthread-git mingw-w64-make mingw-w64-tools-git mingw-w64-winpthreads-git ]
-
PACKAGES_MINGW32 =
# File 'lib/ruby_installer/build/components/03_dev_tools.rb', line 41PACKAGES_COMMON + %w[ pkg-config mingw-w64-pkg-config ]
-
PACKAGES_MINGW64 =
# File 'lib/ruby_installer/build/components/03_dev_tools.rb', line 46PACKAGES_COMMON + %w[ pkgconf mingw-w64-pkgconf ]
::RubyInstaller::Build::Colors
- Included
Class Method Summary
Instance Attribute Summary
Base
- Inherited
Instance Method Summary
Base
- Inherited
#autorebase, #check_hash, #download, #kill_all_msys2_processes, #puts, #run_verbose, | |
#shell_escape | This is extracted from github.com/larskanis/shellwords. |
#shell_join |
::RubyInstaller::Build::Colors
- Included
Constructor Details
This class inherits a constructor from RubyInstaller::Build::Components::Base
Class Method Details
.depends
[ GitHub ]# File 'lib/ruby_installer/build/components/03_dev_tools.rb', line 5
def self.depends %w[msys2] end
Instance Method Details
#description
[ GitHub ]# File 'lib/ruby_installer/build/components/03_dev_tools.rb', line 9
def description "MSYS2 and MINGW development toolchain" end
#execute(args)
[ GitHub ]# File 'lib/ruby_installer/build/components/03_dev_tools.rb', line 57
def execute(args) msys.with_msys_apps_enabled do puts "Install #{description} ..." packages = PACKAGES.fetch(msys.mingwarch).map do |package| package.sub(/^mingw-w64/, msys.mingw_package_prefix) end res = run_verbose("pacman", "-S", *pacman_args, *packages) puts "Install #{description} #{res ? green("succeeded") : red("failed")}" raise "pacman failed" unless res puts puts green("You can use 'ridk enable' to activate the MSYS2 tools on the command prompt.") autorebase end end