# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/net-im/gaim/gaim-0.77-r2.ebuild,v 1.2 2004/05/09 01:55:04 rizzo Exp $ inherit flag-o-matic eutils gcc use debug && inherit debug IUSE="nls perl spell nas debug cjk gnutls libao" PN="gaim-${PV}-vv-3" DESCRIPTION="GTK Instant Messenger client" HOMEPAGE="http://sourceforge.net/projects/gaim-vv" SRC_URI="mirror://sourceforge/gaim-vv/${PN}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86" DEPEND=">=x11-libs/gtk+-2.0 >=dev-libs/glib-2.0 nas? ( >=media-libs/nas-1.4.1-r1 ) sys-devel/gettext libao? ( media-libs/libao ) >=media-libs/audiofile-0.2.0 perl? ( >=dev-lang/perl-5.8.2-r1 !=app-text/gtkspell-2.0.2 ) dev-libs/nss gnutls? ( net-libs/gnutls ) !net-im/gaim media-libs/libj2k" src_unpack() { unpack ${PN}.tar.gz cd ${WORKDIR}/${PN} } src_compile() { einfo "Replacing -Os CFLAG with -O2" replace-flags -Os -O2 # -msse2 doesn't play nice on gcc 3.2 [ "`gcc-version`" == "3.2" ] && filter-flags -msse2 local myconf use perl || myconf="${myconf} --disable-perl" use spell || myconf="${myconf} --disable-gtkspell" use nls || myconf="${myconf} --disable-nls" use nas && myconf="${myconf} --enable-nas" || myconf="${myconf} --disable-nas" use gnutls && { myconf="${myconf} --with-gnutls-includes=/usr/include/gnutls" myconf="${myconf} --with-gnutls-libs=/usr/lib" } || myconf="${myconf} --enable-gnutls=no" use libao || myconf="${myconf} --disable-audio" myconf="${myconf} --with-nspr-includes=/usr/include/nspr" myconf="${myconf} --with-nss-includes=/usr/include/nss" myconf="${myconf} --with-nspr-libs=/usr/lib" myconf="${myconf} --with-nss-libs=/usr/lib" myconf="${myconf} --with-libj2k=/usr/lib" myconf="${myconf} --enable-msn-vv" cd ${WORKDIR}/${PN} econf ${myconf} || die "Configuration failed" emake || MAKEOPTS="${MAKEOPTS} -j1" emake || die "Make failed" } src_install() { cd ${WORKDIR}/${PN} make install DESTDIR=${D} || die "Install failed" dodoc ABOUT-NLS AUTHORS HACKING INSTALL NEWS PROGRAMMING_NOTES README ChangeLog VERSION # Copy header files for gaim plugin use dodir /usr/include/gaim/src cp config.h ${D}/usr/include/gaim/ cd ${S}/src tar cf - *.h | (cd ${D}/usr/include/gaim/src ; tar xvf -) assert "Failed to install header files to /usr/include/gaim" }