# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-plugins/pidgin-facebookchat/pidgin-facebookchat-1.62.ebuild,v 1.1 2009/11/04 07:17:38 voyageur Exp $ inherit toolchain-funcs multilib DESCRIPTION="Facebook chat plugin for libpurple" HOMEPAGE="http://code.google.com/p/pidgin-facebookchat/" SRC_URI="http://pidgin-facebookchat.googlecode.com/files/${PN}-source-${PV}.tar.bz2" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" RDEPEND=">=dev-libs/json-glib-0.7.6 >=net-im/pidgin-2.3.0" DEPEND="dev-util/pkgconfig ${RDEPEND}" S=${WORKDIR}/${PN} src_compile() { # Grabbed from makefile FACEBOOK_SOURCES="libfacebook.c fb_blist.c fb_connection.c fb_conversation.c fb_friendlist.c fb_info.c fb_json.c fb_managefriends.c fb_messages.c fb_notifications.c fb_search.c fb_util.c" $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} `pkg-config --cflags purple json-glib-1.0` \ -DPURPLE_PLUGINS -DENABLE_NLS -DHAVE_ZLIB -shared -fPIC -DPIC \ ${FACEBOOK_SOURCES} `pkg-config --libs json-glib-1.0` \ -o libfacebook.so || die "compilation failed" } src_install() { exeinto /usr/$(get_libdir)/purple-2 doexe libfacebook.so for size in 16 22 48; do insinto /usr/share/pixmaps/pidgin/protocols/${size} newins facebook${size}.png facebook.png done }