-
Notifications
You must be signed in to change notification settings - Fork 115
/
Copy pathvitetris.rb
41 lines (34 loc) · 1.03 KB
/
vitetris.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require 'formula'
class Vitetris < Formula
homepage 'http://www.victornils.net/tetris/'
url 'http://www.victornils.net/tetris/vitetris-0.57.tar.gz'
sha1 'af9d539ae208fb174db4b86e535e7e29b7ffa3cf'
# remove a 'strip' option not supported on OS X and root options for
# 'install'
patch :DATA
def install
system "./configure", "--prefix=#{prefix}", "--without-xlib"
system "make", "install"
end
test do
system "tetris", "-hiscore"
end
end
__END__
--- a/Makefile 2013-10-07 11:57:18.000000000 +0200
+++ b/Makefile 2013-10-07 11:57:29.000000000 +0200
@@ -5,7 +5,7 @@
# Uncomment to change the default. (Only used in Unix-like systems.)
#HISCORE_FILENAME = /var/games/vitetris-hiscores
-INSTALL = install -oroot -groot
+INSTALL = install
default: build
@echo Done.
@@ -18,7 +18,7 @@
cd src; $(MAKE) tetris
mv -f src/tetris$(EXE) $(PROGNAME)
@echo stripping symbols to reduce program size:
- -strip --strip-all $(PROGNAME)
+ -strip $(PROGNAME)
gameserver: src/netw/gameserver.c
cd src/netw; $(MAKE) gameserver