aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/abuse.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-06 22:58:35 -0700
committerAdam Vandenberg2010-08-07 18:08:53 -0700
commitd0efd9ee94a55e243f3b10e903526274fc21d569 (patch)
treeb21984390a0292957a3819df57c62bac558d284d /Library/Formula/abuse.rb
parentcdf768bc328f01e64e9f74551ff4b40d5cf0da70 (diff)
downloadhomebrew-d0efd9ee94a55e243f3b10e903526274fc21d569.tar.bz2
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
Diffstat (limited to 'Library/Formula/abuse.rb')
-rw-r--r--Library/Formula/abuse.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/Library/Formula/abuse.rb b/Library/Formula/abuse.rb
index b6f94525a..ae1d8681f 100644
--- a/Library/Formula/abuse.rb
+++ b/Library/Formula/abuse.rb
@@ -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 @@ END
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