/[gentoo-x86]/app-editors/tea/tea-32.0.1.ebuild
Gentoo

Contents of /app-editors/tea/tea-32.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed May 2 23:01:48 2012 UTC (2 years, 2 months ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump.

(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)

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-32.0.1.ebuild,v 1.1 2012/03/16 15:17:52 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="sys-libs/zlib
20     x11-libs/qt-core:4
21     x11-libs/qt-gui:4
22     aspell? ( app-text/aspell )
23     hunspell? ( app-text/hunspell )"
24     DEPEND="${RDEPEND}
25     hunspell? ( dev-util/pkgconfig )"
26    
27     DOCS="AUTHORS ChangeLog NEWS TODO"
28    
29     src_configure() {
30     local myopts
31    
32     if use aspell; then
33     myopts="USE_ASPELL=true"
34     else
35     myopts="USE_ASPELL=false"
36     fi
37    
38     if use hunspell; then
39     myopts="${myopts} USE_HUNSPELL=true"
40     else
41     myopts="${myopts} USE_HUNSPELL=false"
42     fi
43    
44     eqmake4 src.pro PREFIX="/usr/bin" ${myopts}
45     }
46    
47     src_install() {
48     qt4-r2_src_install
49    
50     newicon icons/tea_icon_v2.png ${PN}.png
51     make_desktop_entry ${PN} Tea ${PN}
52    
53     # translations
54     insinto /usr/share/qt4/translations
55     local lang
56     for lang in ${LANGS}; do
57     if use linguas_${lang}; then
58     doins translations/${PN}_${lang}.qm
59     fi
60     done
61    
62     # docs
63     dohtml manuals/en.html
64     if use linguas_ru; then
65     dodoc NEWS-RU
66     dohtml manuals/ru.html
67     fi
68     }

  ViewVC Help
Powered by ViewVC 1.1.20