# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils qt3 DESCRIPTION="A personal full text search package" HOMEPAGE="http://www.lesbonscomptes.com/recoll/" SRC_URI="http://www.lesbonscomptes.com/recoll/${P}.tar.gz" RESTRICT="nomirror" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="djvu dvi gs id3 pdf msdoc msxsl pics xattr" DEPEND=">=x11-libs/qt-3.3 >=dev-libs/xapian-0.9.6 || ( sys-libs/glibc dev-libs/libiconv )" # TODO: fix file collision with dev-python/pyexcelerator : /usr/bin/xls2csv RDEPEND=" rtf? ( app-text/unrtf ) djvu? ( >=app-text/djvu-3.5.15 ) dvi? ( virtual/tetex ) gs? ( app-text/pstotext ) id3? ( media-libs/id3lib ) pdf? ( app-text/xpdf ) msdoc? ( app-text/antiword ) msxls? ( app-text/catdoc !dev-python/pyexcelerator ) msppt? ( app-text/catdoc !dev-python/pyexcelerator ) pics? ( media-libs/exiftool ) app-arch/unzip" pkg_setup() { if use pdf ; then ewarn ewarn "You are building with pdf support enabled. If you don't already" ewarn "have xpdf on your system and are concerned that Recoll is" ewarn "pulling in not only xpdf, but also unwanted xpdf-dependencies" ewarn "like openmotif, then you should consider building xpdf first," ewarn "with graphics support disabled." ewarn fi if ! use rtf && ! use djvu && ! use dvi && ! use gs && ! use id3 && ! use pdf && ! use msdoc && ! use msppt && ! use pics; then ewarn ewarn "You did not select any of the external file types needed" ewarn "for Recoll." ewarn fi } src_compile() { local myconf myconf="--enable-xattr" econf ${myconf} || die "Configure failed." emake || die "Make failed." } src_install() { # einstall needed because "make ... install" causes sandbox violation einstall || die "Installation failed." dodoc ChangeLog README VERSION doman doc/man/*.1 doc/man/*.5 mv "${D}/usr/share/${PN}/doc" "${D}/usr/share/doc/${PF}/html" ln -s "${D}/usr/share/doc/${PF}/html" "${D}/usr/share/${PN}/doc" } pkg_postinst() { echo echo einfo "If you have installed Recoll for the first time, you have" einfo "two ways of configuring it. In both cases, you begin by" einfo "launching Recoll as user. A dialog box will appear, giving" einfo "the choice of 'OK' or 'Cancel'. Select'OK' if you want Recoll" einfo "to use the default configuration files -- recoll.conf," einfo "mimeconf & mimemap -- located at /usr/share/recoll/examples." einfo "Select cancel if you want to customize your configuration" einfo "before indexing begins. You can do so by editing three files" einfo "of the same name located in ~/.recoll/. You can also use this" einfo "method if you chose the default configuration and later want to" einfo "customize it." echo echo einfo "If you are upgrading from a version of Recoll prior to" einfo "1.4.2, you may want to modify the configuration files in your" einfo "home directory. Recoll now takes its configuration settings" einfo "from the systemwide files. You needn't use the local versions" einfo "unless you want to override the global settings." echo echo if use xattr; then einfo "USE-flag \"xattr\" enable support for fetching field values from extended file attributes" einfo "You will ll also need to set up a map from the attributes names to the Recoll field names " einfo "(see comment at the end of the fields configuration file." fi }