-
Notifications
You must be signed in to change notification settings - Fork 116
/
bastet.rb
31 lines (25 loc) · 811 Bytes
/
bastet.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
require "formula"
require "etc"
class Bastet < Formula
homepage "http://fph.altervista.org/prog/bastet.html"
url "http://fph.altervista.org/prog/files/bastet-0.41.tgz"
sha1 "644a0f76adedef84946159520c1639ff0c6c47ec"
patch :p1 do
url "http://fph.altervista.org/prog/files/bastet-0.41-osx-patch.diff"
sha1 "bf38253d07889025c05440a77b4a498dfd952a2c"
end
def install
inreplace "Makefile" do |s|
s.change_make_var! "BIN_PREFIX", "#{bin}/"
s.change_make_var! "DATA_PREFIX", "#{var}/"
s.change_make_var! "GAME_USER", Etc.getpwuid.name
end
system "make", "all"
# for some reason, these aren't created automatically
bin.mkpath
var.mkpath
system "make", "install"
# the makefile doesn't install the manpage
man6.install "bastet.6"
end
end