# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $id$ S="${WORKDIR}/msn" DESCRIPTION="Alvaro's Messenger client for MSN" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" HOMEPAGE="http://amsn.sourceforge.net" IUSE="gnome kde" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~sparc" DEPEND=">=dev-lang/tcl-8.3.3 >=dev-lang/tk-8.3.3 gnome? ( media-libs/imlib ) kde? ( media-libs/imlib )" src_compile() { if [ -n "`use gnome`" -o -n "`use kde`" ] then einfo "Compiling the freedesktop notification plugin" cd ${S}/plugins/traydock && econf || die make cd ${S} fi } src_install() { einfo "Installing amsn distrib" mkdir -p ${D}/usr/share/amsn/ cp -a ${S}/* ${D}/usr/share/amsn/ if [ -n "`use gnome`" ] then einfo "Installing GNOME Icons in /usr/share/pixmaps" mkdir -p ${D}/usr/share/pixmaps cp -a ${S}/icons/32x32/* ${D}/usr/share/pixmaps/ fi if [ -n "`use kde`" ] then einfo "Installing KDE Icons in default theme" mkdir -p ${KDEDIR}/share/icons/default.kde cp -a ${S}/icons/* ${KDEDIR}/share/icons/default.kde fi if [ -n "`use gnome`" -o -n "`use kde`" ] then einfo "Installing the freedesktop notification plugin" mkdir -p ${D}/usr/lib/amsn mv ${D}/usr/share/amsn/plugins ${D}/usr/lib/amsn ln -s /usr/lib/amsn/plugins ${D}/usr/share/amsn/plugins fi mkdir -p ${D}/usr/bin/ rm -f ${D}/usr/bin/amsn ln -s /usr/share/amsn/amsn ${D}/usr/bin/amsn dodoc LEEME TODO README GNUGPL }