Permalink
Browse files

Нови файлове: net-irc/hexchat-9999 (GIT версия)

  • Loading branch information...
1 parent 81dadd7 commit 8666d663c674ad88c9a56baf9df3323c27aa708f @sandikata committed Sep 18, 2012
View
3 net-irc/hexchat/Manifest
@@ -0,0 +1,3 @@
+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
+EBUILD hexchat-9999.ebuild 2541 SHA256 92ca3130f9319bd08af9712ea24f2d2a974e149fcfc0a546c44dc26e8c4a939b SHA512 fab94f9dcfbe2a194915d7aff27be3e4abe443b349f82892ada32784677aea4aa50b2f32cf9dff9919772abd1c9d985c89ce02ed5ee69cd601731a4e94eb8ec3 WHIRLPOOL 582e2acf3555003559ae35efcbf1e3bf51c6d33a4577986cdd47ac69e9e32757353b3b59200ffa405eccec107907fb04a3e5207670ac5edce7722ac19080f0ce
View
17 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 ?
View
31 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 ();
View
98 net-irc/hexchat/hexchat-9999.ebuild
@@ -0,0 +1,98 @@
+# 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 git-2
+
+DESCRIPTION="Graphical IRC client based on XChat"
+#SRC_URI="https://github.com/downloads/hexchat/hexchat/${P}.tar.xz"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/hexchat/hexchat.git"
+HOMEPAGE="http://www.hexchat.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-*"
+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
+}

0 comments on commit 8666d66

Please sign in to comment.