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

Return to bug 680468