blob: 16e17713f2213aaf7c0e8de8d6c1a6c7cbb87319 (
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
60
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/tea-33.0.0.ebuild,v 1.1 2012/05/02 23:01:48 pesa Exp $
EAPI=4
LANGS="de fr ru"
inherit eutils qt4-r2
DESCRIPTION="Small, lightweight Qt text editor"
HOMEPAGE="http://tea-editor.sourceforge.net/"
SRC_URI="mirror://sourceforge/tea-editor/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~x86 ~x86-fbsd"
IUSE="aspell hunspell"
RDEPEND="
sys-libs/zlib
x11-libs/qt-core:4
x11-libs/qt-gui:4
aspell? ( app-text/aspell )
hunspell? ( app-text/hunspell )
"
DEPEND="${RDEPEND}
hunspell? ( virtual/pkgconfig )
"
DOCS="AUTHORS ChangeLog NEWS TODO"
src_configure() {
eqmake4 src.pro \
PREFIX="${EPREFIX}/usr/bin" \
USE_ASPELL=$(use aspell && echo true || echo false) \
USE_HUNSPELL=$(use hunspell && echo true || echo false)
}
src_install() {
qt4-r2_src_install
newicon icons/tea_icon_v2.png ${PN}.png
make_desktop_entry ${PN} Tea ${PN}
# translations
insinto /usr/share/qt4/translations
local lang
for lang in ${LANGS}; do
if use linguas_${lang}; then
doins translations/${PN}_${lang}.qm
fi
done
# docs
dohtml manuals/en.html
if use linguas_ru; then
dodoc NEWS-RU
dohtml manuals/ru.html
fi
}
|