| 1 |
pesa |
1.1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
pesa |
1.2 |
# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/tea-33.0.0.ebuild,v 1.1 2012/05/02 23:01:48 pesa Exp $ |
| 4 |
pesa |
1.1 |
|
| 5 |
|
|
EAPI=4 |
| 6 |
|
|
LANGS="de fr ru" |
| 7 |
|
|
|
| 8 |
|
|
inherit eutils qt4-r2 |
| 9 |
|
|
|
| 10 |
|
|
DESCRIPTION="Small, lightweight Qt text editor" |
| 11 |
|
|
HOMEPAGE="http://tea-editor.sourceforge.net/" |
| 12 |
|
|
SRC_URI="mirror://sourceforge/tea-editor/${P}.tar.bz2" |
| 13 |
|
|
|
| 14 |
|
|
LICENSE="GPL-3" |
| 15 |
|
|
SLOT="0" |
| 16 |
|
|
KEYWORDS="~amd64 ~ia64 ~x86 ~x86-fbsd" |
| 17 |
|
|
IUSE="aspell hunspell" |
| 18 |
|
|
|
| 19 |
|
|
RDEPEND=" |
| 20 |
|
|
sys-libs/zlib |
| 21 |
|
|
x11-libs/qt-core:4 |
| 22 |
|
|
x11-libs/qt-gui:4 |
| 23 |
|
|
aspell? ( app-text/aspell ) |
| 24 |
|
|
hunspell? ( app-text/hunspell ) |
| 25 |
|
|
" |
| 26 |
|
|
DEPEND="${RDEPEND} |
| 27 |
|
|
hunspell? ( virtual/pkgconfig ) |
| 28 |
|
|
" |
| 29 |
|
|
|
| 30 |
|
|
DOCS="AUTHORS ChangeLog NEWS TODO" |
| 31 |
|
|
|
| 32 |
|
|
src_configure() { |
| 33 |
|
|
eqmake4 src.pro \ |
| 34 |
|
|
PREFIX="${EPREFIX}/usr/bin" \ |
| 35 |
|
|
USE_ASPELL=$(use aspell && echo true || echo false) \ |
| 36 |
|
|
USE_HUNSPELL=$(use hunspell && echo true || echo false) |
| 37 |
|
|
} |
| 38 |
|
|
|
| 39 |
|
|
src_install() { |
| 40 |
|
|
qt4-r2_src_install |
| 41 |
|
|
|
| 42 |
|
|
newicon icons/tea_icon_v2.png ${PN}.png |
| 43 |
|
|
make_desktop_entry ${PN} Tea ${PN} |
| 44 |
|
|
|
| 45 |
|
|
# translations |
| 46 |
|
|
insinto /usr/share/qt4/translations |
| 47 |
|
|
local lang |
| 48 |
|
|
for lang in ${LANGS}; do |
| 49 |
|
|
if use linguas_${lang}; then |
| 50 |
|
|
doins translations/${PN}_${lang}.qm |
| 51 |
|
|
fi |
| 52 |
|
|
done |
| 53 |
|
|
|
| 54 |
|
|
# docs |
| 55 |
|
|
dohtml manuals/en.html |
| 56 |
|
|
if use linguas_ru; then |
| 57 |
|
|
dodoc NEWS-RU |
| 58 |
|
|
dohtml manuals/ru.html |
| 59 |
|
|
fi |
| 60 |
|
|
} |