2012-04-24 13:54:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libinfinity < Formula
|
|
|
|
homepage 'http://gobby.0x539.de/trac/wiki/Infinote/Libinfinity'
|
2013-01-17 04:06:19 +00:00
|
|
|
url 'http://releases.0x539.de/libinfinity/libinfinity-0.5.3.tar.gz'
|
|
|
|
sha1 '33fcdad764331e33ff1036d24c65d6296387e839'
|
2012-04-24 13:54:42 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'gtk+'
|
|
|
|
depends_on 'gnutls'
|
|
|
|
depends_on 'libgsasl'
|
2012-07-15 23:57:26 +00:00
|
|
|
depends_on :x11
|
2012-04-24 13:54:42 +00:00
|
|
|
|
2012-06-04 18:45:49 +00:00
|
|
|
# Reported upstream here: http://gobby.0x539.de/trac/ticket/595
|
2013-01-17 04:06:19 +00:00
|
|
|
# Supposedly fixed in HEAD, but still happens in 0.5.3, possibly
|
|
|
|
# in a different place.
|
2012-06-04 18:45:49 +00:00
|
|
|
fails_with :clang do
|
2013-01-17 04:06:19 +00:00
|
|
|
build 421
|
2012-06-04 18:45:49 +00:00
|
|
|
cause 'Non-void function should return a value'
|
|
|
|
end
|
|
|
|
|
2012-04-24 13:54:42 +00:00
|
|
|
# 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"
|
2013-01-17 23:15:52 +00:00
|
|
|
# Don't link this into share!
|
|
|
|
(share/"icons/hicolor/icon-theme.cache").unlink
|
2012-04-24 13:54:42 +00:00
|
|
|
end
|
|
|
|
end
|