# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public Licence v2 # $Header: inherit flag-o-matic eutils DESCRIPTION="Fork of X-Chat to be more HIG compliant" SRC_URI="http://navi.cx/releases/${PF}.tar.bz2" HOMEPAGE="http://xchat-gnome.navi.cx/" LICENCE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="perl python tlctk ssl mmx ipv6 nls xchattext xchatnogtk" RDEPEND="nls? ( sys-devel/gettext ) >=dev-util/pkgconfig-0.7 >=sys-apps/sed-4" DEPEND="${RDEPEND} perl? ( >=dev-lang/perl-5.6.1 ) python? ( dev-lang/python ) tcltk? ( dev-lang/tcl ) ssl? ( >=dev-libs/openssl-0.9.6d ) !xchatnogtk? ( >=x11-libs/gtk+-2.0.3 ) !net-irc/xchat" src_compile() { # xchat-gnome's configure script uses sys.path to find library path # instead of python-config (#25943) unset PYTHONPATH econf \ $(use_enable ssl openssl) \ $(use_enable perl) \ $(use_enable python) \ $(use_enable tcltk tcl) \ $(use_enable mmx) \ $(use_enable ipv6) \ $(use_enable nls) \ $(use_enable xchattext textfe) \ $(use_enable !xchatnogtk gtkfe) \ || die "Configure failed" emake || die "Compile failed" } src_install() { make install DESTDIR=${D} || die "Install failed" # plugin development header insinto /usr/include/xchat doins src/common/xchat-plugin.h dodoc AUTHORS COPYING ChangeLog README* } pkg_postinst() { einfo einfo "The normal xchat is available as xchat. The HIG improved" einfo "version is available as xchat-gnome" einfo }