From e536a94402c6f5c2a1861c3be7db2a1d193ddc31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 1 Jul 2010 11:27:04 +0200 Subject: [PATCH] Add ebuild for net-irc/xchat-2.8.8. --- net-irc/xchat/Manifest | 2 + net-irc/xchat/xchat-2.8.8.ebuild | 102 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 net-irc/xchat/xchat-2.8.8.ebuild diff --git a/net-irc/xchat/Manifest b/net-irc/xchat/Manifest index 89e3b2f..66eda18 100644 --- a/net-irc/xchat/Manifest +++ b/net-irc/xchat/Manifest @@ -2,5 +2,7 @@ AUX xc286-smallfixes.diff 2020 RMD160 91c654320b7b1f9d6b13f7b226fb4cec26054319 S AUX xchat-2.8.6-nickcompletion_without_space.diff 460 RMD160 ad9b22c1177aecd9f305c3f0422a4b2963347086 SHA1 c1c6a1355f49a1a71aa9b0e82479e8ffe314bb53 SHA256 1a683f11530d27ddc848571bd2697ea4c1865d05887292469ae9a8dc7fc74aaf AUX xchat-2.8.6-shm-pixmaps.patch 2711 RMD160 0052d6981752d19cf4876180f00a57b4c503f0c8 SHA1 3731d5c7ac04f053da923406fc73df37ff7802df SHA256 984174ea711fbb7b2d7817e838fb5ad54f4c414ca5f6004994f15bf790279060 DIST xchat-2.8.6.tar.bz2 1423645 RMD160 bc199e3b58a9db3dfd9f2af6bac7fb6162c53d6e SHA1 7a7463e65cb26c680ed70dd96cec98bcc05435a4 SHA256 8c89dbf36304b99363a7f090d695447653102b4528ca2aa367a2abe5cff1746d +DIST xchat-2.8.8.tar.bz2 1509993 RMD160 1bc3e0ff00e15c83588dd21a3ef3e8e34f953331 SHA1 a4ac161e4e40f4bbabc492675a1ff4380dba8d68 SHA256 0d6d69437b5e1e45f3e66270fe369344943de8a1190e498fafa5296315a27db0 DIST xchat-dccserver-0.6.patch.bz2 49320 RMD160 24cc9bd414b1dd0e7e38ba9a49d12257aeb89e68 SHA1 e7b8b58cf7f647ff8778c7542cd46e9b22987385 SHA256 90a49a8d810380020c507c1a36f02e7d972cf92b5e4802dcd5cc518cba29078f EBUILD xchat-2.8.6-r2.ebuild 2877 RMD160 4951636387c986afab13f20ce09163e9ea14805d SHA1 c169a5ec5b412726d535f41e8f456f4b313c3ca8 SHA256 5983d7727d415068b13d97dc603a7d38d0ec849fa49839fe7fe452823f58a5a0 +EBUILD xchat-2.8.8.ebuild 2816 RMD160 b7d9533d13d42da0c17f9d14df4062661ebee335 SHA1 bb0fc9b7987c8688fadbdda7fd0f6d7004e55b8a SHA256 7a2e717d8562ecb5e325defef79c9db0bf6be97e6e527098a566b9385095fad3 diff --git a/net-irc/xchat/xchat-2.8.8.ebuild b/net-irc/xchat/xchat-2.8.8.ebuild new file mode 100644 index 0000000..dd38926 --- /dev/null +++ b/net-irc/xchat/xchat-2.8.8.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/xchat/xchat-2.8.8.ebuild,v 1.1 2010/06/01 08:13:55 polynomial-c Exp $ + +EAPI=2 + +inherit eutils versionator gnome2 autotools + +DESCRIPTION="Graphical IRC client" +SRC_URI="http://www.xchat.org/files/source/$(get_version_component_range 1-2)/${P}.tar.bz2 + mirror://sourceforge/${PN}/${P}.tar.bz2 + xchatdccserver? ( mirror://gentoo/${PN}-dccserver-0.6.patch.bz2 )" +HOMEPAGE="http://www.xchat.org/" + +LICENSE="GPL-2" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="dbus ipv6 libnotify mmx nls ntlm perl python spell ssl tcl xchatnogtk xchatdccserver xft" + +RDEPEND=">=dev-libs/glib-2.6.0 + !xchatnogtk? ( >=x11-libs/gtk+-2.10.0 ) + ssl? ( >=dev-libs/openssl-0.9.6d ) + perl? ( >=dev-lang/perl-5.8.0 ) + python? ( >=dev-lang/python-2.2 ) + tcl? ( dev-lang/tcl ) + dbus? ( >=dev-libs/dbus-glib-0.71 ) + spell? ( app-text/gtkspell ) + libnotify? ( x11-libs/libnotify ) + ntlm? ( net-libs/libntlm ) + ! + if [[ ${ARCH} = sparc ]] ; then + replace-flags "-O[3-9]" "-O2" + fi +} + +src_prepare() { + use xchatdccserver && epatch "${DISTDIR}"/xchat-dccserver-0.6.patch.bz2 + + # use libdir/xchat/plugins as the plugin directory + if [ $(get_libdir) != "lib" ] ; then + sed -i -e 's:${prefix}/lib/xchat:${libdir}/xchat:' \ + "${S}"/configure.in || die + fi + + epatch "${FILESDIR}"/xchat-2.8.6-nickcompletion_without_space.diff + + # xchat sourcecode ships with po/Makefile.in.in from gettext-0.17 + # which fails with >=gettext-0.18 + cp /usr/share/gettext/po/Makefile.in.in "${S}"/po/ || die + + eautoreconf +} + +src_configure() { + # xchat's configure script uses sys.path to find library path + # instead of python-config (#25943) + unset PYTHONPATH + + 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 !xchatnogtk gtkfe) \ + $(use_enable xft) +} + +src_install() { + USE_DESTDIR=1 gnome2_src_install || die "make install failed" + + # install plugin development header + insinto /usr/include/xchat + doins src/common/xchat-plugin.h || die "doins failed" + + dodoc ChangeLog README* || die "dodoc failed" +} + +pkg_postinst() { + elog + elog "XChat binary has been renamed from xchat-2 to xchat." + elog + + if has_version net-irc/xchat-systray + then + elog "XChat now includes it's own systray icon, you may want to remove net-irc/xchat-systray." + elog + fi +} -- 2.7.4