diff --git a/devel/rubygem-pdk/Makefile b/devel/rubygem-pdk/Makefile index d8f253f0b7b2..8cad6a4cb69f 100644 --- a/devel/rubygem-pdk/Makefile +++ b/devel/rubygem-pdk/Makefile @@ -1,38 +1,41 @@ PORTNAME= pdk PORTVERSION= 2.5.0 CATEGORIES= devel rubygems MASTER_SITES= RG MAINTAINER= puppet@FreeBSD.org COMMENT= CLI for development of Puppet modules LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= rubygem-bundler>=1.15:sysutils/rubygem-bundler \ rubygem-childprocess>=4.0.0:devel/rubygem-childprocess \ rubygem-concurrent-ruby>=1.1.5:devel/rubygem-concurrent-ruby \ rubygem-cri>=2.10.1:devel/rubygem-cri \ rubygem-deep_merge>=1.1:devel/rubygem-deep_merge \ rubygem-diff-lcs>=1.4.4:textproc/rubygem-diff-lcs \ rubygem-facter>=2.5.1:sysutils/rubygem-facter \ rubygem-ffi>=1.9:devel/rubygem-ffi \ rubygem-gettext-setup>=0.24:devel/rubygem-gettext-setup \ rubygem-hitimes>=2.0.0:devel/rubygem-hitimes \ rubygem-httpclient>=2.8.3:www/rubygem-httpclient \ rubygem-json_pure>=2.1.0:devel/rubygem-json_pure \ rubygem-json-schema>=2.8.0:devel/rubygem-json-schema \ rubygem-minitar>=0.6.1:archivers/rubygem-minitar \ rubygem-pathspec>=0.2.1:devel/rubygem-pathspec \ rubygem-tty-prompt>=0.22:devel/rubygem-tty-prompt \ rubygem-tty-spinner>=0.5:devel/rubygem-tty-spinner \ rubygem-tty-which>=0.3:devel/rubygem-tty-which +BROKEN_RUBY30= yes +BROKEN_RUBY31= yes + USES= gem USE_RUBY= yes NO_ARCH= yes PLIST_FILES= bin/pdk .include diff --git a/devel/rubygem-pdk/files/patch-lib_pdk_cli_exec_command.rb b/devel/rubygem-pdk/files/patch-lib_pdk_cli_exec_command.rb index 3b382ad89ec7..752848908f62 100644 --- a/devel/rubygem-pdk/files/patch-lib_pdk_cli_exec_command.rb +++ b/devel/rubygem-pdk/files/patch-lib_pdk_cli_exec_command.rb @@ -1,11 +1,11 @@ ---- lib/pdk/cli/exec/command.rb.orig 2022-02-13 01:06:51 UTC +--- lib/pdk/cli/exec/command.rb.orig 2022-06-29 04:55:12 UTC +++ lib/pdk/cli/exec/command.rb -@@ -187,7 +187,7 @@ module PDK - - resolved_env['GEM_HOME'] = PDK::Util::RubyVersion.gem_home - gem_path = PDK::Util::RubyVersion.gem_path -- resolved_env['GEM_PATH'] = gem_path.empty? ? resolved_env['GEM_HOME'] : gem_path -+ # resolved_env['GEM_PATH'] = gem_path.empty? ? resolved_env['GEM_HOME'] : gem_path - - # Make sure invocation of Ruby prefers our private installation. - package_binpath = PDK::Util.package_install? ? File.join(PDK::Util.pdk_package_basedir, 'bin') : nil +@@ -187,7 +187,7 @@ module PDK + + resolved_env['GEM_HOME'] = PDK::Util::RubyVersion.gem_home + gem_path = PDK::Util::RubyVersion.gem_path +- resolved_env['GEM_PATH'] = gem_path.empty? ? resolved_env['GEM_HOME'] : gem_path ++ # resolved_env['GEM_PATH'] = gem_path.empty? ? resolved_env['GEM_HOME'] : gem_path + + # Make sure invocation of Ruby prefers our private installation. + package_binpath = PDK::Util.package_install? ? File.join(PDK::Util.pdk_package_basedir, 'bin') : nil diff --git a/devel/rubygem-pdk/files/patch-lib_pdk_util_bundler.rb b/devel/rubygem-pdk/files/patch-lib_pdk_util_bundler.rb index aee8e54bf96f..12f5515fd640 100644 --- a/devel/rubygem-pdk/files/patch-lib_pdk_util_bundler.rb +++ b/devel/rubygem-pdk/files/patch-lib_pdk_util_bundler.rb @@ -1,24 +1,24 @@ ---- lib/pdk/util/bundler.rb.orig 2022-02-13 01:09:14 UTC +--- lib/pdk/util/bundler.rb.orig 2022-06-29 05:24:26 UTC +++ lib/pdk/util/bundler.rb -@@ -21,12 +21,7 @@ module PDK - return - end - -- unless bundle.locked? -- # Generate initial default Gemfile.lock, either from package cache or -- # by invoking `bundle lock` -- bundle.lock! -- end -- -+ if bundle.locked? - # Check if all dependencies will be available once we update the lockfile. - begin - original_lockfile = bundle.gemfile_lock -@@ -40,6 +35,7 @@ module PDK - end - - bundle.update_lock!(with: gem_overrides, local: all_deps_available) -+ end - - # If there are missing dependencies after updating the lockfile, let `bundle install` - # go out and get them. If the specified puppet gem version points to a remote location +@@ -21,12 +21,7 @@ module PDK + return + end + +- unless bundle.locked? +- # Generate initial default Gemfile.lock, either from package cache or +- # by invoking `bundle lock` +- bundle.lock! +- end +- ++ if bundle.locked? + # Check if all dependencies will be available once we update the lockfile. + begin + original_lockfile = bundle.gemfile_lock +@@ -40,6 +35,7 @@ module PDK + end + + bundle.update_lock!(with: gem_overrides, local: all_deps_available) ++ end + + # If there are missing dependencies after updating the lockfile, let `bundle install` + # go out and get them. If the specified puppet gem version points to a remote location