[Groonga-commit] ranguba/rroonga at 4a3012f [master] Use "groonga-latest.zip" for build Groonga of Windows version

Zurück zum Archiv-Index
Yasuhiro Horimoto null+****@clear*****
Fri May 10 12:46:04 JST 2019


Yasuhiro Horimoto	2019-05-10 12:46:04 +0900 (Fri, 10 May 2019)

  Revision: 4a3012fa0eae840f1b19f3ed7cc6a91c00d93c5c
  https://github.com/ranguba/rroonga/commit/4a3012fa0eae840f1b19f3ed7cc6a91c00d93c5c

  Message:
    Use "groonga-latest.zip" for build Groonga of Windows version

  Modified files:
    ext/groonga/extconf.rb

  Modified: ext/groonga/extconf.rb (+5 -5)
===================================================================
--- ext/groonga/extconf.rb    2019-05-10 12:25:44 +0900 (c428104c)
+++ ext/groonga/extconf.rb    2019-05-10 12:46:04 +0900 (dabd20f4)
@@ -64,12 +64,12 @@ checking_for(checking_message("Win32 OS")) do
   win32
 end
 
-def install_groonga_locally(major, minor, micro)
+def install_groonga_locally
   FileUtils.mkdir_p(local_groonga_base_dir)
 
   Dir.chdir(local_groonga_base_dir) do
     if win32?
-      extract_groonga_win32_binary(major, minor, micro)
+      extract_groonga_win32_binary
     else
       build_groonga
     end
@@ -118,13 +118,13 @@ rescue LoadError
   end
 end
 
-def extract_groonga_win32_binary(major, minor, micro)
+def extract_groonga_win32_binary
   if ENV["RROONGA_USE_GROONGA_X64"]
     architecture = "x64"
   else
     architecture = "x86"
   end
-  zip = "groonga-#{major}.#{minor}.#{micro}-#{architecture}.zip"
+  zip = "groonga-latest-#{architecture}.zip"
   url = "http://packages.groonga.org/windows/groonga/#{zip}"
   install_dir = local_groonga_install_dir
 
@@ -275,7 +275,7 @@ end
 
 def install_local_groonga(package_name, major, minor, micro)
   unless have_local_groonga?(package_name, major, minor, micro)
-    install_groonga_locally(major, minor, micro)
+    install_groonga_locally
   end
   unless PKGConfig.have_package(package_name, major, minor, micro)
     exit(false)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190510/8fb82c56/attachment-0001.html>


More information about the Groonga-commit mailing list
Zurück zum Archiv-Index