blob: 21959d04b609fc88472c6537e5d44aad3948a4f2 (
plain)
| 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 | require 'formula'
class Uade < Formula
  homepage 'http://zakalwe.fi/uade/'
  stable do
    url "http://zakalwe.fi/uade/uade2/uade-2.13.tar.bz2"
    sha1 "61c5ce9dfecc37addf233de06be196c9b15a91d8"
    # Upstream patch to fix compiler detection under superenv
    patch :DATA
  end
  head 'git://zakalwe.fi/uade'
  depends_on 'pkg-config' => :build
  depends_on 'libao'
  resource "bencode-tools" do
    url "https://github.com/heikkiorsila/bencode-tools.git"
  end
  def install
    resource("bencode-tools").stage do
      system "./configure", "--prefix=#{prefix}", "--without-python"
      system "make"
      system "make install"
    end if build.head?
    system "./configure", "--prefix=#{prefix}"
    system "make install"
  end
end
__END__
diff --git a/configure b/configure
index 05bfa9b..a73608e 100755
--- a/configure
+++ b/configure
@@ -399,13 +399,13 @@ if test -n "$sharedir"; then
     uadedatadir="$sharedir"
 fi
 
-$NATIVECC -v 2>/dev/null >/dev/null
+$NATIVECC --version 2>/dev/null >/dev/null
 if test "$?" != "0"; then
     echo Native CC "$NATIVECC" not found, please install a C compiler
     exit 1
 fi
 
-$TARGETCC -v 2>/dev/null >/dev/null
+$TARGETCC --version 2>/dev/null >/dev/null
 if test "$?" != "0"; then
     echo Target CC "$TARGETCC" not found, please install a C compiler
     exit 1
 |