# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-im/tkabber/tkabber-0.9.9.ebuild,v 1.3 2006/11/30 18:55:49 gustavoz Exp $ inherit eutils DESCRIPTION="Tkabber is a Free and Open Source client for the Jabber instant messaging system, written in Tcl/Tk." HOMEPAGE="http://tkabber.jabber.ru/" MYPV="0.10.0-beta2" SRC_URI="http://files.jabberstudio.org/tkabber/${PN}-${MYPV}.tar.gz plugins? ( http://files.jabberstudio.org/tkabber/tkabber-plugins-${MYPV}.tar.gz )" IUSE="crypt plugins ssl" DEPEND=">=dev-lang/tcl-8.3.3 >=dev-lang/tk-8.3.3 || ( >=dev-tcltk/tclxml-3.0 dev-tcltk/tclxml-expat ) crypt? ( >=dev-tcltk/tclgpgme-1.0 ) >=dev-tcltk/tcllib-1.3 >=dev-tcltk/bwidget-1.3 ssl? ( >=dev-tcltk/tls-1.4.1 ) >=dev-tcltk/tkXwin-1.0 >=dev-tcltk/tkTheme-1.0" LICENSE="GPL-2" KEYWORDS="~alpha ~amd64 sparc x86" SLOT="0" pkg_setup() { if has_version '>=dev-tcltk/tclxml-3.0' \ && ! built_with_use dev-tcltk/tclxml expat ; then eerror "tclxml is missing expat support." eerror "Please add 'expat' to your USE flags, and re-emerge tclxml." die "tclxml needs expat support" fi } src_compile() { # dont run make, because the Makefile is broken with all=install echo -n } src_install() { dodir /usr/share/tkabber cd ${WORKDIR}/${PN}-${MYPV} || die "cd failed!" cp -R *.tcl contrib doc emoticons examples ifacetk jabberlib-tclxml \ mclistbox msgs pixmaps plugins sounds trans ${D}/usr/share/tkabber if use plugins; then mkdir ${D}/usr/share/tkabber/site-plugins cp -R ${WORKDIR}/tkabber-plugins-${MYPV}/* \ ${D}/usr/share/tkabber/site-plugins newdoc ${WORKDIR}/tkabber-plugins-${MYPV}/README README.plugins fi cat <<-EOF > tkabber #!/bin/sh TKABBER_SITE_PLUGINS=/usr/share/tkabber/site-plugins \ exec wish /usr/share/tkabber/tkabber.tcl -name tkabber EOF chmod +x tkabber dobin tkabber dodoc AUTHORS COPYING ChangeLog INSTALL README dohtml README.html cp -R doc examples contrib ${D}/usr/share/doc/${PF} } pkg_postinst() { einfo "There's no UI option to disable emoticons yet, however" einfo "you can put the following into your ~/.tkabber/config.tcl" einfo einfo "hook::add finload_hook {" einfo " array unset emoteicons::emoteicons" einfo "}" }