From 97956eca360d1048d5bda26cd1dcd6f84f51b679 Mon Sep 17 00:00:00 2001 From: Marinus Schraal Date: Fri, 13 Dec 2002 13:29:00 +0000 Subject: New version --- net-irc/xchat/ChangeLog | 7 +- net-irc/xchat/files/digest-xchat-1.9.4-r1 | 1 - net-irc/xchat/files/digest-xchat-1.9.7 | 1 + .../xchat-1.9.7-serverlist-corruption-fix.patch | 94 ++++++++++++++++++ net-irc/xchat/xchat-1.9.4-r1.ebuild | 110 --------------------- net-irc/xchat/xchat-1.9.7.ebuild | 93 +++++++++++++++++ 6 files changed, 194 insertions(+), 112 deletions(-) delete mode 100644 net-irc/xchat/files/digest-xchat-1.9.4-r1 create mode 100644 net-irc/xchat/files/digest-xchat-1.9.7 create mode 100644 net-irc/xchat/files/xchat-1.9.7-serverlist-corruption-fix.patch delete mode 100644 net-irc/xchat/xchat-1.9.4-r1.ebuild create mode 100644 net-irc/xchat/xchat-1.9.7.ebuild (limited to 'net-irc/xchat') diff --git a/net-irc/xchat/ChangeLog b/net-irc/xchat/ChangeLog index 6bafd5494aa0..4d9d4f304f9e 100644 --- a/net-irc/xchat/ChangeLog +++ b/net-irc/xchat/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-irc/xchat # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-irc/xchat/ChangeLog,v 1.34 2002/12/13 11:00:01 blizzy Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/xchat/ChangeLog,v 1.35 2002/12/13 13:29:00 foser Exp $ + +*xchat-1.9.7 (13 Dec 2002) + + 13 Dec 2002; foser xchat-1.9.7.ebuild : + New version 06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords diff --git a/net-irc/xchat/files/digest-xchat-1.9.4-r1 b/net-irc/xchat/files/digest-xchat-1.9.4-r1 deleted file mode 100644 index 7e2dffc2770d..000000000000 --- a/net-irc/xchat/files/digest-xchat-1.9.4-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 ed0820b35e5a9c7c5860108a1555236f xchat-1.9.4.tar.bz2 700920 diff --git a/net-irc/xchat/files/digest-xchat-1.9.7 b/net-irc/xchat/files/digest-xchat-1.9.7 new file mode 100644 index 000000000000..be10fcfa6c32 --- /dev/null +++ b/net-irc/xchat/files/digest-xchat-1.9.7 @@ -0,0 +1 @@ +MD5 7a26011f12370559ec3d3ac56934afa2 xchat-1.9.7.tar.bz2 825812 diff --git a/net-irc/xchat/files/xchat-1.9.7-serverlist-corruption-fix.patch b/net-irc/xchat/files/xchat-1.9.7-serverlist-corruption-fix.patch new file mode 100644 index 000000000000..8fca6bbd52e5 --- /dev/null +++ b/net-irc/xchat/files/xchat-1.9.7-serverlist-corruption-fix.patch @@ -0,0 +1,94 @@ +diff -ru --exclude=po --exclude=intl --exclude=Makefile.in xchat-1.9.7/src/fe-gtk/servlistgui.c xchat-1.9.8/src/fe-gtk/servlistgui.c +--- xchat-1.9.7/src/fe-gtk/servlistgui.c 2002-12-12 15:30:40.000000000 +1100 ++++ xchat-1.9.8/src/fe-gtk/servlistgui.c 2002-12-13 19:35:04.000000000 +1100 +@@ -45,6 +45,7 @@ + static GtkWidget *networks_tree; /* network TreeView */ + static GtkWidget *connect_button; + static GtkWidget *connectnew_button; ++static int ignore_changed = FALSE; + + /* global user info */ + static GtkWidget *entry_nick1; +@@ -98,10 +99,12 @@ + static void + servlist_entries_populate (ircnet *net) + { +- void *old = selected_net; + static GList *cbitems = NULL; + int i; + ++ /* avoid the "changed" callback */ ++ ignore_changed = TRUE; ++ + gtk_entry_set_text (GTK_ENTRY (entry_nick), net->nick ? net->nick : ""); + gtk_entry_set_text (GTK_ENTRY (entry_user), net->user ? net->user : ""); + gtk_entry_set_text (GTK_ENTRY (entry_real), net->real ? net->real : ""); +@@ -121,11 +124,9 @@ + gtk_combo_set_popdown_strings (GTK_COMBO (combo_encoding), cbitems); + } + +- /* avoid the "changed" callback */ +- old = selected_net; +- selected_net = NULL; + gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (combo_encoding)->entry), net->encoding ? net->encoding : "System default"); +- selected_net = old; ++ ++ ignore_changed = FALSE; + + if (net->flags & FLAG_USE_GLOBAL) + { +@@ -745,8 +746,11 @@ + if (!selected_net) + return; + +- free (*str); +- *str = strdup (GTK_ENTRY (entry)->text); ++ if (!ignore_changed) ++ { ++ free (*str); ++ *str = strdup (GTK_ENTRY (entry)->text); ++ } + } + + static GtkWidget * +@@ -938,9 +942,12 @@ + if (!selected_net) + return; + +- if (selected_net->encoding) +- free (selected_net->encoding); +- selected_net->encoding = strdup (entry->text); ++ if (!ignore_changed) ++ { ++ if (selected_net->encoding) ++ free (selected_net->encoding); ++ selected_net->encoding = strdup (entry->text); ++ } + } + + static GtkWidget * +@@ -969,7 +976,6 @@ + + cb = gtk_combo_new (); + gtk_combo_set_popdown_strings (GTK_COMBO (cb), cbitems); +- /*gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (cb)->entry), _("System default"));*/ + g_signal_connect (G_OBJECT (GTK_COMBO (cb)->entry), "changed", + G_CALLBACK (servlist_combo_cb), NULL); + gtk_table_attach (GTK_TABLE (table), cb, 1, 2, 7, 8, +@@ -1082,14 +1088,14 @@ + return tree; + } + +-static void ++/*static void + skip_motd (GtkWidget * igad, gpointer serv) + { + if (GTK_TOGGLE_BUTTON (igad)->active) + prefs.skipmotd = TRUE; + else + prefs.skipmotd = FALSE; +-} ++}*/ + + static void + no_servlist (GtkWidget * igad, gpointer serv) diff --git a/net-irc/xchat/xchat-1.9.4-r1.ebuild b/net-irc/xchat/xchat-1.9.4-r1.ebuild deleted file mode 100644 index bc4324b4dc50..000000000000 --- a/net-irc/xchat/xchat-1.9.4-r1.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2002 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-irc/xchat/xchat-1.9.4-r1.ebuild,v 1.2 2002/12/09 04:33:13 manson Exp $ - -IUSE="perl gnome ssl gtk python mmx ipv6 nls kde" - -S=${WORKDIR}/${P} -DESCRIPTION="X-Chat is a graphical IRC client for UNIX operating systems." -SRC_URI="http://www.xchat.org/files/source/1.9/${P}.tar.bz2" -HOMEPAGE="http://www.xchat.org/" - -LICENSE="GPL-2" -SLOT="2" -KEYWORDS="x86 ppc sparc " - -RDEPEND=">=dev-libs/glib-2.0.4 - >=x11-libs/gtk+-2.0.5 - perl? ( >=sys-devel/perl-5.6.1 ) - gnome? ( >=x11-libs/libzvt-2.0.1 - >=gnome-base/libgnome-2.0.1 - >=gnome-base/gnome-applets-2.0.0 - >=gnome-base/gnome-panel-2.0.1 ) - ssl? ( >=dev-libs/openssl-0.9.6d )" - -DEPEND="${RDEPEND} - nls? ( >=sys-devel/gettext-0.10.38 )" - -src_unpack() { - unpack ${A} - patch -d ${S} -p1 < ${FILESDIR}/gentoo-${P}-scrolled-tabs.patch -} - -# From the xchat 1.9.3 README_FIRST file: -# (one of the) REMAINING PROBLEMS: -# * can't compile with gnome, panel and zvt support * -# stroke - -src_compile() { - - local myopts myflags - - if [ ! `use perl` ] ; then - use gnome \ - && myopts="${myopts} --enable-gnome --enable-panel" \ - || myopts="${myopts} --enable-gtkfe --disable-gnome --disable-zvt" - - use gnome \ - && CFLAGS="${CFLAGS} -I/usr/include/orbit-2.0" \ - || myopts="${myopts} --disable-gnome" - fi - - use gtk \ - || myopts="${myopts} --disable-gtkfe" - - use ssl \ - && myopts="${myopts} --enable-openssl" - - use perl \ - || myopts="${myopts} --disable-perl" - - use python \ - || myopts="${myopts} --disable-python" - - use nls \ - && myopts="${myopts} --enable-hebrew --enable-japanese-conv" \ - || myopts="${myopts} --disable-nls" - - use mmx \ - && myopts="${myopts} --enable-mmx" \ - || myopts="${myopts} --disable-mmx" - - use ipv6 \ - && myopts="${myopts} --enable-ipv6" - - - [ -n "${DISABLE_XFT}" ] && myopts="${myopts} --disable-xft" - - econf \ - --program-suffix=-2 \ - ${myopts} || die "Configure failed" - - MAKEOPTS="-j1" emake || die "Compile failed" -} - -src_install() { - # some magic to create a menu entry for xchat 2 - sed -e "s:Exec=xchat:Exec=xchat-2:" -e "s:Name=X-Chat:Name=X-Chat 2:" xchat.desktop > xchat-2.desktop - - use kde && insinto ${KDEDIR}/share/applnk/Internet \ - || insinto /usr/share/gnome/apps/Internet - doins xchat-2.desktop - - einstall install || die "Install failed" - - # we prefer our own launcher - rm ${D}/etc/X11/applnk/Internet/xchat.desktop - rmdir -p ${D}/etc/X11/applnk/Internet - - use python && - ( dosym /usr/lib/xchat/plugins/python.so-2 /usr/lib/xchat/plugins/python.so ) - use perl && - ( dosym /usr/lib/xchat/plugins/perl.so-2 /usr/lib/xchat/plugins/perl.so ) - - dodoc AUTHORS COPYING ChangeLog README -} - -pkg_postinst() { - einfo "If you want X-Chat to correctly display Hebrew (bidi) do " - einfo "'export DISABLE_XFT=1' and re-emerge xchat" -} diff --git a/net-irc/xchat/xchat-1.9.7.ebuild b/net-irc/xchat/xchat-1.9.7.ebuild new file mode 100644 index 000000000000..5032608fb18d --- /dev/null +++ b/net-irc/xchat/xchat-1.9.7.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-irc/xchat/xchat-1.9.7.ebuild,v 1.1 2002/12/13 13:29:00 foser Exp $ + +inherit eutils + +IUSE="perl gnome ssl gtk python mmx ipv6 nls kde" +S=${WORKDIR}/${P} +DESCRIPTION="X-Chat is a graphical IRC client for UNIX operating systems." +SRC_URI="http://www.xchat.org/files/source/1.9/${P}.tar.bz2" +HOMEPAGE="http://www.xchat.org/" + +LICENSE="GPL-2" +SLOT="2" +KEYWORDS="~x86 ~ppc ~sparc" + +RDEPEND=">=dev-libs/glib-2.0.4 + >=x11-libs/gtk+-2.0.5 + perl? ( >=sys-devel/perl-5.6.1 ) + gnome? ( >=x11-libs/libzvt-2.0.1 + >=gnome-base/libgnome-2.0.1 + >=gnome-base/gnome-applets-2.0.0 + >=gnome-base/gnome-panel-2.0.1 ) + ssl? ( >=dev-libs/openssl-0.9.6d ) + python? ( dev-lang/python )" + +DEPEND="${RDEPEND} + nls? ( >=sys-devel/gettext-0.10.38 )" + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${P}-serverlist-corruption-fix.patch +} + +src_compile() { + local myopts myflags + + if [ ! `use perl` ] ; then + use gnome \ + && myopts="${myopts} --enable-gnome --enable-panel" \ + || myopts="${myopts} --enable-gtkfe --disable-gnome --disable-zvt" + + # use gnome \ + # && CFLAGS="${CFLAGS} -I/usr/include/orbit-2.0" \ + # || myopts="${myopts} --disable-gnome" + fi + + use gtk \ + && myopts="${myopts} --enable-gtkfe" \ + || myopts="${myopts} --disable-gtkfe" + use ssl \ + && myopts="${myopts} --enable-openssl" \ + || myopts="${myopts} --disable-openssl" + use perl \ + && myopts="${myopts} --enable-perl" \ + || myopts="${myopts} --disable-perl" + use python \ + && myopts="${myopts} --enable-python" \ + || myopts="${myopts} --disable-python" + use nls \ + && myopts="${myopts} --enable-nls --enable-hebrew" \ + || myopts="${myopts} --disable-nls --disable-hebrew" + # --enable-japanese-conv is broken + use mmx \ + && myopts="${myopts} --enable-mmx" \ + || myopts="${myopts} --disable-mmx" + use ipv6 \ + && myopts="${myopts} --enable-ipv6" \ + || myopts="${myopts} --disable-ipv6" + + [ -n "${DISABLE_XFT}" ] && myopts="${myopts} --disable-xft" + + econf \ + --program-suffix=-2 \ + ${myopts} || die "Configure failed" + + MAKEOPTS="-j1" emake || die "Compile failed" +} + +src_install() { + # some magic to create a menu entry for xchat 2 + mv xchat.desktop xchat.desktop.old + sed -e "s:Exec=xchat:Exec=xchat-2:" -e "s:Name=XChat IRC:Name=XChat 2 IRC:" xchat.desktop.old > xchat.desktop + + einstall install || die "Install failed" + + dodoc AUTHORS COPYING ChangeLog README +} + +pkg_postinst() { + einfo "If you want X-Chat to correctly display Hebrew (bidi) do " + einfo "'export DISABLE_XFT=1' and re-emerge xchat" +} -- cgit v1.2.3-65-gdbad