Skip to content

Commit

Permalink
Add libpq dependency instead of postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
m-hofmann-a9s committed Dec 10, 2024
1 parent 0919352 commit 8c97272
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Formula/minetest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Minetest < Formula
depends_on "libvorbis"
depends_on "luajit"
depends_on "zstd"
depends_on "postgresql"
depends_on "libpq"

Check failure on line 49 in Formula/minetest.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/DependencyOrder: dependency "libpq" (line 49) should be put before dependency "zstd" (line 48)

uses_from_macos "curl"
uses_from_macos "ncurses"
Expand Down Expand Up @@ -79,8 +79,8 @@ def install
-DCMAKE_EXE_LINKER_FLAGS='-L#{Formula["freetype"].opt_lib}'
-DENABLE_GETTEXT=1
-DCUSTOM_GETTEXT_PATH=#{Formula["gettext"].opt_prefix}
-DPostgreSQL_INCLUDE_DIR='#{Formula["postgresql"].opt_prefix}'
-DPostgreSQL_LIBRARY='#{Formula["postgresql"].opt_lib}'
-DPostgreSQL_INCLUDE_DIR='#{Formula["libpq"].opt_prefix}'
-DPostgreSQL_LIBRARY='#{Formula["libpq"].opt_lib}'
]
# Workaround for 'Could NOT find GettextLib (missing: ICONV_LIBRARY)'
args << "-DICONV_LIBRARY=#{MacOS.sdk_path}/usr/lib/libiconv.tbd" if OS.mac? && MacOS.version >= :big_sur
Expand Down

0 comments on commit 8c97272

Please sign in to comment.