diff options
| author | Max Howell | 2009-05-21 00:04:43 +0100 |
|---|---|---|
| committer | Max Howell | 2009-05-21 00:04:43 +0100 |
| commit | 84c5c3e5c301382ede5b1f04c7440ee9055589af (patch) | |
| tree | fe8248a0b54da1dbb92693f9dca7db0c6bb56ed9 /Formula | |
| parent | 29d85578e75170a6c0eaebda4d701b46f1acf446 (diff) | |
| download | brew-0.1.tar.bz2 | |
The core tree, and some formulae0.1
Diffstat (limited to 'Formula')
| -rw-r--r-- | Formula/cmake.rb | 11 | ||||
| -rw-r--r-- | Formula/dmd.rb | 23 | ||||
| -rw-r--r-- | Formula/git.rb | 12 | ||||
| -rw-r--r-- | Formula/grc.rb | 71 | ||||
| -rw-r--r-- | Formula/mad.rb | 12 | ||||
| -rw-r--r-- | Formula/wget.rb | 12 |
6 files changed, 141 insertions, 0 deletions
diff --git a/Formula/cmake.rb b/Formula/cmake.rb new file mode 100644 index 000000000..0961a8254 --- /dev/null +++ b/Formula/cmake.rb @@ -0,0 +1,11 @@ +$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks +require 'brewkit' + +url='http://www.cmake.org/files/v2.6/cmake-2.6.3.tar.gz' +md5='5ba47a94ce276f326abca1fd72a7e7c6' + +Formula.new(url, md5).brew do |prefix| + system "./bootstrap --prefix=#{prefix} --system-libs" + system "make" + system "make install" +end
\ No newline at end of file diff --git a/Formula/dmd.rb b/Formula/dmd.rb new file mode 100644 index 000000000..0c0c7f6d7 --- /dev/null +++ b/Formula/dmd.rb @@ -0,0 +1,23 @@ +$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks +require 'brewkit' + +homepage='http://www.digitalmars.com/d/' +url='http://ftp.digitalmars.com/dmd.1.043.zip' +md5='6c83b7296cb84090a9ebc11ab0fb94a2' + +Formula.new(url, md5).brew do |prefix| + prefix.mkpath + FileUtils.cp_r 'osx/bin', prefix + FileUtils.cp_r 'osx/lib', prefix + FileUtils.cp_r 'man', prefix + FileUtils.cp_r 'man', prefix + + share=prefix+'share'+'doc'+'d' + html=share+'html' + samples=share+'examples' #examples is the more typical directory name + html.mkpath + samples.mkpath + + FileUtils.cp_r Dir['html/d/*'], html unless ARGV.include? '--no-html' + FileUtils.cp_r Dir['samples/d/*'], samples unless ARGV.include? '--no-samples' +end
\ No newline at end of file diff --git a/Formula/git.rb b/Formula/git.rb new file mode 100644 index 000000000..3d1bd1a19 --- /dev/null +++ b/Formula/git.rb @@ -0,0 +1,12 @@ +$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks +require 'brewkit' + +homepage='http://git-scm.com' +url='http://kernel.org/pub/software/scm/git/git-1.6.3.1.tar.bz2' +md5='c1f4aab741359c29f0fbf28563ac7387' + +Formula.new(url, md5).brew do |prefix| + `./configure --disable-debug --prefix="#{prefix}"` + `make` + `make install` +end
\ No newline at end of file diff --git a/Formula/grc.rb b/Formula/grc.rb new file mode 100644 index 000000000..32dc460fa --- /dev/null +++ b/Formula/grc.rb @@ -0,0 +1,71 @@ +$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks +require 'brewkit' +require 'FileUtils' + +def profile_string + <<-sput +GRC=`which grc` +if [ "$TERM" != dumb ] && [ -n GRC ] +then + alias colourify="$GRC -es --colour=auto" + alias configure='colourify ./configure' + alias diff='colourify diff' + alias make='colourify make' + alias gcc='colourify gcc' + alias g++='colourify g++' + alias as='colourify as' + alias gas='colourify gas' + alias ld='colourify ld' + alias netstat='colourify netstat' + alias ping='colourify ping' + alias traceroute='colourify /usr/sbin/traceroute' +fi + sput +end + +######################################################################### ARGV +case ARGV[0] + when '--profile' then + puts + puts '################################################################## >> yumports' + puts profile_string + puts '################################################################## << yumports' + exit 0 +end + +######################################################################### cook +homepage='http://korpus.juls.savba.sk/~garabik/software/grc.html' +url='http://korpus.juls.savba.sk/~garabik/software/grc/grc_1.1.tar.gz' +md5='eeb612aba2fff14cbaf1f3bec7e1eb60' + +Formula.new(url, md5).brew do |prefix| + #TODO we should deprefixify since it's python and thus possible + inreplace 'grc', '/etc', prefix+'/etc' + inreplace 'grc.1', '/etc', prefix+'/etc' + inreplace 'grcat', '/usr/local', prefix + inreplace 'grcat.1', '/usr/local', prefix + + FileUtils.mkpath prefix + Dir.chdir prefix do + FileUtils.mkpath 'bin' + FileUtils.mkpath 'share/grc' + FileUtils.mkpath 'share/man/man1' + FileUtils.mkpath 'etc' + end + + `cp -fv grc grcat #{prefix}/bin` + `cp -fv conf.* #{prefix}/share/grc` + `cp -fv grc.conf #{prefix}/etc` + `cp -fv grc.1 grcat.1 #{prefix}/share/man/man1` + + puts <<-sput +We suggest you add this to your .profile in order to make grc work! :P + +#{profile_string} + +We can do this for you: + + #{$0} --profile >> ~/.profile + +sput +end diff --git a/Formula/mad.rb b/Formula/mad.rb new file mode 100644 index 000000000..0cd7bad0f --- /dev/null +++ b/Formula/mad.rb @@ -0,0 +1,12 @@ +$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks +require 'brewkit' + +homepage='http://www.underbit.com/products/mad/' +url='http://kent.dl.sourceforge.net/sourceforge/mad/libmad-0.15.1b.tar.gz' +md5='1be543bc30c56fb6bea1d7bf6a64e66c' + +Formula.new(url, md5).brew do |prefix| + `./configure --disable-debugging --enable-fpm=intel --prefix="#{prefix}"` + `make` + `make install` +end
\ No newline at end of file diff --git a/Formula/wget.rb b/Formula/wget.rb new file mode 100644 index 000000000..1c6ee8517 --- /dev/null +++ b/Formula/wget.rb @@ -0,0 +1,12 @@ +$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks +require 'brewkit' + +homepage='http://www.gnu.org/software/wget/' +url='http://ftp.gnu.org/gnu/wget/wget-1.11.4.tar.bz2' +md5='f5076a8c2ec2b7f334cb6e3059820f9c' + +Formula.new(url, md5).brew do |prefix| + `./configure --disable-debug --prefix="#{prefix}"` + `make` + `make install` +end
\ No newline at end of file |
