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 (-33 / +39 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 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
CDEPEND="
22
	dev-libs/xapian:=
26
	dev-libs/xapian:=
23
	sys-libs/zlib:=
27
	sys-libs/zlib:=
24
	virtual/libiconv
28
	virtual/libiconv
25
	qt5? (
29
	qt5? (
26
		dev-qt/qtcore:5
30
		dev-qt/qtcore:5
27
		dev-qt/qtgui:5
31
		dev-qt/qtgui:5
28
		dev-qt/qtprintsupport:5
32
		dev-qt/qtprintsupport:5
29
		dev-qt/qtwebkit:5
33
		webengine? ( dev-qt/qtwebengine:5[widgets] )
30
	)
34
	)
31
	session? (
35
	session? (
32
		inotify? (
36
		inotify? (
33
			  x11-libs/libSM
37
			x11-libs/libSM
34
			  x11-libs/libICE
38
			x11-libs/libICE
35
			  x11-libs/libX11
39
			x11-libs/libX11
36
		)
40
		)
37
	)
41
	)
38
	spell? ( app-text/aspell )
42
	spell? ( app-text/aspell )
39
	${PYTHON_DEPS}
43
	${PYTHON_DEPS}
40
"
44
"
41
45
42
DEPEND="
46
DEPEND="
43
	${CDEPEND}
47
	${CDEPEND}
44
	qt5? ( dev-qt/linguist-tools:5 )
48
	qt5? ( dev-qt/linguist-tools:5 )
45
"
49
"
46
50
47
RDEPEND="
51
RDEPEND="
48
	${CDEPEND}
52
	${CDEPEND}
49
	app-arch/unzip
53
	app-arch/unzip
50
"
54
"
51
55
52
PATCHES=(
56
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
57
	if has_version "<app-misc/recoll-1.20"; then
59
		einfo "Installing ${PV} over an 1.19 index is possible,"
58
		elog "Installing ${PV} over an 1.19 index is possible,"
60
		einfo "but there have been small changes in the way"
59
		elog "but there have been small changes in the way"
61
		einfo "compound words are indexed. So it is best to reset"
60
		elog "compound words are indexed. So it is best to reset"
62
		einfo "the index. The best method to reset the index is to"
61
		elog "the index. The best method to reset the index is to"
63
		einfo "quit all recoll programs and delete the index directory"
62
		elog "quit all recoll programs and delete the index directory"
64
		einfo "rm -rf ~/.recoll/xapiandb, then start recoll or recollindex."
63
		elog "rm -rf ~/.recoll/xapiandb, then start recoll or recollindex."
65
	fi
64
	fi
65
}
66
67
pkg_setup() {
66
	if use inotify; then
68
	if use inotify; then
67
		CONFIG_CHECK="~INOTIFY_USER"
69
		local CONFIG_CHECK="~INOTIFY_USER"
68
		check_extra_config
70
		check_extra_config
69
	fi
71
	fi
70
	python-single-r1_pkg_setup
72
	python-single-r1_pkg_setup
71
}
73
}
72
74
73
src_prepare() {
75
src_prepare() {
74
	default
76
	default
75
	python_fix_shebang filters
77
	python_fix_shebang filters
76
}
78
}
77
79
78
src_configure() {
80
src_configure() {
79
	use qt5 && export QMAKE="$(qt5_get_bindir)/qmake"
81
	use qt5 && export QMAKE="$(qt5_get_bindir)/qmake"
80
82
81
	econf \
83
	local myeconfargs=(
82
		$(use_enable camelcase) \
84
		$(use_enable camelcase)
83
		$(use_enable session x11mon) \
85
		$(use_enable session x11mon)
84
		$(use_enable qt5 qtgui) \
86
		$(use_enable qt5 qtgui)
85
		$(use_enable qt5 webkit) \
87
		$(use_enable webengine)
86
		$(use_with inotify) \
88
		$(use_with inotify)
87
		$(use_with spell aspell) \
89
		$(use_with spell aspell)
88
		--without-fam \
90
		--disable-webkit
91
		--without-fam
89
		--enable-recollq
92
		--enable-recollq
93
	)
94
95
	econf "${myeconfargs[@]}"
90
}
96
}
91
97
92
src_install() {
98
src_install() {
93
	emake STRIP="$(type -P true)" DESTDIR="${D}" install
99
	emake STRIP="$(type -P true)" DESTDIR="${D}" install
94
100
95
	# html docs should be placed in /usr/share/doc/${PN}/html
101
	# html docs should be placed in /usr/share/doc/${PN}/html
96
	use doc && dodoc -r "${ED}"/usr/share/recoll/doc/.
102
	use doc && dodoc -r "${ED}"/usr/share/recoll/doc/.
97
	rm -r "${ED}/usr/share/recoll/doc" || die
103
	rm -r "${ED}/usr/share/recoll/doc" || die
98
	find "${D}" -name '*.la' -delete || die
104
	find "${D}" -name '*.la' -delete || die
99
}
105
}
100
106
101
pkg_postinst() {
107
pkg_postinst() {
102
	einfo "In order to extract the full functionality of "
108
	elog "In order to extract the full functionality of "
103
	einfo "recoll, the following packages should be installed "
109
	elog "recoll, the following packages should be installed "
104
	einfo "to get the corresponding document support."
110
	elog "to get the corresponding document support."
105
111
106
	optfeature "XML based documents support"    "dev-libs/libxslt[python] dev-libs/libxml2[python]"
112
	optfeature "XML based documents support"    "dev-libs/libxslt[python] dev-libs/libxml2[python]"
107
	optfeature "PDF files support"              app-text/poppler
113
	optfeature "PDF files support"              app-text/poppler
108
	optfeature "PDF files with OCR support"     app-text/tesseract
114
	optfeature "PDF files with OCR support"     app-text/tesseract
109
	optfeature "MS Word files support"          app-text/antiword
115
	optfeature "MS Word files support"          app-text/antiword
110
	optfeature "Wordperfect files support"      "app-text/libwpd[tools]"
116
	optfeature "Wordperfect files support"      "app-text/libwpd[tools]"
111
	optfeature "Lyx files support"              app-office/lyx
117
	optfeature "Lyx files support"              app-office/lyx
112
	optfeature "CHM files support"              dev-python/pychm
118
	optfeature "CHM files support"              dev-python/pychm
113
	optfeature "GNU Info files support"         sys-apps/texinfo
119
	optfeature "GNU Info files support"         sys-apps/texinfo
114
	optfeature "RAR archives support"           dev-python/rarfile
120
	optfeature "RAR archives support"           dev-python/rarfile
115
	optfeature "7zip archives support"          dev-python/pylzma
121
	optfeature "7zip archives support"          dev-python/pylzma
116
	optfeature "iCalendar files support"        dev-python/icalendar
122
	optfeature "iCalendar files support"        dev-python/icalendar
117
	optfeature "Postscript files support"       app-text/pstotext
123
	optfeature "Postscript files support"       app-text/pstotext
118
	optfeature "RTF files support"              app-text/unrtf
124
	optfeature "RTF files support"              app-text/unrtf
119
	optfeature "TeX files support"              dev-text/detex
125
	optfeature "TeX files support"              dev-text/detex
120
	optfeature "DVI files support"              virtual/tex-base
126
	optfeature "DVI files support"              virtual/tex-base
121
	optfeature "DJVU files support"             app-text/djvu
127
	optfeature "DJVU files support"             app-text/djvu
122
	optfeature "tags in audio files support"    media-libs/mutagen
128
	optfeature "tags in audio files support"    media-libs/mutagen
123
	optfeature "tags in image files support"    media-libs/exiftool
129
	optfeature "tags in image files support"    media-libs/exiftool
124
	optfeature "Midi karaoke files support"     dev-python/chardet
130
	optfeature "Midi karaoke files support"     dev-python/chardet
125
}
131
}

Return to bug 680468