|
| 1 | +# |
| 2 | +# Copyright 2012-2015 Chef Software, Inc. |
| 3 | +# Copyright 2017-2023 GitLab Inc. |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | + |
| 18 | +name 'ruby-shadow' |
| 19 | +# From https://github.com/chef/chef/blob/3c35bd0e1d17a5bfd779fab3cc7860ea1923dec6/Gemfile#L41-L44 |
| 20 | +version = Gitlab::Version.new('ruby-shadow', '3b8ea40b0e943b5de721d956741308ce805a5c3c') |
| 21 | +default_version version.print(false) |
| 22 | +display_version version.print(false) |
| 23 | + |
| 24 | +license 'Apache-2.0' |
| 25 | +license_file 'LICENSE' |
| 26 | + |
| 27 | +skip_transitive_dependency_licensing true |
| 28 | + |
| 29 | +dependency 'rubygems' |
| 30 | + |
| 31 | +source git: version.remote |
| 32 | + |
| 33 | +relative_path 'ruby-shadow' |
| 34 | + |
| 35 | +build do |
| 36 | + env = with_standard_compiler_flags(with_embedded_path) |
| 37 | + |
| 38 | + # Remove existing built gems in case they exist in the current dir |
| 39 | + delete 'ruby-shadow-*.gem' |
| 40 | + |
| 41 | + gem 'build ruby-shadow.gemspec', env: env |
| 42 | + gem 'install ruby-shadow-*.gem --no-document', env: env |
| 43 | +end |
0 commit comments