From 58a6dc241a086a7edaa3a73ed1ab36d42cd0a4f4 Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Sat, 14 Dec 2024 22:29:22 +0100 Subject: [PATCH] Add MINGW package dependency which is resolved by RubyInstaller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no package with contains libpq only, but the postgresql package now has less depencies than it had in the past. Especially python and perl are optional dependecies now, so that the install size is acceptable: Pakete (5) mingw-w64-clang-aarch64-icu-75.1-2 mingw-w64-clang-aarch64-lz4-1.10.0-1 mingw-w64-clang-aarch64-openssl-3.4.0-1 winpty-0.4.3-3 mingw-w64-clang-aarch64-postgresql-17.2-1 Gesamtgröße des Downloads: 40,09 MiB Gesamtgröße der installierten Pakete: 198,79 MiB --- pg.gemspec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pg.gemspec b/pg.gemspec index 310dc354a..091fbdf8d 100644 --- a/pg.gemspec +++ b/pg.gemspec @@ -20,6 +20,9 @@ Gem::Specification.new do |spec| spec.metadata["changelog_uri"] = "https://github.com/ged/ruby-pg/blob/master/History.md" spec.metadata["documentation_uri"] = "http://deveiate.org/code/pg" + # https://github.com/oneclick/rubyinstaller2/wiki/For-gem-developers#msys2-library-dependency + "msys2_mingw_dependencies" => "postgresql", + # Specify which files should be added to the gem when it is released. # The `git ls-files -z` loads the files in the RubyGem that have been added into git. spec.files = Dir.chdir(File.expand_path(__dir__)) do