summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen de Groot <yngwin@gentoo.org>2012-08-25 14:34:49 +0000
committerBen de Groot <yngwin@gentoo.org>2012-08-25 14:34:49 +0000
commita771de8d275b102a92ea9cf4c18c05b815efbd1c (patch)
treefaf0552a6e04f135adb7e647885ce4963282edd2 /net-irc
parentadded ~ppc-macos (bug #432692) (diff)
downloadgentoo-2-a771de8d275b102a92ea9cf4c18c05b815efbd1c.tar.gz
gentoo-2-a771de8d275b102a92ea9cf4c18c05b815efbd1c.tar.bz2
gentoo-2-a771de8d275b102a92ea9cf4c18c05b815efbd1c.zip
Initial commit. User submitted ebuild from bug #428296.
(Portage version: 2.2.0_alpha122/cvs/Linux x86_64)
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/hexchat/ChangeLog10
-rw-r--r--net-irc/hexchat/Manifest5
-rw-r--r--net-irc/hexchat/files/hexchat-2.8.8-cflags.patch17
-rw-r--r--net-irc/hexchat/files/hexchat-2.9.1-input-box.patch31
-rw-r--r--net-irc/hexchat/hexchat-2.9.1.ebuild96
-rw-r--r--net-irc/hexchat/metadata.xml13
6 files changed, 172 insertions, 0 deletions
diff --git a/net-irc/hexchat/ChangeLog b/net-irc/hexchat/ChangeLog
new file mode 100644
index 000000000000..20c19c32d792
--- /dev/null
+++ b/net-irc/hexchat/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-irc/hexchat
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/hexchat/ChangeLog,v 1.1 2012/08/25 14:34:49 yngwin Exp $
+
+*hexchat-2.9.1 (25 Aug 2012)
+
+ 25 Aug 2012; Ben de Groot <yngwin@gentoo.org>
+ +files/hexchat-2.8.8-cflags.patch, +files/hexchat-2.9.1-input-box.patch,
+ +hexchat-2.9.1.ebuild, +metadata.xml:
+ Initial commit. User submitted ebuild from bug #428296.
diff --git a/net-irc/hexchat/Manifest b/net-irc/hexchat/Manifest
new file mode 100644
index 000000000000..836ab4ba0869
--- /dev/null
+++ b/net-irc/hexchat/Manifest
@@ -0,0 +1,5 @@
+AUX hexchat-2.8.8-cflags.patch 474 SHA256 283e5f9203a527f3e8e3439112a2b4bf729511f5580ef1e6abed8f72a9488fec SHA512 ffb9a39b675ae592952eff7636af67287932aff9b9e597d56a72c920d710f70d50668a33d1c0fd7af375a080df290d4bf110ed80ad84119a62ae3aeadbb1c54a WHIRLPOOL 690f6059cd39b7e0d8c1840ba9c1d3d77ca6bdd551a3b50aa076957519e172a525161c5e3634c9f8f26aa19c7ad5c745d232419181db3c8e41f864e0853923d2
+AUX hexchat-2.9.1-input-box.patch 1084 SHA256 eccf4a35b64fb429c171e5c77e62dae9ac5d58c1a7bc50e97d7c68fd0913fcaa SHA512 bedbbc7362d119b6b2064d0016447423621573502c19364a1539a1b682294c334d24eab12e806cd5339f4c30b979a5d6cf7b605f855028051f40277e5e654901 WHIRLPOOL 5d8e3f088391b18bfa57e2062c161f85b1bdf9edf0f53847bb12da60e97d876c29022a9f1e2f9c58fc952d6a1143dbeb8abc2efbf2d9c6b2b7ed2e1701cdea69
+DIST hexchat-2.9.1.tar.xz 1640100 SHA256 0d924ff439bbe3ffdd531a1b909564f7ca19736b416ff625fdd5342f0ff8b270 SHA512 147d91a2ff9aa95fd55a7389eb00a4a24420cef99df8a0a4addd1d536707ea27307ba60fab03d4aaab7b780e2a12ccd2f2a327fd3af96549922b2ff78beb86b3 WHIRLPOOL 51fa606d174db80f540b0228873d2ff30d79df95de14c9d4430124cb0207c96e7a7ab4f5479c55f6ef6adb45868eb93779a03a237d6bfb09012d07e72cca26b0
+EBUILD hexchat-2.9.1.ebuild 2391 SHA256 e20177367226289655663ef0d646ff3398ea651bd869520c502d9f7aaffea6a0 SHA512 6f6d31450765f84484086fe4db4f85af73a214d4793d3a8ab4f6c8bfa9b7efe536cba792346f86a57e3e7c7bcb922641d62c8ffbdeed943cdff0fe80afcc0a1d WHIRLPOOL b18a899c4dd54f34100d93d9d42c168aa9db5490f5fca29485e89b06355c4d7a880260c9f0595158b41f1463470d96d2e222aaee6d297cc3501fe9a77f64999f
+MISC metadata.xml 438 SHA256 06b398662e704e255a6e566618d77ebdd1cf088794073029574529f2ff45d791 SHA512 a6e606be11006a2a11c7cbb89175f1ddbd658d1b5d078f1199c06896531aeda4954f29cb1b805487036cad826266b39e11170a10d43d462147e1d5a9cf027c3d WHIRLPOOL 3ccd2d603d65da372b438afe62fd48ffcac820f039c1dca047da502a335083f6b805dfa845960c5f44b54c00e71036cb85a7ce060b52ad9606dbd1821d684e26
diff --git a/net-irc/hexchat/files/hexchat-2.8.8-cflags.patch b/net-irc/hexchat/files/hexchat-2.8.8-cflags.patch
new file mode 100644
index 000000000000..a220ce6d5948
--- /dev/null
+++ b/net-irc/hexchat/files/hexchat-2.8.8-cflags.patch
@@ -0,0 +1,17 @@
+--- configure.in
++++ configure.in
+@@ -771,14 +771,6 @@
+ if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
+ CFLAGS="$CFLAGS -Wall"
+ fi
+- if test "$system" = "Linux" -o "$system" = "FreeBSD"; then
+- if test -z "`echo "$CFLAGS" | grep "\-pipe" 2> /dev/null`" ; then
+- CFLAGS="$CFLAGS -pipe"
+- fi
+- fi
+- if test -z "`echo "$CFLAGS" | grep "\-g " 2> /dev/null`" ; then
+- CFLAGS="$CFLAGS -g"
+- fi
+ fi
+
+ dnl does this compiler support -Wno-pointer-sign ?
diff --git a/net-irc/hexchat/files/hexchat-2.9.1-input-box.patch b/net-irc/hexchat/files/hexchat-2.9.1-input-box.patch
new file mode 100644
index 000000000000..e4bb2d5380a2
--- /dev/null
+++ b/net-irc/hexchat/files/hexchat-2.9.1-input-box.patch
@@ -0,0 +1,31 @@
+--- src/fe-gtk/maingui.c.old 2012-07-27 19:42:13.883027123 +0200
++++ src/fe-gtk/maingui.c 2012-07-27 19:43:28.269021617 +0200
+@@ -2802,7 +2802,7 @@
+ static void
+ mg_create_entry (session *sess, GtkWidget *box)
+ {
+- GtkWidget *hbox, *but, *entry;
++ GtkWidget *hbox, *but, *entry, *mybox;
+ #ifdef USE_GTKSPELL
+ GtkWidget *sw;
+ #endif
+@@ -2823,7 +2823,7 @@
+
+ #ifdef USE_GTKSPELL
+ gui->input_box = entry = gtk_text_view_new ();
+- gtk_widget_set_size_request (entry, 0, 1);
++ gtk_widget_set_size_request (entry, 0, -1);
+ gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (entry), GTK_WRAP_NONE);
+ gtk_text_view_set_accepts_tab (GTK_TEXT_VIEW (entry), FALSE);
+ if (prefs.gui_input_spell)
+@@ -2836,7 +2836,9 @@
+ GTK_POLICY_NEVER,
+ GTK_POLICY_NEVER);
+ gtk_container_add (GTK_CONTAINER (sw), entry);
+- gtk_container_add (GTK_CONTAINER (hbox), sw);
++ mybox = gtk_vbox_new(FALSE, 0);
++ gtk_box_pack_start (GTK_BOX (mybox), sw, 1, 0, 0);
++ gtk_box_pack_start (GTK_BOX (hbox), mybox, 1, 1, 0);
+ #else
+ #ifdef USE_LIBSEXY
+ gui->input_box = entry = sexy_spell_entry_new ();
diff --git a/net-irc/hexchat/hexchat-2.9.1.ebuild b/net-irc/hexchat/hexchat-2.9.1.ebuild
new file mode 100644
index 000000000000..bab2cad36afb
--- /dev/null
+++ b/net-irc/hexchat/hexchat-2.9.1.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/hexchat/hexchat-2.9.1.ebuild,v 1.1 2012/08/25 14:34:49 yngwin Exp $
+
+EAPI=4
+
+inherit eutils gnome2 versionator
+
+DESCRIPTION="Graphical IRC client based on XChat"
+SRC_URI="https://github.com/downloads/hexchat/hexchat/${P}.tar.xz"
+HOMEPAGE="http://www.hexchat.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dbus fastscroll +gtk ipv6 libnotify mmx nls ntlm perl python spell ssl tcl"
+
+RDEPEND=">=dev-libs/glib-2.6.0:2
+ x11-libs/pango
+ !<net-irc/xchat-gnome-0.9
+ dbus? ( >=dev-libs/dbus-glib-0.71 )
+ gtk? ( >=x11-libs/gtk+-2.10.0:2 )
+ libnotify? ( x11-libs/libnotify )
+ ntlm? ( net-libs/libntlm )
+ perl? ( >=dev-lang/perl-5.8.0 )
+ python? ( =dev-lang/python-2* )
+ tcl? ( dev-lang/tcl )
+ spell? ( app-text/gtkspell:2 )
+ ssl? ( >=dev-libs/openssl-0.9.6d )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+pkg_setup() {
+ # Added for to fix a sparc seg fault issue by Jason Wever <weeve@gentoo.org>
+ if [[ ${ARCH} = sparc ]] ; then
+ replace-flags "-O[3-9]" "-O2"
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.9.1-input-box.patch \
+ "${FILESDIR}"/${PN}-2.8.8-cflags.patch
+
+ # use $libdir/hexchat/plugins as the plugin directory
+ if [[ $(get_libdir) != "lib" ]] ; then
+ sed -e 's:${prefix}/lib/hexchat:${libdir}/hexchat:' \
+ -i configure.in || die 'sed failed'
+ fi
+
+ # QA: remove deprecated line from desktop file
+ sed -e '/Encoding=UTF-8/d' -i ${PN}.desktop || die 'sed failed'
+
+ ./autogen.sh
+}
+
+src_configure() {
+ econf --enable-shm \
+ $(use_enable dbus) \
+ $(use_enable ipv6) \
+ $(use_enable mmx) \
+ $(use_enable nls) \
+ $(use_enable ntlm) \
+ $(use_enable perl) \
+ $(use_enable python) \
+ $(use_enable spell spell gtkspell) \
+ $(use_enable ssl openssl) \
+ $(use_enable tcl) \
+ $(use_enable gtk gtkfe) \
+ $(use_enable !gtk textfe) \
+ $(use_enable fastscroll xft)
+}
+
+src_install() {
+ default
+ prune_libtool_files --all
+
+ # install plugin development header
+ insinto /usr/include/hexchat
+ doins src/common/xchat-plugin.h
+
+ dodoc ChangeLog README*
+
+ # remove useless desktop entry when gtk USE flag is unset
+ if ! use gtk ; then
+ rm "${ED}"/usr/share/applications -rf
+ fi
+}
+
+pkg_postinst() {
+ if use !gtk ; then
+ elog "You have disabled the gtk USE flag. This means you don't have"
+ elog "the GTK-GUI for HexChat but only a text interface called \"hexchat-text\"."
+ fi
+ gnome2_icon_cache_update
+}
diff --git a/net-irc/hexchat/metadata.xml b/net-irc/hexchat/metadata.xml
new file mode 100644
index 000000000000..de6fbd8c3f8a
--- /dev/null
+++ b/net-irc/hexchat/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>god@politeia.in</email>
+ </maintainer>
+ <use>
+ <flag name='fastscroll'>Make scrolling of large text buffers faster by
+ circumventing some of pango's overhead</flag>
+ <flag name='ntlm'>Enable NTLM authentication</flag>
+ </use>
+</pkgmetadata>