1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
8 inherit eutils linux-info python-single-r1 qmake-utils
10 DESCRIPTION="A personal full text search package"
11 HOMEPAGE="https://www.lesbonscomptes.com/recoll/"
12 SRC_URI="https://www.lesbonscomptes.com/recoll/${P}.tar.gz"
18 IUSE="camelcase chm doc +inotify qt5 session +spell webengine"
22 ${PYTHON_REQUIRED_USE}
36 dev-qt/qtprintsupport:5
37 webengine? ( dev-qt/qtwebengine:5[widgets] )
46 spell? ( app-text/aspell )
51 qt5? ( dev-qt/linguist-tools:5 )
60 if has_version "<app-misc/recoll-1.20"; then
61 elog "Installing ${PV} over an 1.19 index is possible,"
62 elog "but there have been small changes in the way"
63 elog "compound words are indexed. So it is best to reset"
64 elog "the index. The best method to reset the index is to"
65 elog "quit all recoll programs and delete the index directory"
66 elog "rm -rf ~/.recoll/xapiandb, then start recoll or recollindex."
72 local CONFIG_CHECK="~INOTIFY_USER"
75 python-single-r1_pkg_setup
80 python_fix_shebang filters
84 use qt5 && export QMAKE="$(qt5_get_bindir)/qmake"
87 $(use_enable camelcase)
88 $(use_enable chm python-chm)
89 $(use_enable session x11mon)
90 $(use_enable qt5 qtgui)
91 $(use_enable webengine)
93 $(use_with spell aspell)
99 econf "${myeconfargs[@]}"
103 emake STRIP="$(type -P true)" DESTDIR="${D}" install
105 # html docs should be placed in /usr/share/doc/${PN}/html
106 use doc && dodoc -r "${ED}"/usr/share/recoll/doc/.
107 rm -r "${ED}/usr/share/recoll/doc" || die
108 find "${D}" -name '*.la' -delete || die
112 elog "In order to extract the full functionality of "
113 elog "recoll, the following packages should be installed "
114 elog "to get the corresponding document support."
116 optfeature "XML based documents support" "dev-libs/libxslt[python] dev-libs/libxml2[python]"
117 optfeature "PDF files support" app-text/poppler
118 optfeature "PDF files with OCR support" app-text/tesseract
119 optfeature "MS Word files support" app-text/antiword
120 optfeature "Wordperfect files support" "app-text/libwpd[tools]"
121 optfeature "Lyx files support" app-office/lyx
122 optfeature "GNU Info files support" sys-apps/texinfo
123 optfeature "RAR archives support" dev-python/rarfile
124 optfeature "7zip archives support" dev-python/pylzma
125 optfeature "iCalendar files support" dev-python/icalendar
126 optfeature "Postscript files support" app-text/pstotext
127 optfeature "RTF files support" app-text/unrtf
128 optfeature "TeX files support" dev-text/detex
129 optfeature "DVI files support" virtual/tex-base
130 optfeature "DJVU files support" app-text/djvu
131 optfeature "tags in audio files support" media-libs/mutagen
132 optfeature "tags in image files support" media-libs/exiftool
133 optfeature "Midi karaoke files support" dev-python/chardet