# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-im/gyachi/gyachi-9999.ebuild $ inherit autotools eutils cvs DESCRIPTION="GTK+-based Yahoo! chat client which is a fork off of Gyach Enhanced" HOMEPAGE="http://gyachi.sourceforge.net/" KEYWORDS="x86" IUSE="alsa debug gpgme gtkspell libnotify mcrypt pulseaudio" LICENSE="GPL-2" SLOT="0" ECVS_SERVER="gyachi.cvs.sourceforge.net:/cvsroot/gyachi" ECVS_MODULE="gyachi" CFLAGS="${CFLAGS} -D_FILE_OFFSET_BITS=64" CXXFLAGS="${CXXFLAGS} -D_FILE_OFFSET_BITS=64" if use debug; then CFLAGS="${CFLAGS} -g" CXXFLAGS="${CXXFLAGS} -g" fi DEPEND=" virtual/libc media-libs/jasper =gnome-extra/gtkhtml-2* =x11-libs/gtk+-2* alsa? ( media-libs/alsa-lib ) gpgme? ( app-crypt/gpgme ) gtkspell? ( app-text/gtkspell ) libnotify? ( x11-libs/libnotify ) mcrypt? ( dev-libs/libmcrypt ) pulseaudio? ( media-sound/pulseaudio ) " S="${WORKDIR}/${PN}" src_unpack() { cvs_src_unpack cd "${S}" epatch "${FILESDIR}/${PN}-gpgme-gentoo.patch" epatch "${FILESDIR}/${PN}-pthread_yield-obsolete.patch" # only needed if use libnotify... epatch "${FILESDIR}/${PN}-libnotify-build-broken.patch" } src_compile() { cd ${S} myconf="--disable-plugin-xmms --enable-plugin_photo_album --enable-wine" # appears to be broken: --enable-plugin_esd for plugin in alsa gpgme libnotify mcrypt pulseaudio; do if use $plugin; then myconf="$myconf --enable-plugin_${plugin}" else myconf="$myconf --disable-plugin_${plugin}" fi done ./autogen.sh econf $myconf \ $(use_enable gtkspell) \ || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die "install failed" }