Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 680468 | Differences between
and this patch

Collapse All | Expand All

(-)recoll-1.24.1.ebuild (-38 / +47 lines)
Lines 1-125 Link Here
1
# Copyright 1999-2019 Gentoo Authors
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=6
4
EAPI=7
5
5
6
PYTHON_COMPAT=( python2_7 )
6
PYTHON_COMPAT=( python3_{5,6,7} )
7
7
8
inherit eutils linux-info python-single-r1 qmake-utils
8
inherit eutils linux-info python-single-r1 qmake-utils
9
9
10
DESCRIPTION="A personal full text search package"
10
DESCRIPTION="A personal full text search package"
11
HOMEPAGE="https://www.lesbonscomptes.com/recoll/"
11
HOMEPAGE="https://www.lesbonscomptes.com/recoll/"
12
SRC_URI="https://www.lesbonscomptes.com/recoll/${P}.tar.gz"
12
SRC_URI="https://www.lesbonscomptes.com/recoll/${P}.tar.gz"
13
13
14
LICENSE="GPL-2"
14
LICENSE="GPL-2"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="amd64 x86"
16
KEYWORDS="~amd64 ~x86"
17
17
18
IUSE="camelcase doc +inotify qt5 session +spell"
18
IUSE="camelcase chm doc +inotify qt5 session +spell webengine"
19
REQUIRED_USE="session? ( inotify ) ${PYTHON_REQUIRED_USE}"
19
REQUIRED_USE="
20
	session? ( inotify )
21
	webengine? ( qt5 )
22
	${PYTHON_REQUIRED_USE}
23
"
20
24
21
CDEPEND="
25
DEPEND="
22
	dev-libs/xapian:=
26
	dev-libs/xapian:=
23
	sys-libs/zlib:=
27
	sys-libs/zlib:=
24
	virtual/libiconv
28
	virtual/libiconv
29
	chm? (
30
		dev-libs/chmlib
31
		dev-python/pychm
32
	)
25
	qt5? (
33
	qt5? (
26
		dev-qt/qtcore:5
34
		dev-qt/qtcore:5
27
		dev-qt/qtgui:5
35
		dev-qt/qtgui:5
28
		dev-qt/qtprintsupport:5
36
		dev-qt/qtprintsupport:5
29
		dev-qt/qtwebkit:5
37
		webengine? ( dev-qt/qtwebengine:5[widgets] )
30
	)
38
	)
31
	session? (
39
	session? (
32
		inotify? (
40
		inotify? (
33
			  x11-libs/libSM
41
			x11-libs/libSM
34
			  x11-libs/libICE
42
			x11-libs/libICE
35
			  x11-libs/libX11
43
			x11-libs/libX11
36
		)
44
		)
37
	)
45
	)
38
	spell? ( app-text/aspell )
46
	spell? ( app-text/aspell )
39
	${PYTHON_DEPS}
47
	${PYTHON_DEPS}
40
"
48
"
41
49
42
DEPEND="
50
BDEPEND="
43
	${CDEPEND}
44
	qt5? ( dev-qt/linguist-tools:5 )
51
	qt5? ( dev-qt/linguist-tools:5 )
45
"
52
"
46
53
47
RDEPEND="
54
RDEPEND="
48
	${CDEPEND}
55
	${DEPEND}
49
	app-arch/unzip
56
	app-arch/unzip
50
"
57
"
51
58
52
PATCHES=(
59
pkg_pretend() {
53
	"${FILESDIR}"/${PN}-python3.patch # python3 patch
54
	"${FILESDIR}"/${P}-qt-5.11.patch # bugs 663028, 660912
55
)
56
57
pkg_setup() {
58
	if has_version "<app-misc/recoll-1.20"; then
60
	if has_version "<app-misc/recoll-1.20"; then
59
		einfo "Installing ${PV} over an 1.19 index is possible,"
61
		elog "Installing ${PV} over an 1.19 index is possible,"
60
		einfo "but there have been small changes in the way"
62
		elog "but there have been small changes in the way"
61
		einfo "compound words are indexed. So it is best to reset"
63
		elog "compound words are indexed. So it is best to reset"
62
		einfo "the index. The best method to reset the index is to"
64
		elog "the index. The best method to reset the index is to"
63
		einfo "quit all recoll programs and delete the index directory"
65
		elog "quit all recoll programs and delete the index directory"
64
		einfo "rm -rf ~/.recoll/xapiandb, then start recoll or recollindex."
66
		elog "rm -rf ~/.recoll/xapiandb, then start recoll or recollindex."
65
	fi
67
	fi
68
}
69
70
pkg_setup() {
66
	if use inotify; then
71
	if use inotify; then
67
		CONFIG_CHECK="~INOTIFY_USER"
72
		local CONFIG_CHECK="~INOTIFY_USER"
68
		check_extra_config
73
		check_extra_config
69
	fi
74
	fi
70
	python-single-r1_pkg_setup
75
	python-single-r1_pkg_setup
71
}
76
}
72
77
73
src_prepare() {
78
src_prepare() {
74
	default
79
	default
75
	python_fix_shebang filters
80
	python_fix_shebang filters
76
}
81
}
77
82
78
src_configure() {
83
src_configure() {
79
	use qt5 && export QMAKE="$(qt5_get_bindir)/qmake"
84
	use qt5 && export QMAKE="$(qt5_get_bindir)/qmake"
80
85
81
	econf \
86
	local myeconfargs=(
82
		$(use_enable camelcase) \
87
		$(use_enable camelcase)
83
		$(use_enable session x11mon) \
88
		$(use_enable chm python-chm)
84
		$(use_enable qt5 qtgui) \
89
		$(use_enable session x11mon)
85
		$(use_enable qt5 webkit) \
90
		$(use_enable qt5 qtgui)
86
		$(use_with inotify) \
91
		$(use_enable webengine)
87
		$(use_with spell aspell) \
92
		$(use_with inotify)
88
		--without-fam \
93
		$(use_with spell aspell)
94
		--disable-webkit
95
		--without-fam
89
		--enable-recollq
96
		--enable-recollq
97
	)
98
99
	econf "${myeconfargs[@]}"
90
}
100
}
91
101
92
src_install() {
102
src_install() {
93
	emake STRIP="$(type -P true)" DESTDIR="${D}" install
103
	emake STRIP="$(type -P true)" DESTDIR="${D}" install
94
104
95
	# html docs should be placed in /usr/share/doc/${PN}/html
105
	# html docs should be placed in /usr/share/doc/${PN}/html
96
	use doc && dodoc -r "${ED}"/usr/share/recoll/doc/.
106
	use doc && dodoc -r "${ED}"/usr/share/recoll/doc/.
97
	rm -r "${ED}/usr/share/recoll/doc" || die
107
	rm -r "${ED}/usr/share/recoll/doc" || die
98
	find "${D}" -name '*.la' -delete || die
108
	find "${D}" -name '*.la' -delete || die
99
}
109
}
100
110
101
pkg_postinst() {
111
pkg_postinst() {
102
	einfo "In order to extract the full functionality of "
112
	elog "In order to extract the full functionality of "
103
	einfo "recoll, the following packages should be installed "
113
	elog "recoll, the following packages should be installed "
104
	einfo "to get the corresponding document support."
114
	elog "to get the corresponding document support."
105
115
106
	optfeature "XML based documents support"    "dev-libs/libxslt[python] dev-libs/libxml2[python]"
116
	optfeature "XML based documents support"    "dev-libs/libxslt[python] dev-libs/libxml2[python]"
107
	optfeature "PDF files support"              app-text/poppler
117
	optfeature "PDF files support"              app-text/poppler
108
	optfeature "PDF files with OCR support"     app-text/tesseract
118
	optfeature "PDF files with OCR support"     app-text/tesseract
109
	optfeature "MS Word files support"          app-text/antiword
119
	optfeature "MS Word files support"          app-text/antiword
110
	optfeature "Wordperfect files support"      "app-text/libwpd[tools]"
120
	optfeature "Wordperfect files support"      "app-text/libwpd[tools]"
111
	optfeature "Lyx files support"              app-office/lyx
121
	optfeature "Lyx files support"              app-office/lyx
112
	optfeature "CHM files support"              dev-python/pychm
113
	optfeature "GNU Info files support"         sys-apps/texinfo
122
	optfeature "GNU Info files support"         sys-apps/texinfo
114
	optfeature "RAR archives support"           dev-python/rarfile
123
	optfeature "RAR archives support"           dev-python/rarfile
115
	optfeature "7zip archives support"          dev-python/pylzma
124
	optfeature "7zip archives support"          dev-python/pylzma
116
	optfeature "iCalendar files support"        dev-python/icalendar
125
	optfeature "iCalendar files support"        dev-python/icalendar
117
	optfeature "Postscript files support"       app-text/pstotext
126
	optfeature "Postscript files support"       app-text/pstotext
118
	optfeature "RTF files support"              app-text/unrtf
127
	optfeature "RTF files support"              app-text/unrtf
119
	optfeature "TeX files support"              dev-text/detex
128
	optfeature "TeX files support"              dev-text/detex
120
	optfeature "DVI files support"              virtual/tex-base
129
	optfeature "DVI files support"              virtual/tex-base
121
	optfeature "DJVU files support"             app-text/djvu
130
	optfeature "DJVU files support"             app-text/djvu
122
	optfeature "tags in audio files support"    media-libs/mutagen
131
	optfeature "tags in audio files support"    media-libs/mutagen
123
	optfeature "tags in image files support"    media-libs/exiftool
132
	optfeature "tags in image files support"    media-libs/exiftool
124
	optfeature "Midi karaoke files support"     dev-python/chardet
133
	optfeature "Midi karaoke files support"     dev-python/chardet
125
}
134
}

Return to bug 680468