summaryrefslogtreecommitdiff
blob: fb73c864181b488f57208c4ae378743727f5e230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit qmake-utils xdg

DESCRIPTION="Small, lightweight Qt text editor"
HOMEPAGE="https://tea.ourproject.org/"
SRC_URI="https://tea.ourproject.org/dloads/${P}.tar.bz2"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="aspell djvu hunspell pdf +qml"

BDEPEND="
	hunspell? ( virtual/pkgconfig )
"
DEPEND="
	dev-qt/qtcore:5
	dev-qt/qtdeclarative:5
	dev-qt/qtgui:5
	dev-qt/qtnetwork:5
	dev-qt/qtprintsupport:5
	dev-qt/qtwidgets:5
	sys-libs/zlib
	aspell? ( app-text/aspell )
	djvu? ( app-text/djvu )
	hunspell? ( app-text/hunspell:= )
	pdf? ( app-text/poppler[qt5] )
	qml? ( dev-qt/qtdeclarative:5 )
"
RDEPEND="${DEPEND}"

DOCS=( AUTHORS ChangeLog NEWS NEWS-RU TODO )

src_configure() {
	local myqmakeargs=(
		PREFIX=/usr
		$(usex aspell '' CONFIG+=noaspell)
		$(usex djvu CONFIG+=usedjvu '')
		$(usex hunspell '' CONFIG+=nohunspell)
		$(usex pdf CONFIG+=usepoppler '')
		$(usex qml '' CONFIG+=noqml)
	)
	eqmake5 tea-qmake.pro "${myqmakeargs[@]}"
}

src_install() {
	emake INSTALL_ROOT="${D}" install
	einstalldocs

	docinto html
	dodoc manuals/*.html

	insinto /usr/share/qt5/translations
	doins translations/${PN}_*.qm
}