qscintilla2: make formula compatible with sandbox
The formula previously tried to create a symlink in the `qt` formula prefix in order to make its Qt Designer plug-in discoverable. It now places it in a shared location that will be automatically picked up. Closes Homebrew/homebrew#47245. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
This commit is contained in:
parent
18f00d5dc8
commit
930c87d946
1 changed files with 1 additions and 4 deletions
|
@ -70,16 +70,13 @@ class Qscintilla2 < Formula
|
|||
mkpath prefix/"plugins/designer"
|
||||
cd "designer-Qt4Qt5" do
|
||||
inreplace "designer.pro" do |s|
|
||||
s.sub! "$$[QT_INSTALL_PLUGINS]", "#{prefix}/plugins"
|
||||
s.sub! "$$[QT_INSTALL_PLUGINS]", "#{lib}/qt4/plugins"
|
||||
s.sub! "$$[QT_INSTALL_LIBS]", "#{lib}"
|
||||
end
|
||||
system "qmake", "designer.pro", *args
|
||||
system "make"
|
||||
system "make", "install"
|
||||
end
|
||||
# symlink Qt Designer plugin (note: not removed on qscintilla2 formula uninstall)
|
||||
ln_sf prefix/"plugins/designer/libqscintillaplugin.dylib",
|
||||
Formula["qt"].opt_prefix/"plugins/designer/"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue