# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools flag-o-matic eutils gnome2 DESCRIPTION="Program to facilitate social networking" HOMEPAGE="http://www.mugshot.org" SRC_URI="http://download.mugshot.org/client/sources/linux/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" DEPEND="${RDEPEND}" RDEPEND=">=dev-libs/glib-2.6 >=x11-libs/gtk+-2.6 >=sys-apps/dbus-0.61 >=net-libs/loudmouth-1 >=gnome-base/gconf-2 >=net-misc/curl-7.13.1 >=www-client/mozilla-firefox-1.5 x11-libs/libXScrnSaver" src_unpack() { unpack ${A} cd ${S} # configure looks in the wrong place for xpidl sed -e 's:bin/xpidl:xpidl:' -i configure.ac epatch ${FILESDIR}/${P}-as-needed.patch eautoreconf cp ${FILESDIR}/${P}-firefox-update.sh ${S}/firefox-update.sh } src_compile() { econf --with-gecko-sdk=/usr/lib/mozilla-firefox/ || die "./configure failed" emake || die "emake failed" } src_install () { make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog README } pkg_postinst () { gnome2_pkg_postinst # install firefox extension einfo "Installing firefox extension. " einfo "Please restart firefox in order to use the mugshot extension." ${S}/firefox-update.sh install } pkg_prerm () { # remove firefox extension einfo "Removed the mugshot firefox extension." /usr/share/mugshot/firefox-update.sh remove }