# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Nonofficial ebuild by Ycarus. For new version look here : http://gentoo.zugaina.org/ # This ebuild is a small modification of the official pymsn-t ebuild inherit eutils python DESCRIPTION="ICQ transport for Jabber" HOMEPAGE="http://http://pyicq-t.blathersource.org/" SRC_URI="http://www.blathersource.org/download.php/pyicq-t/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" RESTRICT="nomirror" DEPEND=">=net-im/jabber-base-0.0 >=dev-lang/python-2.3" RDEPEND="virtual/jabber-server >=dev-python/twisted-2 dev-python/twisted-words dev-python/twisted-xish dev-python/twisted-web dev-python/imaging net-zope/zopeinterface web? ( dev-python/nevow ) xdb? ( dev-python/mysql-python )" IUSE="web xdb" src_install() { python_version #Dont like this, have to find way to do recursive copy with doins dodir /usr/lib/python${PYVER}/site-packages/${PN}/src /usr/lib/python${PYVER}/site-packages/${PN}/data cp -r src/* ${D}/usr/lib/python${PYVER}/site-packages/${PN}/src cp -r data/* ${D}/usr/lib/python${PYVER}/site-packages/${PN}/data exeinto /usr/lib/python${PYVER}/site-packages/${PN} doexe PyICQt.py sed -i \ -e "s/.*.*/\/var\/spool\/jabber\/<\/spooldir>/"\ -e "s/.*.*/\/var\/run\/jabber\/pyicq-t.pid<\/pid>/"\ -e "s/.*.*/\/var\/log\/jabber\/${PN}-debug.log<\/debugLog>/"\ config_example.xml insinto /etc/jabber newins config_example.xml pyicq-t.xml exeinto /etc/init.d newexe ${FILESDIR}/pyicq-t-0.7.initd pyicq-t sed -i -e "s/PATH/python${PYVER}/" ${D}/etc/init.d/pyicq-t } pkg_postinst() { einfo "A sample configuration file has been installed in /etc/jabber/pyicq-t.xml." einfo "Please edit it, and the configuration of you Jabber server to match." einfo "You also need to create a directory icq.yourdomain.com in" einfo "/var/spool/jabber/ and chown it to jabber:jabber." }