Hi, this update would help getting sysutils/ruby-pdk updated. The patch is necessary to make the test suite pass successfully.
objections/concerns/OK?
Sebastian
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/ruby-diff-lcs/Makefile,v
diff -u -r1.16 Makefile
--- Makefile 11 Mar 2022 18:53:13 -0000 1.16
+++ Makefile 10 Jan 2025 22:07:43 -0000
@@ -1,6 +1,6 @@
COMMENT = port of Algorithm::Diff that uses the LCS algorithm
-DISTNAME = diff-lcs-1.3
+DISTNAME = diff-lcs-1.5.1
CATEGORIES = devel
# Perl Artistic
@@ -11,5 +11,8 @@
CONFIGURE_STYLE = ruby gem
MODRUBY_TEST = rspec3
+
+pre-test:
+ ${SUBST_CMD} ${WRKSRC}/spec/ldiff_spec.rb
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/ruby-diff-lcs/distinfo,v
diff -u -r1.4 distinfo
--- distinfo 5 Nov 2017 17:24:48 -0000 1.4
+++ distinfo 10 Jan 2025 22:07:43 -0000
@@ -1,2 +1,2 @@
-SHA256 (diff-lcs-1.3.gem) = 6nv1kVZ+OR7yYqfCntr4fGIFIEr7W7Od+o8I8uUSgqM=
-SIZE (diff-lcs-1.3.gem) = 46080
+SHA256 (diff-lcs-1.5.1.gem) = JzIj37QGhVSENtMrRzOqZzUXacfepiHafZ3UgT5j3f4=
+SIZE (diff-lcs-1.5.1.gem) = 53248
Index: patches/patch-spec_ldiff_spec_rb
===================================================================
RCS file: patches/patch-spec_ldiff_spec_rb
diff -N patches/patch-spec_ldiff_spec_rb
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-spec_ldiff_spec_rb 10 Jan 2025 22:07:43 -0000
@@ -0,0 +1,15 @@
+
+allow tests to pass
+
+Index: spec/ldiff_spec.rb
+--- spec/ldiff_spec.rb.orig
++++ spec/ldiff_spec.rb
+@@ -79,7 +79,7 @@ RSpec.describe "bin/ldiff" do
+ right = options.fetch(:right)
+
+ stdout, stderr = capture_subprocess_io do
+- system("ruby -Ilib bin/ldiff #{flag} spec/fixtures/#{left}
spec/fixtures/#{right}")
++ system("ruby${GEM_BIN_SUFFIX} -Ilib bin/ldiff #{flag}
spec/fixtures/#{left} spec/fixtures/#{right}")
+ end
+
+ expect(stderr).to be_empty if RUBY_VERSION >= "1.9"
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/ruby-diff-lcs/pkg/PLIST,v
diff -u -r1.6 PLIST
--- pkg/PLIST 11 Mar 2022 18:53:13 -0000 1.6
+++ pkg/PLIST 10 Jan 2025 22:07:43 -0000
@@ -10,8 +10,6 @@
${GEM_LIB}/gems/${DISTNAME}/Manifest.txt
${GEM_LIB}/gems/${DISTNAME}/README.rdoc
${GEM_LIB}/gems/${DISTNAME}/Rakefile
-${GEM_LIB}/gems/${DISTNAME}/autotest/
-${GEM_LIB}/gems/${DISTNAME}/autotest/discover.rb
${GEM_LIB}/gems/${DISTNAME}/bin/
${GEM_LIB}/gems/${DISTNAME}/bin/htmldiff
${GEM_LIB}/gems/${DISTNAME}/bin/ldiff
@@ -24,6 +22,7 @@
${GEM_LIB}/gems/${DISTNAME}/lib/diff/lcs/
${GEM_LIB}/gems/${DISTNAME}/lib/diff/lcs.rb
${GEM_LIB}/gems/${DISTNAME}/lib/diff/lcs/array.rb
+${GEM_LIB}/gems/${DISTNAME}/lib/diff/lcs/backports.rb
${GEM_LIB}/gems/${DISTNAME}/lib/diff/lcs/block.rb
${GEM_LIB}/gems/${DISTNAME}/lib/diff/lcs/callbacks.rb
${GEM_LIB}/gems/${DISTNAME}/lib/diff/lcs/change.rb
@@ -36,8 +35,31 @@
${GEM_LIB}/gems/${DISTNAME}/spec/change_spec.rb
${GEM_LIB}/gems/${DISTNAME}/spec/diff_spec.rb
${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/aX
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/bXaX
${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ds1.csv
${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ds2.csv
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff-c
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff-e
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff-f
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff-u
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff.chef
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff.chef-c
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff.chef-e
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff.chef-f
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff.chef-u
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff.chef2
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff.chef2-c
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff.chef2-d
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff.chef2-e
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff.chef2-f
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/ldiff/output.diff.chef2-u
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/new-chef
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/new-chef2
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/old-chef
+${GEM_LIB}/gems/${DISTNAME}/spec/fixtures/old-chef2
${GEM_LIB}/gems/${DISTNAME}/spec/hunk_spec.rb
${GEM_LIB}/gems/${DISTNAME}/spec/issues_spec.rb
${GEM_LIB}/gems/${DISTNAME}/spec/lcs_spec.rb
ruby-diff-lcs-1.5.1.diff
Description: Binary data
