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 (-6 / +1 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=(
53
	"${FILESDIR}"/${PN}-python3.patch # python3 patch
54
	"${FILESDIR}"/${P}-qt-5.11.patch # bugs 663028, 660912
55
)
56
57
pkg_setup() {
52
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
		einfo "Installing ${PV} over an 1.19 index is possible,"
60
		einfo "but there have been small changes in the way"
55
		einfo "but there have been small changes in the way"
61
		einfo "compound words are indexed. So it is best to reset"
56
		einfo "compound words are indexed. So it is best to reset"
62
		einfo "the index. The best method to reset the index is to"
57
		einfo "the index. The best method to reset the index is to"
63
		einfo "quit all recoll programs and delete the index directory"
58
		einfo "quit all recoll programs and delete the index directory"
64
		einfo "rm -rf ~/.recoll/xapiandb, then start recoll or recollindex."
59
		einfo "rm -rf ~/.recoll/xapiandb, then start recoll or recollindex."
65
	fi
60
	fi
66
	if use inotify; then
61
	if use inotify; then
67
		CONFIG_CHECK="~INOTIFY_USER"
62
		CONFIG_CHECK="~INOTIFY_USER"
68
		check_extra_config
63
		check_extra_config
69
	fi
64
	fi
70
	python-single-r1_pkg_setup
65
	python-single-r1_pkg_setup
71
}
66
}
72
67
73
src_prepare() {
68
src_prepare() {
74
	default
69
	default
75
	python_fix_shebang filters
70
	python_fix_shebang filters
76
}
71
}
77
72
78
src_configure() {
73
src_configure() {
79
	use qt5 && export QMAKE="$(qt5_get_bindir)/qmake"
74
	use qt5 && export QMAKE="$(qt5_get_bindir)/qmake"
80
75
81
	econf \
76
	econf \
82
		$(use_enable camelcase) \
77
		$(use_enable camelcase) \
83
		$(use_enable session x11mon) \
78
		$(use_enable session x11mon) \
84
		$(use_enable qt5 qtgui) \
79
		$(use_enable qt5 qtgui) \
85
		$(use_enable qt5 webkit) \
80
		$(use_enable qt5 webkit) \
86
		$(use_with inotify) \
81
		$(use_with inotify) \
87
		$(use_with spell aspell) \
82
		$(use_with spell aspell) \
88
		--without-fam \
83
		--without-fam \
89
		--enable-recollq
84
		--enable-recollq
90
}
85
}
91
86
92
src_install() {
87
src_install() {
93
	emake STRIP="$(type -P true)" DESTDIR="${D}" install
88
	emake STRIP="$(type -P true)" DESTDIR="${D}" install
94
89
95
	# html docs should be placed in /usr/share/doc/${PN}/html
90
	# html docs should be placed in /usr/share/doc/${PN}/html
96
	use doc && dodoc -r "${ED}"/usr/share/recoll/doc/.
91
	use doc && dodoc -r "${ED}"/usr/share/recoll/doc/.
97
	rm -r "${ED}/usr/share/recoll/doc" || die
92
	rm -r "${ED}/usr/share/recoll/doc" || die
98
	find "${D}" -name '*.la' -delete || die
93
	find "${D}" -name '*.la' -delete || die
99
}
94
}
100
95
101
pkg_postinst() {
96
pkg_postinst() {
102
	einfo "In order to extract the full functionality of "
97
	einfo "In order to extract the full functionality of "
103
	einfo "recoll, the following packages should be installed "
98
	einfo "recoll, the following packages should be installed "
104
	einfo "to get the corresponding document support."
99
	einfo "to get the corresponding document support."
105
100
106
	optfeature "XML based documents support"    "dev-libs/libxslt[python] dev-libs/libxml2[python]"
101
	optfeature "XML based documents support"    "dev-libs/libxslt[python] dev-libs/libxml2[python]"
107
	optfeature "PDF files support"              app-text/poppler
102
	optfeature "PDF files support"              app-text/poppler
108
	optfeature "PDF files with OCR support"     app-text/tesseract
103
	optfeature "PDF files with OCR support"     app-text/tesseract
109
	optfeature "MS Word files support"          app-text/antiword
104
	optfeature "MS Word files support"          app-text/antiword
110
	optfeature "Wordperfect files support"      "app-text/libwpd[tools]"
105
	optfeature "Wordperfect files support"      "app-text/libwpd[tools]"
111
	optfeature "Lyx files support"              app-office/lyx
106
	optfeature "Lyx files support"              app-office/lyx
112
	optfeature "CHM files support"              dev-python/pychm
107
	optfeature "CHM files support"              dev-python/pychm
113
	optfeature "GNU Info files support"         sys-apps/texinfo
108
	optfeature "GNU Info files support"         sys-apps/texinfo
114
	optfeature "RAR archives support"           dev-python/rarfile
109
	optfeature "RAR archives support"           dev-python/rarfile
115
	optfeature "7zip archives support"          dev-python/pylzma
110
	optfeature "7zip archives support"          dev-python/pylzma
116
	optfeature "iCalendar files support"        dev-python/icalendar
111
	optfeature "iCalendar files support"        dev-python/icalendar
117
	optfeature "Postscript files support"       app-text/pstotext
112
	optfeature "Postscript files support"       app-text/pstotext
118
	optfeature "RTF files support"              app-text/unrtf
113
	optfeature "RTF files support"              app-text/unrtf
119
	optfeature "TeX files support"              dev-text/detex
114
	optfeature "TeX files support"              dev-text/detex
120
	optfeature "DVI files support"              virtual/tex-base
115
	optfeature "DVI files support"              virtual/tex-base
121
	optfeature "DJVU files support"             app-text/djvu
116
	optfeature "DJVU files support"             app-text/djvu
122
	optfeature "tags in audio files support"    media-libs/mutagen
117
	optfeature "tags in audio files support"    media-libs/mutagen
123
	optfeature "tags in image files support"    media-libs/exiftool
118
	optfeature "tags in image files support"    media-libs/exiftool
124
	optfeature "Midi karaoke files support"     dev-python/chardet
119
	optfeature "Midi karaoke files support"     dev-python/chardet
125
}
120
}

Return to bug 680468