This patch activates the dependency on textproc/ruby-rexml in textproc/ruby-
kramdown.  This seems needed for www/ruby-jekyll, which I plan to re-add to the
ports tree.  This only works for ruby>=3.0, since earlier versions had rexml
included in the base distribution.  Should the port just only alow a ruby30
flavor, our should the dependency on textproc/ruby-rexml be dependent on the
ruby flavor?  And then the patch would also be needed only for the ruby30
flavor?

Thanks.


Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/ruby-kramdown/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile    18 Mar 2021 08:40:41 -0000      1.14
+++ Makefile    21 Nov 2021 19:51:10 -0000
@@ -11,14 +11,16 @@ HOMEPAGE=   https://kramdown.gettalong.org
 # MIT
 PERMIT_PACKAGE=        Yes
 
-# After Ruby 3.0 is added to ports tree
-#RUN_DEPENDS=  textproc/ruby-rexml
-
 MODULES=       lang/ruby
 
 CONFIGURE_STYLE=ruby gem
 
+RUN_DEPENDS=   textproc/ruby-rexml
+
 MODRUBY_TEST=  ruby
 MODRUBY_TEST_TARGET =  ${WRKSRC}/test/run_tests.rb
+
+FLAVORS=       ruby30
+FLAVOR=        ruby30
 
 .include <bsd.port.mk>
Index: patches/patch-_metadata
===================================================================
RCS file: patches/patch-_metadata
diff -N patches/patch-_metadata
--- patches/patch-_metadata     21 Aug 2020 21:22:27 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,17 +0,0 @@
-$OpenBSD: patch-_metadata,v 1.1 2020/08/21 21:22:27 jeremy Exp $
-
-Don't require runtime dependency on rexml, not needed
-in Ruby 2.5-2.7 where it is in stdlib.
-
-Index: .metadata
---- .metadata.orig
-+++ .metadata
-@@ -17,7 +17,7 @@ dependencies:
-     - - ">="
-       - !ruby/object:Gem::Version
-         version: '0'
--  type: :runtime
-+  type: :development
-   prerelease: false
-   version_requirements: !ruby/object:Gem::Requirement
-     requirements:


Reply via email to