# 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="mirror://sourceforge/pidgin-lastfm/${PN}_${PV}_all.tar.gz" HOMEPAGE="http://pidgin-lastfm.naturalnet.de" KEYWORDS="~x86 ~amd64" 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 build 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 LIBDIR=/usr/lib mkdir -p ${D}/${LIBDIR}/pidgin cp ${WORKDIR}/pidgin-lastfm-${PV}/src/lastfm.pl ${D}/${LIBDIR}/pidgin # Any interesting doc files mkdir -p ${D}/usr/share/doc/pidgin-lastfm cp ${WORKDIR}/pidgin-lastfm-${PV}/docs/* ${D}/usr/share/doc/pidgin-lastfm } pkg_postinst() { ewarn "Regarding Pidgin and Perl versions:" ewarn "" ewarn "There is a strict rule you have to follow when it comes to different Pidgin and Perl versions." ewarn "" ewarn " net-im/pidgin 2.4.x => dev-lang/perl 5.8" ewarn " net-im/pidgin 2.5.x => dev-lang/perl 5.10" ewarn "" ewarn "Unfortunately, Perl 5.10 is not in portage yet. You can get it from the layman overlay perl-experimental." ewarn "See http://www.gentoo.org/proj/en/overlays/userguide.xml for further information!" }