Permalink
Browse files

Update formulae for version 0.7

* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
  • Loading branch information...
1 parent cdf768b commit d0efd9ee94a55e243f3b10e903526274fc21d569 @adamv adamv committed Apr 7, 2010
Showing 389 changed files with 1,133 additions and 1,404 deletions.
@@ -11,7 +11,8 @@ def patches
def install
ENV.ncurses_define
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--mandir=#{man}"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--mandir=#{man}", "--prefix=#{prefix}"
system "make install"
end
end
@@ -9,18 +9,18 @@ class Abuse <Formula
url 'svn://svn.zoy.org/abuse/abuse/trunk'
homepage 'http://abuse.zoy.org/'
version 'trunk'
-
+
depends_on 'pkg-config'
depends_on 'sdl'
depends_on 'libvorbis'
-
+
def patches
# * Add SDL.m4 to aclocal includes
# * Re-enable OpenGL detection
# * Don't try to include malloc.h
DATA
end
-
+
def startup_script
return <<-END
#!/bin/bash
@@ -30,27 +30,25 @@ def startup_script
def install
# Copy the data files
- d = libexec
- AbuseGameData.new.brew { d.install Dir["*"] }
-
+ AbuseGameData.new.brew { libexec.install Dir["*"] }
system "./bootstrap"
- system "./configure", "--prefix=#{prefix}", "--disable-debug",
+ system "./configure", "--prefix=#{prefix}", "--disable-debug",
"--disable-dependency-tracking",
"--disable-sdltest",
"--with-sdl-prefix=#{HOMEBREW_PREFIX}"
-
+
# Use Framework OpenGL, not libGl
%w[ . src src/imlib src/lisp src/net src/sdlport ].each do |p|
inreplace "#{p}/Makefile", '-lGL', '-framework OpenGL'
end
-
+
system "make"
libexec.install "src/abuse"
# Use a startup script to find the game data
(bin+'abuse').write startup_script
end
-
+
def caveats
"Game settings and saves will be written to the ~/.abuse folder."
end
@@ -1,8 +1,8 @@
require 'formula'
class Ack <ScriptFileFormula
- version '1.92'
url "http://github.com/petdance/ack/raw/079b049b7240c2960a8ff811b2857eba462ad803/ack"
+ version '1.92'
md5 '7db577145ceba9f6cc5fddc3e8198342'
homepage 'http://betterthangrep.com/'
end
@@ -5,13 +5,11 @@ class Activemq <Formula
homepage 'http://activemq.apache.org/'
md5 '17574ad1ee6cc3727bf7447c2421097b'
- def skip_clean? path
- path == libexec + 'webapps/admin/WEB-INF/jsp'
- end
+ skip_clean 'libexec/webapps/admin/WEB-INF/jsp'
def startup_script
<<-EOS.undent
- #!/usr/bin/env bash
+ #!/bin/bash
exec #{libexec}/bin/activemq
EOS
end
@@ -13,18 +13,18 @@ def startup_script app
#{libexec}/#{app} -os7 "#{libexec}/OS7.rom" -eos "#{libexec}/EOS.rom" -wp "#{libexec}/WP.rom" $*
END
end
-
+
def install
Dir.chdir 'src' do
system "make -f Makefile.osx dist"
end
-
+
libexec.install Dir["dist/*"]
-
+
(bin+'adamem').write startup_script('adamem')
(bin+'cvem').write startup_script('cvem')
end
-
+
def caveats
"Note that AdamEm is an X11 app, and does not support sound."
end
@@ -4,7 +4,7 @@ class AircrackNg <Formula
url 'http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz'
md5 'f7a24ed8fad122c4187d06bfd6f998b4'
homepage 'http://aircrack-ng.org/'
-
+
def install
# Force i386, otherwise you get errors:
# sha1-sse2.S:190:32-bit absolute addressing is not supported for x86-64
@@ -13,15 +13,14 @@ def install
ENV.remove compiler_flag, "-arch x86_64"
ENV.append compiler_flag, "-arch i386"
end
-
+
system "make"
system "make", "prefix=#{prefix}", "mandir=#{man1}", "install"
end
- def caveats
- <<-EOS.undent
- Run `airodump-ng-oui-update` as root (or with sudo) to install or update
- the Airodump-ng OUI file.
+ def caveats; <<-EOS.undent
+ Run `airodump-ng-oui-update` as root (or with sudo) to install or update
+ the Airodump-ng OUI file.
EOS
end
end
@@ -9,9 +9,8 @@ class Algol68g <Formula
def install
# These folders need to exist for configure to work. Lame.
bin.mkpath
-
- system "./configure",
- "-O3", "--threads", "--bindir=#{bin}", "--cc=#{ENV.cc}"
+
+ system "./configure", "-O3", "--threads", "--bindir=#{bin}", "--cc=#{ENV.cc}"
# Don't make the docs, they appear to be missing.
inreplace 'makefile', '@install -m 644 doc/man1/a68g.1 $(man_dir)', ''
@@ -16,7 +16,7 @@ def install
mv 'SDK Readme.txt', 'README'
prefix.install Dir['*']
- %w[adb android apkbuilder ddms dmtracedump draw9patch emulator
+ %w[adb android apkbuilder ddms dmtracedump draw9patch emulator
hierarchyviewer hprof-conv layoutopt mksdcard traceview
zipalign].each do |tool|
(bin+tool).make_link(prefix+'tools'+tool)
@@ -1,15 +1,16 @@
require 'formula'
class Angband <Formula
- @url='http://rephial.org/downloads/3.0/angband-3.0.9b-src.tar.gz'
- @md5='51a24fe3119e7eff8a8395d601b2747e'
- @homepage='http://rephial.org/'
+ url 'http://rephial.org/downloads/3.0/angband-3.0.9b-src.tar.gz'
+ md5 '51a24fe3119e7eff8a8395d601b2747e'
+ homepage 'http://rephial.org/'
def install
system "./configure", "--prefix=#{prefix}",
"--enable-curses",
"--disable-x11",
- "--disable-sdltest",
+ "--disable-sdl",
+ "--disable-sdl-mixer",
"--with-libpath=#{libexec}"
system "make"
# Install manually; 'make install' doesn't work.
@@ -5,9 +5,7 @@ class Antiword <Formula
homepage 'http://www.winfield.demon.nl/'
md5 'f868e2a269edcbc06bf77e89a55898d1'
- def skip_clean? path
- path == share+'antiword'
- end
+ skip_clean 'share/antiword'
def install
inreplace "Makefile" do |s|
@@ -9,14 +9,11 @@ def install
inreplace "Makefile" do |s|
s.remove_make_var! ["CC", "FLAGS", "LIBS", "LIBM"]
end
-
+
system "make standalone"
-
+
# Install manually
- bin.install "apg"
- man1.install "doc/man/apg.1"
-
- bin.install "apgbfm"
- man1.install "doc/man/apgbfm.1"
+ bin.install ["apg", "apgbfm"]
+ man1.install ["doc/man/apg.1", "doc/man/apgbfm.1"]
end
end
@@ -7,7 +7,7 @@ class AppEngineJavaSdk <Formula
def shim_script target
<<-EOS.undent
- #!/usr/bin/env bash
+ #!/bin/bash
#{libexec}/bin/#{target} $*
EOS
end
@@ -5,23 +5,19 @@ class Aqbanking <Formula
homepage 'http://www.aqbanking.de/'
md5 '244f5c6e470b55452d9f2cb6c081c137'
+ depends_on 'gettext'
depends_on 'gmp'
depends_on 'gwenhywfar'
depends_on 'ktoblzcheck' => :optional
- depends_on 'gettext'
- #depends_on 'qt3' # for gui frontends
def install
fails_with_llvm "llvm results in a sigsegfault during compile"
- configure_args = [
- "--prefix=#{prefix}",
- "--disable-debug",
- "--disable-dependency-tracking",
- "--with-frontends=cli",
- "--with-gwen-dir=#{HOMEBREW_PREFIX}",
- ]
- system "./configure", *configure_args
ENV.j1
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--with-frontends=cli",
+ "--with-gwen-dir=#{HOMEBREW_PREFIX}"
system "make install"
end
end
@@ -8,7 +8,9 @@ class ArpSk <Formula
depends_on 'libnet'
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--with-libnet=#{HOMEBREW_PREFIX}"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--with-libnet=#{HOMEBREW_PREFIX}"
system "make install"
end
end
@@ -8,23 +8,22 @@ class Arping <Formula
depends_on 'libnet'
+ def patches
+ # Patch removes header conflict with libpcap; arping 2.x uses libnet
+ DATA
+ end
+
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
# See patches comment
inreplace 'Makefile' do |s|
s.change_make_var! "LIBS", " -lnet"
end
-
+
system "make"
system "make install"
end
-
- def patches
- # Patch removes header conflict with libpcap
- # arping 2.x uses libnet
- DATA
- end
end
__END__
@@ -352,34 +352,28 @@ class Aspell <Formula
md5 'bc80f0198773d5c05086522be67334eb'
def options
- [
- ['--lang=XX,...', 'Install dictionary for language XX where language is the 2 or 3 letter country code, e.g.: --lang=en,es'],
- ]
+ [['--lang=XX,...',
+ 'Install dictionary for language XX where language is the 2 or 3 letter country code, e.g.: --lang=en,es']]
end
def install
fails_with_llvm
system "./configure", "--prefix=#{prefix}"
system "make install"
- langopt = ARGV.options.select { |v| v =~ /--lang=/ }
- langopt.uniq.each do |opt|
+ ARGV.options.select { |v| v =~ /--lang=/ }.uniq.each do |opt|
languages = opt.split('=')[1].split(',')
- languages.each() do |lang|
- classname = "Aspell" + lang.capitalize
- clazz = Object.const_get(classname)
- formula = clazz.new
+ languages.each do |lang|
+ formula = Object.const_get("Aspell" + lang.capitalize).new
formula.brew { formula.install }
end
end
end
-
- # TODO remove when options works properly
- def caveats
- "To install dictionaries, eg:
-
- brew install aspell --lang=en
-"
+ # TODO remove when options works properly
+ def caveats; <<-EOS
+ To install dictionaries, eg:
+ brew install aspell --lang=en
+ EOS
end
end
@@ -1,15 +1,15 @@
require 'formula'
class Astyle <Formula
- @url='http://downloads.sourceforge.net/sourceforge/astyle/astyle_1.24_macosx.tar.gz'
- @md5='9b63dadac58e867f14b3894befbdc9b3'
- @homepage='http://astyle.sourceforge.net/'
+ url 'http://downloads.sourceforge.net/sourceforge/astyle/astyle_1.24_macosx.tar.gz'
+ md5 '9b63dadac58e867f14b3894befbdc9b3'
+ homepage 'http://astyle.sourceforge.net/'
def install
Dir.chdir 'src' do
ENV['prefix']=prefix
system "make -f ../build/mac/Makefile"
- bin.install "./bin/astyle"
+ bin.install "bin/astyle"
end
end
end
@@ -6,11 +6,10 @@ class Atf <Formula
md5 'ec5b2cbbc70b0ced4b46e77c9f0b2a1b'
def install
- system "./configure",
- "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--sysconfdir=#{etc}",
- "--mandir=#{man}"
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--sysconfdir=#{etc}",
+ "--mandir=#{man}"
system "make install"
end
end
@@ -7,7 +7,7 @@ class Atk <Formula
depends_on 'pkg-config'
depends_on 'glib'
-
+
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
@@ -1,9 +1,9 @@
require 'formula'
class Automoc4 <Formula
- @url='ftp://ftp.kde.org/pub/kde/stable/automoc4/0.9.88/automoc4-0.9.88.tar.bz2'
- @homepage='http://techbase.kde.org/Development/Tools/Automoc4'
- @md5='91bf517cb940109180ecd07bc90c69ec'
+ url 'ftp://ftp.kde.org/pub/kde/stable/automoc4/0.9.88/automoc4-0.9.88.tar.bz2'
+ homepage 'http://techbase.kde.org/Development/Tools/Automoc4'
+ md5 '91bf517cb940109180ecd07bc90c69ec'
depends_on 'cmake'
depends_on 'qt'
Oops, something went wrong.

0 comments on commit d0efd9e

Please sign in to comment.