# HG changeset patch # User Christophe Lincoln # Date 1239132121 -7200 # Node ID dc6ae334aef8cf0c37773098669c7765f112a288 # Parent f40ed77124a0bba93bc050c8224c5bd2aacf3038 xchat: fix build with GTK > 2.12 (Thanks Fabrice) diff -r f40ed77124a0 -r dc6ae334aef8 xchat/receipt --- a/xchat/receipt Tue Apr 07 16:14:12 2009 +0000 +++ b/xchat/receipt Tue Apr 07 21:22:01 2009 +0200 @@ -5,8 +5,8 @@ CATEGORY="network" SHORT_DESC="IRC client using GTK+" MAINTAINER="fabrice.thiroux@free.fr" -DEPENDS="gtk+ dbus libsexy libnotify openssl gettext dbus-glib xorg-libXdamage" -BUILD_DEPENDS="gtk+-dev dbus-dev libsexy-dev libnotify-dev openssl shared-mime-info" +DEPENDS="gtk+ dbus openssl gettext dbus-glib xorg-libXdamage" +BUILD_DEPENDS="gtk+-dev dbus-dev openssl shared-mime-info" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.xchat.org/" WGET_URL="http://www.xchat.org/files/source/2.8/$TARBALL" @@ -16,8 +16,15 @@ { cd $src patch -p1 -i ../stuff/xc286-smallfixes.diff - ./configure --prefix=/usr --infodir=/usr/share/info \ - --mandir=/usr/share/man $CONFIGURE_ARGS && + # gentoo patch for GTK > 2.12 + patch -p1 -i ../stuff/xchat-2.8.6-gtk+-2.13.patch + ./configure --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --disable-plugin \ + --disable-tcl \ + --enable-spell=static \ + $CONFIGURE_ARGS && make && make DESTDIR=$PWD/_pkg install } @@ -28,7 +35,5 @@ mkdir -p $fs/usr \ $fs/usr/share cp -a $_pkg/usr/bin $fs/usr - cp -a $_pkg/usr/share/applications $fs/usr/share cp -a $_pkg/usr/share/dbus-1 $fs/usr/share - cp -a $_pkg/usr/share/pixmaps $fs/usr/share } diff -r f40ed77124a0 -r dc6ae334aef8 xchat/stuff/xchat-2.8.6-gtk+-2.13.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xchat/stuff/xchat-2.8.6-gtk+-2.13.patch Tue Apr 07 21:22:01 2009 +0200 @@ -0,0 +1,10 @@ +--- xchat-2.8.6/src/fe-gtk/xtext.h.orig 2008-02-24 05:48:02.000000000 +0100 ++++ xchat-2.8.6/src/fe-gtk/xtext.h 2008-09-06 02:18:39.000000000 +0200 +@@ -270,6 +270,6 @@ + xtext_buffer *gtk_xtext_buffer_new (GtkXText *xtext); + void gtk_xtext_buffer_free (xtext_buffer *buf); + void gtk_xtext_buffer_show (GtkXText *xtext, xtext_buffer *buf, int render); +-GtkType gtk_xtext_get_type (void); ++GType gtk_xtext_get_type (void); + + #endif