# $Id$ PNAME="strigi" PVER="0.7.8" PBUILD="r3" PCAT="app-misc" DESCRIPTION="Fast crawling desktop search engine with Qt4 GUI." HOMEPAGE="http://strigi.sourceforge.net/" DEPEND=">= dev-libs/libxml2-2.9 >= media-gfx/exiv2-0.24 >= media-video/ffmpeg-2.4 >= sys-apps/dbus-1.8 >= virtual/java >= app-admin/gamin-0.1.10 >= app-arch/bzip2-1.0.6 >= x11-libs/qt4-core-4.8 >= x11-libs/qt4-dbus-4.8 >= x11-libs/qt4-gui-4.8" SDEPEND=">= virtual/java-jdk >= dev-libs/boost-1.56" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude qt4 cmake mtools msetfeature "!check" # no check target # check also http://www.vandenoever.info/software/strigi/ SRC_URI=( http://rdieter.fedorapeople.org/strigi/${SRCFILE} http://www.vandenoever.info/software/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/strigi-daemon.desktop mirror://${PNAME}/${PNAME}-${PVER}-gcc48.patch ) UP2DATE="updatecmd http://www.vandenoever.info/software/${PNAME}/ | grep ${PNAME}- | firsttarball" src_prepare() { munpack ${SRCFILE} || die # fix build with gcc-4.8 cd ${SRCDIR}/libstreams mpatch ${PNAME}-${PVER}-gcc48.patch || die } src_compile() { cd ${SRCDIR} # warn about /proc in chroot environments [[ ! -d /proc/sys ]] && die "Please make sure /proc is mounted in chroot-environments." # build outside of the source dir install -d ${BUILDDIR}/build || die cd ${BUILDDIR}/build # only using libxml2 not expat # the clucene module is depreacted and there is no active development, # see: http://trueg.wordpress.com/2011/09/22/about-strigi-soprano-virtuoso-clucene-and-libstreamanalyzer/ cmake_configure \ -DFORCE_DEPS=ON \ $(cmake_disable CLUCENE) \ $(cmake_disable CLUCENE_NG) \ $(cmake_enable DBUS) \ $(cmake_enable INOTIFY) \ $(cmake_enable FAM) \ $(cmake_enable QT4) \ $(cmake_enable EXIV2) \ $(cmake_enable FFMPEG) \ $(cmake_disable REGENERATEXSD) \ $(cmake_disable LOG4CXX) \ || die # fix problems with as-needed sed -i '/^CLUCENE1_LDFLAGS:/s/\(.*\)/&;-lclucene-shared/' CMakeCache.txt || die mmake || die } src_install() { cmake_src_install || die minstalldir /etc/xdg/autostart || die minstallfile -s strigi-daemon.desktop /etc/xdg/autostart/ || die }