# 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 $ 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 mysql gnome" 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 >=sys-apps/dbus-0.50 fam? ( virtual/fam ) mysql? ( >=dev-db/mysql-5.0.19 ) !mysql? ( >=dev-db/sqlite-3.2 >=dev-db/qdbm-1.8.0 ) >=media-libs/libvorbis-1.1 >=media-libs/libpng-1.2 >=media-libs/libexif-0.6 >=gnome-extra/libgsf-1.13 >=app-text/poppler-0.5 >=x11-libs/cairo-1.0 >=x11-libs/gtk+-2.8.0 gnome? ( >=gnome-base/gnome-desktop-2.14 >=gnome-base/gnome-vfs-2.14 >=gnome-base/gconf-2.14 )" # >=media-libs/libtheora-1.0_alpha7 DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.9" ECVS_SERVER="anoncvs.gnome.org:/cvs/gnome" ECVS_PASS="anonymous" ECVS_MODULE="tracker" ECVS_CVS_COMMAND="cvs -f -z3" ECVS_BRANCH="HEAD" pkg_setup() { if use mysql; then ebegin "Checking for mysql built with the embedded use flag" built_with_use mysql embedded eend $? if [[ $? -ne 0 ]] ; then ewarn "You must build mysql with the embedded USE-flag" ewarn "in order to compile and use tracker" die fi 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 eautoreconf || die } src_compile (){ use fam && local myconf="--disable-inotify" econf ${myconf} emake } src_install() { einstall || die }