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

[email protected]_py310: attempt to fix pyside runtime error with post i… #630

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
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
18 changes: 14 additions & 4 deletions Formula/[email protected]_py310.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class FreecadAT0212Py310 < Formula

Check warning on line 1 in Formula/[email protected]_py310.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-15)

No bottle built for [email protected]_py310!

[email protected]_py310 has unbottled dependencies, so a bottle will not be built.
desc "Parametric 3D modeler"
homepage "https://www.freecadweb.org"
license "GPL-2.0-only"
Expand Down Expand Up @@ -341,12 +341,22 @@
def post_install
if OS.mac?
ohai "the value of prefix = #{prefix}"
ln_s "#{prefix}/MacOS/FreeCAD", "#{HOMEBREW_PREFIX}/bin/freecad", force: true
ln_s "#{prefix}/MacOS/FreeCADCmd", "#{HOMEBREW_PREFIX}/bin/freecadcmd", force: true
freecad_path = Pathname.new("#{prefix}/MacOS/FreeCAD")
freecadcmd_path = Pathname.new("#{prefix}/MacOS/FreeCADCmd")

ln_s freecad_path.relative_path_from(Pathname.new("#{HOMEBREW_PREFIX}/bin")), "#{HOMEBREW_PREFIX}/bin/freecad",
force: true
ln_s freecadcmd_path.relative_path_from(Pathname.new("#{HOMEBREW_PREFIX}/bin")),
"#{HOMEBREW_PREFIX}/bin/freecadcmd", force: true
elsif OS.linux?
ohai "the value of prefix = #{prefix}"
ln_s "#{bin}/FreeCAD", "#{HOMEBREW_PREFIX}/bin/freecad", force: true
ln_s "#{bin}/FreeCADCmd", "#{HOMEBREW_PREFIX}/bin/freecadcmd", force: true
freecad_path = Pathname.new("#{bin}/FreeCAD")
freecadcmd_path = Pathname.new("#{bin}/FreeCADCmd")

ln_s freecad_path.relative_path_from(Pathname.new("#{HOMEBREW_PREFIX}/bin")), "#{HOMEBREW_PREFIX}/bin/freecad",
force: true
ln_s freecadcmd_path.relative_path_from(Pathname.new("#{HOMEBREW_PREFIX}/bin")),
"#{HOMEBREW_PREFIX}/bin/freecadcmd", force: true
end
end

Expand Down
Loading