-
Notifications
You must be signed in to change notification settings - Fork 116
/
dopewars.rb
29 lines (25 loc) · 1005 Bytes
/
dopewars.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
require 'formula'
class Dopewars < Formula
homepage 'http://dopewars.sourceforge.net'
url 'https://downloads.sourceforge.net/project/dopewars/dopewars/1.5.12/dopewars-1.5.12.tar.gz'
sha1 'ad46a38e225680e591b078eeec563d47b96684bc'
depends_on 'pkg-config' => :build
depends_on 'glib'
def install
inreplace "src/Makefile.in", "$(dopewars_DEPENDENCIES)", ""
inreplace "ltmain.sh", "need_relink=yes", "need_relink=no"
inreplace "src/plugins/Makefile.in", "LIBADD =", "LIBADD = -module -avoid-version"
system "./configure", "--disable-gui-client",
"--disable-gui-server",
"--enable-plugins",
"--enable-networking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--disable-debug",
"--disable-dependency-tracking"
system "make", "install"
end
test do
system "#{bin}/dopewars", "-v"
end
end