You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.1 KiB
58 lines
1.1 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
13 years ago
|
|
||
12 years ago
|
EAPI=5
|
||
|
PLOCALES="de fr ru"
|
||
12 years ago
|
|
||
9 years ago
|
inherit eutils l10n qmake-utils
|
||
13 years ago
|
|
||
|
DESCRIPTION="Small, lightweight Qt text editor"
|
||
9 years ago
|
HOMEPAGE="http://tea.ourproject.org/ http://semiletov.org/tea/"
|
||
|
SRC_URI="http://tea.ourproject.org/dloads/${P}.tar.bz2"
|
||
13 years ago
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~ia64 ~x86 ~x86-fbsd"
|
||
|
IUSE="aspell hunspell"
|
||
|
|
||
12 years ago
|
RDEPEND="
|
||
11 years ago
|
dev-qt/qtcore:4
|
||
|
dev-qt/qtgui:4
|
||
9 years ago
|
sys-libs/zlib
|
||
13 years ago
|
aspell? ( app-text/aspell )
|
||
12 years ago
|
hunspell? ( app-text/hunspell )
|
||
|
"
|
||
12 years ago
|
DEPEND="${RDEPEND}
|
||
12 years ago
|
hunspell? ( virtual/pkgconfig )
|
||
|
"
|
||
13 years ago
|
|
||
11 years ago
|
DOCS=( AUTHORS ChangeLog NEWS TODO )
|
||
12 years ago
|
|
||
13 years ago
|
src_configure() {
|
||
12 years ago
|
eqmake4 src.pro \
|
||
9 years ago
|
$(use aspell || echo CONFIG+=noaspell) \
|
||
|
$(use hunspell || echo CONFIG+=nohunspell)
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
9 years ago
|
dobin bin/tea
|
||
13 years ago
|
|
||
9 years ago
|
newicon icons/tea-icon-v3-01.png ${PN}.png
|
||
12 years ago
|
make_desktop_entry ${PN} 'Tea Editor'
|
||
12 years ago
|
|
||
|
# translations
|
||
|
insinto /usr/share/qt4/translations
|
||
|
local lang
|
||
12 years ago
|
for lang in $(l10n_get_locales); do
|
||
|
doins translations/${PN}_${lang}.qm
|
||
12 years ago
|
done
|
||
|
|
||
|
# docs
|
||
|
dohtml manuals/en.html
|
||
|
if use linguas_ru; then
|
||
|
dodoc NEWS-RU
|
||
|
dohtml manuals/ru.html
|
||
|
fi
|
||
13 years ago
|
}
|