diff options
Diffstat (limited to 'app-editors/tea/tea-36.0.2.ebuild')
-rw-r--r-- | app-editors/tea/tea-36.0.2.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app-editors/tea/tea-36.0.2.ebuild b/app-editors/tea/tea-36.0.2.ebuild new file mode 100644 index 000000000000..306d38a2e234 --- /dev/null +++ b/app-editors/tea/tea-36.0.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PLOCALES="de fr ru" + +inherit eutils l10n qt4-r2 + +DESCRIPTION="Small, lightweight Qt text editor" +HOMEPAGE="http://semiletov.org/tea/" +SRC_URI="http://semiletov.org/${PN}/dloads/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~x86 ~x86-fbsd" +IUSE="aspell hunspell" + +RDEPEND=" + sys-libs/zlib + dev-qt/qtcore:4 + dev-qt/qtgui: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 Editor' + + # translations + insinto /usr/share/qt4/translations + local lang + for lang in $(l10n_get_locales); do + doins translations/${PN}_${lang}.qm + done + + # docs + dohtml manuals/en.html + if use linguas_ru; then + dodoc NEWS-RU + dohtml manuals/ru.html + fi +} |