2010-07-29 13:36:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Xchat < Formula
|
2010-07-29 13:36:15 +00:00
|
|
|
homepage 'http://xchat.org'
|
2012-05-30 04:37:03 +00:00
|
|
|
url 'http://xchat.org/files/source/2.8/xchat-2.8.8.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'a4ac161e4e40f4bbabc492675a1ff4380dba8d68'
|
2010-07-29 13:36:15 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-07-29 13:36:15 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'gtk+'
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2010-07-29 13:36:15 +00:00
|
|
|
|
2012-05-30 04:37:03 +00:00
|
|
|
# Adjust to newer glib include conventions
|
2012-05-30 14:29:51 +00:00
|
|
|
# Reported at https://sourceforge.net/tracker/?func=detail&aid=3446968&group_id=239&atid=100239
|
2012-05-30 04:37:03 +00:00
|
|
|
def patches; DATA; end
|
|
|
|
|
2010-07-29 13:36:15 +00:00
|
|
|
def install
|
2012-05-30 04:37:03 +00:00
|
|
|
ENV.append 'LDFLAGS', '-lgmodule-2.0'
|
|
|
|
|
|
|
|
args = %W[--prefix=#{prefix}
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--enable-openssl
|
|
|
|
--disable-python
|
|
|
|
--disable-xlib
|
|
|
|
--disable-perl
|
|
|
|
--disable-plugin]
|
2011-03-26 15:46:18 +00:00
|
|
|
|
|
|
|
# Fails on 32-bit core solo without this
|
|
|
|
args << "--disable-mmx" unless MacOS.prefer_64_bit?
|
|
|
|
|
|
|
|
system "./configure", *args
|
2010-07-29 13:36:15 +00:00
|
|
|
system "make install"
|
|
|
|
rm_rf share+"applications"
|
|
|
|
rm_rf share+"pixmaps"
|
|
|
|
end
|
|
|
|
end
|
2012-05-30 04:37:03 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/src/common/servlist.c b/src/common/servlist.c
|
|
|
|
index 1728928..0829c99 100644
|
|
|
|
--- a/src/common/servlist.c
|
|
|
|
+++ b/src/common/servlist.c
|
|
|
|
@@ -24,7 +24,7 @@
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
#include "xchat.h"
|
|
|
|
-#include <glib/ghash.h>
|
|
|
|
+#include <glib.h>
|
|
|
|
|
|
|
|
#include "cfgfiles.h"
|
|
|
|
#include "fe.h"
|
|
|
|
diff --git a/src/common/text.c b/src/common/text.c
|
|
|
|
index a219851..6b11174 100644
|
|
|
|
--- a/src/common/text.c
|
|
|
|
+++ b/src/common/text.c
|
|
|
|
@@ -28,7 +28,7 @@
|
|
|
|
#include <sys/mman.h>
|
|
|
|
|
|
|
|
#include "xchat.h"
|
|
|
|
-#include <glib/ghash.h>
|
|
|
|
+#include <glib.h>
|
|
|
|
#include "cfgfiles.h"
|
|
|
|
#include "chanopt.h"
|
|
|
|
#include "plugin.h"
|
|
|
|
diff --git a/src/common/util.c b/src/common/util.c
|
|
|
|
index 49517ec..5a0ab6c 100644
|
|
|
|
--- a/src/common/util.c
|
|
|
|
+++ b/src/common/util.c
|
|
|
|
@@ -39,7 +39,7 @@
|
|
|
|
#include <errno.h>
|
|
|
|
#include "xchat.h"
|
|
|
|
#include "xchatc.h"
|
|
|
|
-#include <glib/gmarkup.h>
|
|
|
|
+#include <glib.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include "util.h"
|
|
|
|
#include "../../config.h"
|
|
|
|
diff --git a/src/common/xchat.h b/src/common/xchat.h
|
|
|
|
index 013d6a1..e3f15a8 100644
|
|
|
|
--- a/src/common/xchat.h
|
|
|
|
+++ b/src/common/xchat.h
|
|
|
|
@@ -1,10 +1,6 @@
|
|
|
|
#include "../../config.h"
|
|
|
|
|
|
|
|
-#include <glib/gslist.h>
|
|
|
|
-#include <glib/glist.h>
|
|
|
|
-#include <glib/gutils.h>
|
|
|
|
-#include <glib/giochannel.h>
|
|
|
|
-#include <glib/gstrfuncs.h>
|
|
|
|
+#include <glib.h>
|
|
|
|
#include <time.h> /* need time_t */
|
|
|
|
|