-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathrubygem-rexml.rb
More file actions
21 lines (18 loc) · 1.1 KB
/
rubygem-rexml.rb
File metadata and controls
21 lines (18 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#####
# Component release information:
# https://rubygems.org/gems/rexml
# https://github.com/ruby/rexml/releases
#####
component 'rubygem-rexml' do |pkg, settings, platform|
### Maintained by update_gems automation ###
pkg.version '3.4.4'
pkg.sha256sum '19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142'
### End automated maintenance section ###
settings["#{pkg.get_name}_remove_older_versions".to_sym] = true
# If the platform is solaris with sparc architecture in agent-runtime-7.x project, we want to gem install rexml
# ignoring the dependencies, this is because the pl-ruby version used in these platforms is ancient so it gets
# confused when installing rexml. It tries to install rexml's dependency 'strscan' by building native extensions
# but fails. We can ignore insalling that since strscan is already shipped with ruby 2 as its default gem.
settings["#{pkg.get_name}_gem_install_options".to_sym] = '--ignore-dependencies' if platform.name =~ /solaris-(10|11)-sparc/ && settings[:ruby_version].to_i < 3
instance_eval File.read('configs/components/_base-rubygem.rb')
end