# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /root/portage/app-misc/tracker-9999.ebuild,v 1 gero Exp $ WANT_AUTOMAKE=1.7 WANT_AUTOCONF=2.5 inherit eutils cvs autotools linux-info DESCRIPTION="The Tracker Search Tool" HOMEPAGE="http://www.freedesktop.org/wiki/Software_2fTracker" KEYWORDS="~x86" SLOT="0" LICENSE="GPL-2" IUSE="fam gnome xine" S=${WORKDIR}/${PN} RDEPEND=">=dev-libs/glib-2.9.1 >=sys-libs/zlib-1.2 >=x11-libs/pango-1.0.0 >=dev-libs/gmime-2.1.0 || ( >=dev-libs/dbus-glib-0.71 ( =sys-apps/dbus-0.50 ) ) fam? ( virtual/fam ) >=dev-db/sqlite-3.2i !xine? ( >=media-libs/gstreamer-0.10 ) xine? ( >=media-libs/xine-lib-1.1.2 ) >=app-text/poppler-0.5 >=x11-libs/cairo-1.0 >=x11-libs/gtk+-2.8.0 >=media-libs/libpng-1.2 >=media-libs/libexif-0.6 >=gnome-extra/libgsf-1.13 gnome? ( >=gnome-base/gnome-desktop-2.14 >=gnome-base/libgnome-2.14 >=gnome-base/libgnomeui-2.14 >=gnome-base/gnome-vfs-2.14 >=gnome-base/libglade-2.5.0 )" # >=media-libs/libtheora-1.0_alpha7 DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.9 >=dev-util/intltool-0.34 >=gnome-base/gnome-common-2.12.0" ECVS_SERVER="anoncvs.gnome.org:/cvs/gnome" ECVS_PASS="anonymous" ECVS_MODULE="tracker" ECVS_CVS_COMMAND="cvs -f -z3" ECVS_BRANCH="HEAD" pkg_setup() { ebegin "Checking for sqlite built without the nothreadsafe use flag" built_with_use sqlite nothreadsafe eend $? if [[ $? -eq 0 ]] ; then ewarn "You must build sqlite without the nothreadsafe USE-flag" ewarn "in order to compile and use tracker" die fi if ! use fam; then linux-info_pkg_setup einfo "Not using fam/gamin checking the kernel" ebegin "Checking for linux-kernel >=2.6.13" kernel_is ge 2 6 13 eend $? if [[ $? -ne 0 ]] ; then ewarn "You need a kernel >=2.6.13 for inotify support" die fi ebegin "Checking if inotify support was compiled in the kernel" linux_chkconfig_present INOTIFY eend $? if [[ $? -ne 0 ]] ; then ewarn "You must select CONFIG_INOTIFY in your kernel" die fi fi } src_unpack() { cvs_src_unpack || die "cvs failed" cd ${S} || die "cd failed" if ! use fam && ! has_version ">=sys-kernel/linux-headers-2.6.16"; then epatch ${FILESDIR}/inotify.patch fi epatch ${FILESDIR}/thunar.patch NOCONFIGURE=1 ${S}/autogen.sh || die } src_compile (){ local myconf="--enable-external-sqlite" use fam && myconf="${myconf} --disable-inotify" if use xine; then myconf="${myconf} --enable-libxine" else myconf="${myconf} --enable-gstreamer" fi econf ${myconf} emake } src_install() { einstall || die }