Permalink
Browse files

Add frameworks helper to formula

  • Loading branch information...
adamv committed May 3, 2013
1 parent b1dfdf0 commit 3a4a9cb6a37ec6eba2fcdc2fa505f30f3dd5d63f
Showing with 16 additions and 20 deletions.
  1. +2 βˆ’2 Formula/bullet.rb
  2. +3 βˆ’3 Formula/jstalk.rb
  3. +5 βˆ’5 Formula/nu.rb
  4. +2 βˆ’2 Formula/pyside.rb
  5. +1 βˆ’3 Formula/qt.rb
  6. +1 βˆ’3 Formula/qt5.rb
  7. +2 βˆ’2 Formula/unar.rb
View
@@ -20,8 +20,8 @@ def install
if build.include? "framework"
args << "-DBUILD_SHARED_LIBS=ON" << "-DFRAMEWORK=ON"
args << "-DCMAKE_INSTALL_PREFIX=#{prefix}/Frameworks"
args << "-DCMAKE_INSTALL_NAME_DIR=#{prefix}/Frameworks"
args << "-DCMAKE_INSTALL_PREFIX=#{frameworks}"
args << "-DCMAKE_INSTALL_NAME_DIR=#{frameworks}"
else
args << "-DBUILD_SHARED_LIBS=ON" if build.include? "shared"
args << "-DCMAKE_INSTALL_PREFIX=#{prefix}"
View
@@ -24,18 +24,18 @@ def install
cd 'build/Release' do
bin.install 'jstalk'
prefix.install "JSTalk Editor.app"
(prefix+'Frameworks').install 'JSTalk.framework'
frameworks.install 'JSTalk.framework'
end
end
def caveats; <<-EOS.undent
Framework JSTalk was installed to:
#{prefix}/Frameworks/JSTalk.framework
#{frameworks}/JSTalk.framework
You may want to symlink this Framework to a standard OS X location,
such as:
mkdir ~/Frameworks
ln -s "#{prefix}/Frameworks/JSTalk.framework" ~/Frameworks
ln -s "#{frameworks}/JSTalk.framework" ~/Frameworks
JSTalk Editor.app was installed in:
#{prefix}
View
@@ -51,10 +51,10 @@ def install
arch = :x86_64 if arch == :i386 && Hardware.is_64_bit?
s.sub!(/^;;\(set @arch '\("i386"\)\)$/, "(set @arch '(\"#{arch}\"))") unless arch.nil?
s.gsub!('(SH "sudo ', '(SH "') # don't use sudo to install
s.gsub!('#{@destdir}/Library/Frameworks', '#{@prefix}/Library/Frameworks')
s.gsub!('#{@destdir}/Library/Frameworks', '#{@frameworks}')
s.sub! /^;; source files$/, <<-EOS
;; source files
(set @framework_install_path "#{prefix}/Library/Frameworks")
(set @framework_install_path "#{frameworks}")
EOS
end
system "make"
@@ -66,14 +66,14 @@ def install
end
def caveats
if self.installed? and File.exists? prefix+"Library/Frameworks/Nu.framework"
if self.installed? and File.exists? frameworks+"Nu.framework"
return <<-EOS.undent
Nu.framework was installed to:
#{prefix}/Library/Frameworks/Nu.framework
#{frameworks}/Nu.framework
You may want to symlink this Framework to a standard OS X location,
such as:
ln -s "#{prefix}/Library/Frameworks/Nu.framework" /Library/Frameworks
ln -s "#{frameworks}/Nu.framework" /Library/Frameworks
EOS
end
return nil
View
@@ -18,13 +18,13 @@ def install
# unless the folder containing those frameworks is added to the compiler
# search path.
qt = Formula.factory 'qt'
ENV.append_to_cflags "-F#{qt.prefix}/Frameworks"
ENV.append_to_cflags "-F#{qt.frameworks}"
# Also need `ALTERNATIVE_QT_INCLUDE_DIR` to prevent "missing file" errors.
# Add out of tree build because one of its deps, shiboken, itself needs an
# out of tree build in shiboken.rb.
args = std_cmake_args + %W[
-DALTERNATIVE_QT_INCLUDE_DIR=#{qt.prefix}/Frameworks
-DALTERNATIVE_QT_INCLUDE_DIR=#{qt.frameworks}
-DSITE_PACKAGE=lib/#{which_python}/site-packages
-DBUILD_TESTS=NO
..
View
@@ -117,10 +117,8 @@ def install
(prefix+'q3porting.xml').unlink
# Some config scripts will only find Qt in a "Frameworks" folder
# VirtualBox is an example of where this is needed
# See: https://github.com/mxcl/homebrew/issues/issue/745
cd prefix do
ln_s lib, prefix + "Frameworks"
ln_s lib, frameworks
end
# The pkg-config files installed suggest that headers can be found in the
View
@@ -76,10 +76,8 @@ def install
(bin+'qhelpconverter.app').rmtree
# Some config scripts will only find Qt in a "Frameworks" folder
# VirtualBox is an example of where this is needed
# See: https://github.com/mxcl/homebrew/issues/issue/745
cd prefix do
ln_s lib, prefix + "Frameworks"
ln_s lib, frameworks
end
# The pkg-config files installed suggest that headers can be found in the
View
@@ -22,8 +22,8 @@ def install
bin.install "./Release/unar", "./Release/lsar"
lib.install "./Release/libXADMaster.a"
(prefix/'Frameworks').install "./Release/XADMaster.framework"
(include/'libXADMaster').install_symlink Dir["#{prefix}/Frameworks/XADMaster.framework/Headers/*"]
frameworks.install "./Release/XADMaster.framework"
(include/'libXADMaster').install_symlink Dir["#{frameworks}/XADMaster.framework/Headers/*"]
cd "./Extra" do
man1.install "lsar.1", "unar.1"

0 comments on commit 3a4a9cb

Please sign in to comment.