Large refactor to Formula, mostly improving reliability and error handling but
also layout and readability.

General improvements so testing can be more complete.

Patches are automatically downloaded and applied for Formula that return a
list of urls from Formula::patches.

Split out the brew command logic to facilitate testing.

Facility from Adam Vandenberg to allow selective cleaning of files, added
because Python doesn't work when stripped.
This commit is contained in:
Max Howell 2009-08-10 16:48:30 +01:00
parent 63fcc79593
commit c81d5b6ca6
5 changed files with 13 additions and 12 deletions

View file

@ -1,6 +1,6 @@
require 'brewkit'
class GitManuals <UnidentifiedFormula
class GitManuals <Formula
@url='http://www.kernel.org/pub/software/scm/git/git-manpages-1.6.4.tar.bz2'
@md5='851e1df833895c5046a994c28d3d8368'
end

View file

@ -39,7 +39,6 @@ grc won't work as is. One option is to add some aliases to your ~/.profile
file. Homebrew can do that for you, just execute this command:
brew install grc --profile >> ~/.profile
EOS
end
end

View file

@ -1,6 +1,6 @@
require 'brewkit'
class SubversionDeps <UnidentifiedFormula
class SubversionDeps <Formula
@url='http://subversion.tigris.org/downloads/subversion-deps-1.6.3.tar.bz2'
@md5='22d3687ae93648fcecf945c045931272'
end
@ -20,7 +20,11 @@ class Subversion <Formula
# Use existing system zlib
# Use dep-provided other libraries
# Don't mess with Apache modules (since we're not sudo)
system "./configure --disable-debug --prefix='#{prefix}' --with-zlib=/usr/lib --disable-mod-activation --without-apache-libexecdir"
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--with-zlib=/usr/lib",
"--disable-mod-activation",
"--without-apache-libexecdir"
system "make"
system "make install"
end

View file

@ -1,6 +1,6 @@
require 'brewkit'
class TaglibExtras <UnidentifiedFormula
class TaglibExtras <Formula
@url='http://kollide.net/~jefferai/taglib-extras-0.1.6.tar.gz'
@md5='706a82fe4c25606f731faf4c14b5edb0'
end
@ -14,7 +14,7 @@ class Taglib <Formula
system "./configure --disable-debug --prefix='#{prefix}'"
system "make install"
TaglibExtras.new.brew do |f|
TaglibExtras.new.brew do
system "cmake . #{std_cmake_parameters}"
system "make install"
end unless ARGV.include? '--no-extras'

View file

@ -1,10 +1,8 @@
require 'brewkit'
class Term <ScriptFileFormula
def initialize
@url='http://github.com/liyanage/macosx-shell-scripts/raw/e29f7eaa1eb13d78056dec85dc517626ab1d93e3/term'
@md5='1bbf4509a50224b27ac8c20d3fe8682e'
@version='2.1'
@homepage='http://gist.github.com/116587'
end
@url='http://github.com/liyanage/macosx-shell-scripts/raw/e29f7eaa1eb13d78056dec85dc517626ab1d93e3/term'
@md5='1bbf4509a50224b27ac8c20d3fe8682e'
@version='2.1'
@homepage='http://gist.github.com/116587'
end