forked from Homebrew/legacy-homebrew
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/mxcl/homebrew
- Loading branch information
Showing
41 changed files
with
453 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
require 'formula' | ||
|
||
class Field3d < Formula | ||
url 'https://github.com/imageworks/Field3D/tarball/v1.2.0' | ||
homepage 'https://sites.google.com/site/field3d/' | ||
sha1 '1bbd1c7cadca96d5f0d58f3f2a27241d481e205f' | ||
|
||
depends_on 'cmake' => :build | ||
depends_on 'scons' => :build | ||
depends_on 'doxygen' => :build | ||
depends_on 'boost' | ||
depends_on 'ilmbase' | ||
depends_on 'hdf5' | ||
|
||
def install | ||
# Set the compilers for Homebrew - was fixed to gcc & g++ | ||
inreplace 'SConstruct', 'env = Environment()', | ||
<<-EOS.undent | ||
env = Environment()\n | ||
env.Replace(CC = "#{ENV.cc}") | ||
env.Replace(CXX = "#{ENV.cxx}") | ||
EOS | ||
|
||
inreplace 'BuildSupport.py' do |s| | ||
s.gsub! '/opt/local/include', "#{HOMEBREW_PREFIX}/include" | ||
s.gsub! '/opt/local/lib', "#{HOMEBREW_PREFIX}/lib" | ||
# Merge Homebrew's CFLAGS into the build's CCFLAGS passed to CC and CXX | ||
s.gsub! 'env.Append(CCFLAGS = ["-Wall"])', "env.MergeFlags(['#{ENV.cflags}'])" | ||
end | ||
|
||
# Build the software with scons. | ||
if MacOS.prefer_64_bit? | ||
system "scons do64=1" | ||
else | ||
system "scons" | ||
end | ||
|
||
# Build the docs with cmake | ||
mkdir 'macbuild' | ||
Dir.chdir 'macbuild' do | ||
system "cmake .." | ||
system "make doc" | ||
end | ||
|
||
# Install the libraries and docs. | ||
b = if MacOS.prefer_64_bit? | ||
'install/darwin/m64/release/' | ||
else | ||
'install/darwin/m32/release/' | ||
end | ||
|
||
lib.install Dir[b+'lib/*'] | ||
include.install Dir[b+'include/*'] | ||
doc.install Dir['docs/html/*'] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
require 'formula' | ||
|
||
class GnomeDocUtils < Formula | ||
homepage 'https://live.gnome.org/GnomeDocUtils' | ||
url 'ftp://ftp.gnome.org/pub/gnome/sources/gnome-doc-utils/0.20/gnome-doc-utils-0.20.6.tar.bz2' | ||
sha256 '091486e370480bf45349ad09dac799211092a02938b26a0d68206172cb6cebbf' | ||
|
||
depends_on 'pkg-config' => :build | ||
depends_on 'intltool' | ||
depends_on 'docbook' | ||
depends_on 'libxml2' # --with-python | ||
depends_on 'gettext' | ||
|
||
fails_with_llvm "Undefined symbols when linking", :build => "2326" | ||
|
||
def install | ||
args = ["--prefix=#{prefix}", | ||
"--disable-scrollkeeper", | ||
"--enable-build-utils=yes"] | ||
|
||
system "./configure", *args | ||
|
||
# Compilation doesn't work right if we jump straight to make install | ||
system "make" | ||
system "make install" | ||
end | ||
|
||
def caveats; <<-EOS.undent | ||
Gnome-doc-utils requires libxml2 to be compiled | ||
with the python modules enabled, to do so: | ||
$ brew install libxml2 --with-python | ||
EOS | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.