# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v3 # $Header: $ inherit eutils flag-o-matic DESCRIPTION="Last.fm Plugin for the Pidgin Instant Messenger" SRC_URI="http://pidgin-lastfm.naturalnet.de/download/${PN}_${PV}_all.tar.bz2" SRC_URI="mirror://sourceforge/pidgin-lastfm/${PN}_${PV}_all.tar.bz2" HOMEPAGE="http://pidgin-lastfm.naturalnet.de" KEYWORDS="~x86" SLOT="0" LICENSE="GPL-3" IUSE="" RDEPEND="net-im/pidgin" pkg_setup { if ! built_with_use net-im/pidgin perl; then eerror "In order to use this plugin with Pidgin, you need to buld net-im/pidgin" eerror "with the perl USE flag enabled." die "Missing perl USE flag on net-im/pidgin" fi } src_install() { # The plugin itself mkdir -p ${D}/usr/lib/pidgin cp ${WORKDIR}/pidgin-lastfm/src/lastfm.pl ${D}/usr/lib/pidgin # Any interesting doc files mkdir -p ${D}/usr/share/doc/pidgin-lastfm cp ${WORKDIR}/pidgin-lastfm/docs/* ${D}/usr/share/doc/pidgin-lastfm }