# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # This ebuild come from http://bugs.gentoo.org/show_bug.cgi?id=120214 - The site http://gentoo.zugaina.org/ only host a copy. 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 wv" DEPEND="$(qt_min_version 3.3) >=dev-libs/xapian-0.9.6 || ( sys-libs/glibc dev-libs/libiconv )" dvi? ( app-text/texlive-core ) RDEPEND="app-text/unrtf media-libs/exiftool app-text/catdoc dev-tex/detex djvu? ( >=app-text/djvu-3.5.15 ) gs? ( app-text/pstotext ) id3? ( media-libs/id3lib ) pdf? ( app-text/xpdf ) wv? ( app-text/antiword )" 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 djvu && ! use dvi && ! use gs && ! use id3 && ! use pdf && ! use wv && ! use wv ; then ewarn ewarn "You did not select any of the external file types needed" ewarn "for Recoll." ewarn fi } src_compile() { econf || 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 }