[Groonga-mysql-commit] mroonga/homebrew-mroonga at 5241164 [master] Use new style option notation

Back to archive index

Hiroshi Hatake null+****@clear*****
Fri Jun 26 22:54:44 JST 2015


Hiroshi Hatake	2015-06-26 22:54:44 +0900 (Fri, 26 Jun 2015)

  New Revision: 5241164573e8ce7a13d4a5deccc17e4848ec0065
  https://github.com/mroonga/homebrew-mroonga/commit/5241164573e8ce7a13d4a5deccc17e4848ec0065

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

  Message:
    Use new style option notation

  Modified files:
    mroonga.rb

  Modified: mroonga.rb (+8 -12)
===================================================================
--- mroonga.rb    2015-06-26 22:46:59 +0900 (1788883)
+++ mroonga.rb    2015-06-26 22:54:44 +0900 (a7a2f9c)
@@ -19,18 +19,14 @@ class Mroonga < Formula
     depends_on "mariadb"
   end
 
-  def options
-    [
-      ["--use-homebrew-mysql", "Use MySQL installed by Homebrew."],
-      ["--use-homebrew-mariadb", "Use MariaDB installed by Homebrew. You can't use this option with --use-homebrew-mysql."],
-      ["--with-mecab", "Use MeCab installed by Homebrew. You can use additional tokenizer - TokenMecab. Note that you need to build Groonga with MeCab"],
-      ["--with-mysql-source=PATH", "MySQL source directory. You can't use this option with --use-homebrew-mysql and --use-homebrew-mariadb"],
-      ["--with-mysql-build=PATH", "MySQL build directory (default: guess from --with-mysql-source)"],
-      ["--with-mysql-config=PATH", "mysql_config path (default: guess from --with-mysql-source)"],
-      ["--with-debug[=full]", "Build with debug option"],
-      ["--with-default-parser=PARSER", "Specify the default fulltext parser like --with-default-parser=TokenMecab (default: TokenBigram)"],
-    ]
-  end
+  option "use-homebrew-mysql", "Use MySQL installed by Homebrew."
+  option "use-homebrew-mariadb", "Use MariaDB installed by Homebrew. You can't use this option with use-homebrew-mysql."
+  option "with-mecab", "Use MeCab installed by Homebrew. You can use additional tokenizer - TokenMecab. Note that you need to build Groonga with MeCab"
+  option "with-mysql-source=PATH", "MySQL source directory. You can't use this option with use-homebrew-mysql and use-homebrew-mariadb"
+  option "with-mysql-build=PATH", "MySQL build directory (default: guess from with-mysql-source)"
+  option "with-mysql-config=PATH", "mysql_config path (default: guess from with-mysql-source)"
+  option "with-debug[=full]", "Build with debug option"
+  option "with-default-parser=PARSER", "Specify the default fulltext parser like with-default-parser=TokenMecab (default: TokenBigram)"
 
   def patches
     [
-------------- next part --------------
HTML����������������������������...
Download 



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