/[gentoo-x86]/net-dialup/gtkterm/gtkterm-0.99.5-r1.ebuild
Gentoo

Contents of /net-dialup/gtkterm/gtkterm-0.99.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu May 3 03:54:07 2012 UTC (2 years, 5 months ago) by jdhore
Branch: MAIN
Changes since 1.3: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-dialup/gtkterm/gtkterm-0.99.5-r1.ebuild,v 1.3 2011/03/23 07:36:43 ssuominen Exp $
4
5 EAPI=2
6
7 DESCRIPTION="A serial port terminal written in GTK+, similar to Windows' HyperTerminal."
8 HOMEPAGE="http://www.jls-info.com/julien/linux/"
9 SRC_URI="http://www.jls-info.com/julien/linux/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ppc sparc x86"
14 IUSE="nls"
15
16 RDEPEND="x11-libs/gtk+:2
17 x11-libs/vte:0"
18 DEPEND="${RDEPEND}
19 virtual/pkgconfig
20 nls? ( sys-devel/gettext )"
21
22 # Supported languages and translated documentation
23 # Be sure all languages are prefixed with a single space!
24 MY_AVAILABLE_LINGUAS=" fr hu ru"
25 IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
26
27 src_prepare() {
28 if use nls ; then
29 cp "${FILESDIR}"/ru.po "${S}"/po/ || die "adding Russian language support failed"
30 fi
31 }
32
33 src_install() {
34 einstall || die "einstall failed"
35
36 if use nls; then
37 cd "${S}/po"
38 local MY_LINGUAS="" lang
39
40 for lang in ${MY_AVAILABLE_LINGUAS} ; do
41 if use linguas_${lang} ; then
42 MY_LINGUAS="${MY_LINGUAS} ${lang}"
43 fi
44 done
45 if [[ -z "${MY_LINGUAS}" ]] ; then
46 #If no language is selected, install 'em all
47 MY_LINGUAS="${MY_AVAILABLE_LINGUAS}"
48 fi
49
50 elog "Locale messages will be installed for following languages:"
51 elog " ${MY_LINGUAS}"
52
53 for lang in ${MY_LINGUAS}; do
54 msgfmt -o ${lang}.mo ${lang}.po && \
55 insinto /usr/share/locale/${lang}/LC_MESSAGES && \
56 newins ${lang}.mo gtkterm.mo || \
57 die "failed to install locale messages for ${lang} language"
58 done
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20