# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnome2 eutils mono nsplugins DESCRIPTION="Beagle is a search tool that ransacks your personal information space to find whatever you're looking for." HOMEPAGE="http://www.gnome.org/projects/beagle/" LICENSE="MIT Apache-1.1" SLOT="0" KEYWORDS="~x86" IUSE="eds mozilla" DEPEND=">=dev-dotnet/mono-1.0 >=dev-dotnet/gtk-sharp-1.0 >=dev-dotnet/gnome-sharp-1.0 >=dev-dotnet/gconf-sharp-1.0 =dev-dotnet/gecko-sharp-0.6 eds? ( >=dev-dotnet/evolution-sharp-0.6 ) >=sys-apps/dbus-0.23 >=dev-libs/gmime-2.1.10 =dev-db/sqlite-2*" DOCS="AUTHORS ChangeLog COPYING INSTALL NEWS README" src_unpack() { unpack ${A} cd ${S} # we don't want autodetect epatch ${FILESDIR}/${P}-configure.in.patch autoconf } src_compile() { local myconf; use eds && myconf="${myconf} --enable-evolution" econf ${myconf} || die "Configuration failed" emake || die "Make failed" } src_install() { einstall || die "Install failed" if use mozilla; then dodir /usr/share/beagle insinto /usr/share/beagle doins mozilla-extension/beagle.xpi fi } pkg_setup() { if built_with_use sys-apps/dbus mono then einfo "Mono support enabled in sys-apps/dbus, I will continue..." else eerror "Please rebuild sys-apps/dbus with mono support enabled!" eerror "Try USE=\"mono\" emerge sys-apps/dbus" eerror "or add \"mono\" to your USE string in /etc/make.conf and" eerror "emerge sys-apps/dbus." monoprob=1 fi 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." monoprob=1 fi if [ $monoprobi ] ; then die "Mono must be enabled!" fi } pkg_postinst () { if [ ! -e /dev/inotify ] ; then eerror "Your kernel does not seem to have inotify support enabled." eerror "I suggest you install the newest sys-kernel/gentoo-dev-sources" eerror "(or any other kernel with the Inotify patch)." eerror "" eerror "Enable \"Inotify file change notification support (INOTIFY)\"" eerror "under Device Drivers / Character Devices." eerror "" eerror "Also ensure extended attributes are enabled for your chosen" eerror "filesystem(s). e.g. EXT2_FS_XATTR, EXT3_FS_XATTR," eerror "REISERFS_FS_XATTR and so on." fi einfo "Extended attributes are used by Beagle to keep track of which files" einfo "have been indexed and which need to be re-indexed. You will need to" einfo "set extended attributes on the file systems that Beagle is indexing." einfo "(Has to be supported by the kernel e.g. EXT2_FS_XATTR," einfo "EXT3_FS_XATTR, REISERFS_FS_XATTR)" einfo "" einfo "To set extended attributes, you should add the user_xattr property" einfo "to the relevant file systems in your /etc/fstab file. For example:" einfo "/dev/hda3 /home ext3 defaults,user_xattr 1 2" einfo "" einfo "You can then remount the affected partitions as follows:" einfo "mount -o remount /home" if use mozilla; then einfo "" einfo "If you have mozilla/firefox installed you can add the beagle" einfo "extension to your browser via:" einfo "firefox -install-global-extension /usr/share/beagle/beagle.xpi" fi einfo "" einfo "" einfo "For more info take a look at http://beaglewiki.org/index.php" }