# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils fdo-mime DESCRIPTION="Alvaro's Messenger client for MSN" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" HOMEPAGE="http://amsn.sourceforge.net" RESTRICT="test" IUSE="debug xmms" SLOT="0" LICENSE="GPL-2" KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd" DEPEND=">=dev-lang/tcl-8.4 >=dev-lang/tk-8.4" RDEPEND="${DEPEND} dev-tcltk/tls xmms? ( media-plugins/xmms-infopipe )" src_compile() { econf \ --disable-libng \ $(use_enable debug) || dir "econf failed." make || die "make failed." } src_install() { dodir /usr/share/amsn dosym /usr/share/amsn/amsn /usr/bin/amsn dosym /usr/share/amsn/amsn-remote /usr/bin/amsn-remote dosym /usr/share/amsn/amsn-remote-CLI /usr/bin/amsn-remote-CLI sed -i -e 's:Icon=msn.png:Icon=amsn:' amsn.desktop domenu amsn.desktop dodoc AGREEMENT TODO README FAQ CREDITS docs/* for res in 32 48 64 96 128; do insinto /usr/share/icons/hicolor/${res}x${res}/apps newins ${S}/icons/${res}x${res}/aMSN_${res}.png amsn.png done rm -rf GNUGPL AGREEMENT TODO README FAQ CREDITS HELP amsn.desktop icons \ utils/windows utils/macosx docs lang/LANG-HOWTO debian cp -pPR ${S}/* ${D}/usr/share/amsn fperms -R 555 ${D}/usr/share/amsn } pkg_postinst() { fdo-mime_desktop_database_update fdo-mime_mime_database_update }