Skip to content

Commit

Permalink
wip: fix brew prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
FirePing32 committed Mar 2, 2024
1 parent 374f254 commit e5b9f75
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions metacall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ class Metacall < Formula
depends_on "[email protected]"
depends_on "openjdk"

def brew_prefix
`brew --cellar`
end

def python
deps.map(&:to_formula)
.find { |f| f.name.match?(/^python@\d\.\d+$/) }
Expand Down Expand Up @@ -48,7 +44,7 @@ def install
-DOPTION_BUILD_EXAMPLES=OFF
-DOPTION_BUILD_LOADERS_PY=ON
-DOPTION_BUILD_LOADERS_NODE=ON
-DNodeJS_INSTALL_PREFIX=#{brew_prefix}/metacall/#{version}
-DNodeJS_INSTALL_PREFIX=#{prefix}/metacall/#{version}
-DOPTION_BUILD_LOADERS_JAVA=ON
-DOPTION_BUILD_LOADERS_JS=OFF
-DOPTION_BUILD_LOADERS_C=OFF
Expand All @@ -74,7 +70,7 @@ def install
# debug = "set -euxo pipefail\n"

metacall_extra = [
"PREFIX=#{brew_prefix}/metacall/#{version}\n",
"PREFIX=#{prefix}/metacall/#{version}\n",
"export LOADER_LIBRARY=\"${PREFIX}/lib\"\n",
"export SERIAL_LIBRARY_PATH=\"${PREFIX}/lib\"\n",
"export DETOUR_LIBRARY_PATH=\"${PREFIX}/lib\"\n",
Expand Down

0 comments on commit e5b9f75

Please sign in to comment.