[Groonga-mysql-commit] mroonga/homebrew-mroonga at 89fc27d [master] Use build.with? instead of ARGV.include? as much as possible

Back to archive index

Hiroshi Hatake null+****@clear*****
Fri Jun 26 22:58:59 JST 2015


Hiroshi Hatake	2015-06-26 22:58:59 +0900 (Fri, 26 Jun 2015)

  New Revision: 89fc27d4c67198aab9bf129203635bb7928d78c8
  https://github.com/mroonga/homebrew-mroonga/commit/89fc27d4c67198aab9bf129203635bb7928d78c8

  Merged 135e0a6: Merge pull request #3 from mroonga/modernize-formula

  Message:
    Use build.with? instead of ARGV.include? as much as possible

  Modified files:
    mroonga.rb

  Modified: mroonga.rb (+4 -4)
===================================================================
--- mroonga.rb    2015-06-26 22:54:44 +0900 (a7a2f9c)
+++ mroonga.rb    2015-06-26 22:58:59 +0900 (76d3f47)
@@ -13,9 +13,9 @@ class Mroonga < Formula
     depends_on "groonga"
   end
 
-  if ARGV.include?("--use-homebrew-mysql")
+  if build.with?("use-homebrew-mysql")
     depends_on "mysql"
-  elsif ARGV.include?("--use-homebrew-mariadb")
+  elsif build.with?("use-homebrew-mariadb")
     depends_on "mariadb"
   end
 
@@ -34,9 +34,9 @@ class Mroonga < Formula
   end
 
   def install
-    if ARGV.include?("--use-homebrew-mysql")
+    if build.with?("use-homebrew-mysql")
       mysql_formula_name = "mysql"
-    elsif ARGV.include?("--use-homebrew-mariadb")
+    elsif build.with?("use-homebrew-mariadb")
       mysql_formula_name = "mariadb"
     else
       mysql_formula_name = nil
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-mysql-commit mailing list
Back to archive index