aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libinfinity.rb
blob: 41b1b81c0fd239ca4c1a7da05dd4a1812524e468 (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
require 'formula'

class Libinfinity < Formula
  homepage 'http://gobby.0x539.de/trac/wiki/Infinote/Libinfinity'
  url 'http://releases.0x539.de/libinfinity/libinfinity-0.5.2.tar.gz'
  sha1 '0864b7f00c44b7bed9f6b69e0e322e0359883358'

  depends_on 'pkg-config' => :build
  depends_on 'glib'
  depends_on 'gtk+'
  depends_on 'gnutls'
  depends_on 'libgsasl'
  depends_on :x11

  # Reported upstream here: http://gobby.0x539.de/trac/ticket/595
  # Supposedly fixed in HEAD.  Test and remove at libinfinity-0.5.3.
  fails_with :clang do
    build 318
    cause 'Non-void function should return a value'
  end

  # MacPorts patch to fix pam include
  def patches
    { :p0 => [
      "https://trac.macports.org/export/92297/trunk/dports/comms/libinfinity/files/patch-infinoted-infinoted-pam.c.diff"
    ]}
  end

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end