# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnome.org gnome2 eutils mono DESCRIPTION="Beagle is a search tool that ransacks your personal information space to find whatever you're looking for." HOMEPAGE="http://www.beagle-project.org/" LICENSE="MIT Apache-1.1" SLOT="0" KEYWORDS="~x86" IUSE="doc eds epiphany gnumeric pdf webservices wv chm debug firefox" RDEPEND=">=dev-lang/mono-1.1.9.1 app-shells/bash app-arch/zip sys-devel/gettext =dev-db/sqlite-2* =gnome-base/gnome-vfs-2* =gnome-base/libgnome-2* >=x11-libs/gtk+-2.6 >=dev-libs/glib-2.6 >=dev-dotnet/gtk-sharp-2.3 >=dev-dotnet/glade-sharp-2.3 >=dev-dotnet/gecko-sharp-0.11 >=dev-dotnet/gnome-sharp-2.3 >=dev-dotnet/gconf-sharp-2.3 >=dev-libs/gmime-2.1.16 >=dev-libs/atk-1.2.4 >=media-libs/libexif-0.6.0 >=dev-libs/libxml2-2.6.19 !firefox? ( >=www-client/mozilla-1.7.3 ) firefox? ( >=www-client/mozilla-firefox-1.0.2-r1 ) epiphany? ( >=www-client/epiphany-1.6.0 ) wv? (>=app-text/wv-1.0.3-r1) chm? (app-doc/chmlib) pdf? ( app-text/xpdf ) gnumeric? ( app-office/gnumeric ) ||( ( x11-libs/libX11 x11-libs/libXScrnSaver x11-libs/libXt x11-libs/libICE x11-libs/libSM ) virtual/x11 )" DEPEND="${RDEPEND} dev-util/pkgconfig ||( ( x11-proto/xproto x11-proto/scrnsaverproto ) virtual/x11 )" USE_DESTDIR="1" pkg_setup() { DOCS="AUTHORS ChangeLog INSTALL NEWS README" G2CONF="${G2CONF} $(use_enable epiphany) \ $(use_enable webservices) \ --enable-libbeagle \ --disable-evolution-sharp" if built_with_use dev-libs/gmime mono then einfo "Mono support enabled in dev-libs/gmime, I will continue..." else eerror "Please rebuild dev-libs/gmime, with mono support enabled!" eerror "Try USE=\"mono\" emerge dev-libs/gmime," eerror "or add \"mono\" to your USE string in /etc/make.conf and" eerror "emerge dev-libs/gmime." die "Mono USE flag must be enabled in dev-libs/gmime" fi } src_unpack() { unpack ${A} cd ${S} # To prevent excessive revdep-rebuild, gentoo's libexif is sticking to # soversion 10 for now. sed -i -e 's/EXIF_SOVERSION=12/EXIF_SOVERSION=10/' configure.in # Don't log so much ! use debug && sed -i -e \ 's/defaultLevel = LogLevel.Debug/defaultLevel = LogLevel.Info/' \ Util/Logger.cs # Fix an indexing crasher epatch ${FILESDIR}/${P}-null-task-source.patch # Fix handling of filenames epatch ${FILESDIR}/${P}-uri-serialization.patch } src_install() { gnome2_src_install dodir /usr/share/beagle insinto /usr/share/beagle doins mozilla-extension/beagle.xpi } pkg_postinst () { gnome2_pkg_postinst einfo "If available, Beagle greatly benefits from using certain operating" einfo "system features such as Extended Attributes and inotify." echo einfo "For more info on how to create the optimal beagle environment, and" einfo "basic usage info, see the Gentoo page of the Beagle website:" einfo " http://www.beagle-project.org/Gentoo_Installation" }