# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-im/licq-gtk/licq-gtk-1.2.7.ebuild,v 1.1 2005/01/23 18:56:00 frank Exp $ inherit eutils DESCRIPTION="ICQ Client with v8 support and GTK-Plugin" HOMEPAGE="http://www.licq.org/" SRC_URI="http://download.sourceforge.net/licq/licq-1.2.7.tar.bz2 gtk? ( http://home.arcor.de/f-schmitt/gentoo.de/jons-gtk-gui.tar.bz2 )" LICENSE="GPL-2" SLOT="2" KEYWORDS="x86" IUSE="ssl socks5 ncurses gtk" DEPEND="ssl? ( >=dev-libs/openssl-0.9.7 ) ncurses? ( >=sys-libs/ncurses-5.4 ) gtk? ( >=x11-libs/gtk+-1.2.10 )" src_unpack() { unpack ${P}.tar.bz2 cd ${S}/plugins unpack jons-gtk-gui.tar.bz2 cd ${S} epatch ${FILESDIR}/1.2.7-debugflag.patch epatch ${FILESDIR}/1.2.7-nptl.patch epatch ${FILESDIR}/1.2.7-modules.diff } src_compile() { local first_conf use ssl || myconf="${myconf} --disable-openssl" use socks5 && myconf="${myconf} --enable-socks5" econf ${myconf} || die emake || die # Create the various plug-ins # First, the gtk plug-in if [ "`use gtk`" ] then cd ${S}/plugins/jons-gtk-gui einfo "Compiling GTK plug-in" econf || die emake || die fi # Now the console plug-in if [ "`use ncurses `" ] then cd ${S}/plugins/console einfo "Compiling the Console plug-in" econf || die emake || die fi # The Auto-Responder plug-in cd ${S}/plugins/auto-reply einfo "Compiling the Auto-Reply plug-in" econf || die emake || die # The Remote Management Service cd ${S}/plugins/rms einfo "Compiling Remote Management Services plug-in" econf || die emake || die } src_install() { make DESTDIR=${D} install || die dodoc ChangeLog INSTALL README* doc/* #install the gtk-plugin if [ "`use gtk`" ] then cd ${S}/plugins/jons-gtk-gui make DESTDIR=${D} install || die docinto plugins/jons-gtk-gui docdoc README fi if [ "`use ncurses`" ] then cd ${S}/plugins/console make DESTDIR=${D} install || die docinto plugins/console dodoc README fi cd ${S}/plugins/auto-reply make DESTDIR=${D} install || die docinto plugins/auto-reply dodoc README licq_autoreply.conf cd ${S}/plugins/rms make DESTDIR=${D} install || die docinto plugins/rms dodoc README licq_rms.conf # fixes bug #22136 rm -fR ${D}/var }