Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencsg: Fix patch not applying #127947

Merged
merged 2 commits into from
Apr 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions Formula/opencsg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ class Opencsg < Formula
depends_on "qt@5" => :build
depends_on "glew"

# This patch disabling building examples
patch do
url "https://github.com/raw/Homebrew/formula-patches/990b9bb/opencsg/disable-examples.diff"
sha256 "12cc799a6352eda4a18706eeefea059d14e23605a627dc12ed2a809f65328d69"
end

def install
# Disable building examples
inreplace "opencsg.pro", "src example", "src"

qt5 = Formula["qt@5"].opt_prefix
system "#{qt5}/bin/qmake", "-r", "INSTALLDIR=#{prefix}",
"INCLUDEPATH+=#{Formula["glew"].opt_include}",
Expand Down