1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 inherit autotools eutils gnome2 multilib
10 DESCRIPTION="Companion software for mugshot.org"
11 HOMEPAGE="http://www.mugshot.org/"
12 SRC_URI="http://download.mugshot.org/client/sources/linux/${P}.tar.gz"
16 KEYWORDS="~amd64 ~x86"
19 RDEPEND=">=dev-libs/glib-2.6
21 >=dev-libs/dbus-glib-0.71
22 >=dev-libs/libpcre-6.3
23 >=net-libs/loudmouth-1
25 >=net-misc/curl-7.13.1
26 firefox? ( >=www-client/mozilla-firefox-1.5 <www-client/mozilla-firefox-2.0.1 )
27 x11-libs/libXScrnSaver"
34 # configure looks in the wrong place for xpidl
35 sed -e 's:bin/xpidl:xpidl:' -i configure.ac
36 epatch "${FILESDIR}/${PN}-1.1.22-as-needed.patch"
37 epatch "${FILESDIR}/${PN}-1.1.32-libxpcom.patch"
38 epatch "${FILESDIR}/${PN}-1.1.32-use-firefox.patch"
40 use firefox && sed -e "s:GET_LIBDIR:$(get_libdir):" \
41 "${FILESDIR}/${PN}-1.1.26-firefox-update.sh" > "${S}/firefox-update.sh"
45 econf $(use_enable firefox) \
46 --with-gecko-sdk=/usr/$(get_libdir)/mozilla-firefox/ || die "./configure failed"
47 emake || die "emake failed"
53 # install firefox extension
55 einfo "Installing firefox extension. "
56 einfo "Please restart firefox in order to use the mugshot extension."
57 "${S}/firefox-update.sh" install
62 # remove firefox extension
63 if [ -x /usr/share/mugshot/firefox-update.sh ] ; then
64 einfo "Removed the mugshot firefox extension."
65 /usr/share/mugshot/firefox-update.sh remove