# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit flag-o-matic eutils DESCRIPTION="a libpurple (Pidgin, ...) plugin which treats microblogging (Twitter, ...) as IM protocols." HOMEPAGE="http://code.google.com/p/prpltwtr/" SRC_URI="http://prpltwtr.googlecode.com/files/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gtk" DEPEND="net-im/pidgin" src_compile() { # 1. fix a crash when connecting with net-im/minbif # 2. net-im/minbif can currently not connect to a room including space in it's name ! use gtk && \ sed '6i\IS_PIDGIN=0' global.mak && \ sed -i "s:Home Timeline:Timeline:g" twitter.c # patch the data/Makefile so that ${D} gets respected epatch ${FILESDIR}/${P}-respect-destdir.patch emake -j1 DESTDIR=${D} || die "emake failed" } src_install() { emake -j1 install DESTDIR=${D} || die "install failed" }