Hiroshi Hatake
null+****@clear*****
Fri Jun 26 23:34:59 JST 2015
Hiroshi Hatake 2015-06-26 23:34:59 +0900 (Fri, 26 Jun 2015) New Revision: 2e71801139a73d8de52f61ef677bbceec90bd64d https://github.com/mroonga/homebrew-mroonga/commit/2e71801139a73d8de52f61ef677bbceec90bd64d Merged 135e0a6: Merge pull request #3 from mroonga/modernize-formula Message: Use modern way option Modified files: mroonga.rb Modified: mroonga.rb (+13 -13) =================================================================== --- mroonga.rb 2015-06-26 22:58:59 +0900 (76d3f47) +++ mroonga.rb 2015-06-26 23:34:59 +0900 (b492110) @@ -7,36 +7,36 @@ class Mroonga < Formula depends_on "pkg-config" => :build depends_on "groonga-normalizer-mysql" + option "with-homebrew-mysql", "Use MySQL installed by Homebrew." + option "with-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)" + if build.with?("mecab") depends_on "groonga" => "--with-mecab" else depends_on "groonga" end - if build.with?("use-homebrew-mysql") + if build.with?("homebrew-mysql") depends_on "mysql" - elsif build.with?("use-homebrew-mariadb") + elsif build.with?("homebrew-mariadb") depends_on "mariadb" 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 [ ] end def install - if build.with?("use-homebrew-mysql") + if build.with?("homebrew-mysql") mysql_formula_name = "mysql" - elsif build.with?("use-homebrew-mariadb") + elsif build.with?("homebrew-mariadb") mysql_formula_name = "mariadb" else mysql_formula_name = nil -------------- next part -------------- HTML����������������������������... 下载