summaryrefslogtreecommitdiff
path: root/www/py-selenium/patches/patch-rake-tasks_checks.rb
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-selenium/patches/patch-rake-tasks_checks.rb')
-rw-r--r--www/py-selenium/patches/patch-rake-tasks_checks.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/www/py-selenium/patches/patch-rake-tasks_checks.rb b/www/py-selenium/patches/patch-rake-tasks_checks.rb
new file mode 100644
index 00000000000..56ba3da8873
--- /dev/null
+++ b/www/py-selenium/patches/patch-rake-tasks_checks.rb
@@ -0,0 +1,33 @@
+$NetBSD: patch-rake-tasks_checks.rb,v 1.1 2017/11/11 21:30:21 tnn Exp $
+
+Add BSD support.
+
+--- rake-tasks/checks.rb.orig 2017-11-06 11:27:01.000000000 +0000
++++ rake-tasks/checks.rb
+@@ -14,12 +14,16 @@ def linux?
+ (/linux/ =~ RbConfig::CONFIG['host_os']) != nil
+ end
+
++def bsd?
++ (/.*BSD/ =~ RbConfig::CONFIG['host_os']) != nil
++end
++
+ def cygwin?
+ RUBY_PLATFORM.downcase.include?("cygwin")
+ end
+
+ def unix?
+- linux? or mac?
++ linux? or mac? or bsd?
+ end
+
+ def classpath_separator?
+@@ -79,7 +83,7 @@ end
+
+ # Think of the confusion if we called this "g++"
+ def gcc?
+- linux? && present?("g++")
++ unix? && present?("g++")
+ end
+
+ def python?