/[gentoo-x86]/net-dialup/gtkterm/gtkterm-0.99.7_rc1.ebuild
Gentoo

Contents of /net-dialup/gtkterm/gtkterm-0.99.7_rc1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Oct 6 10:35:00 2012 UTC (18 months, 1 week ago) by pacho
Branch: MAIN
Changes since 1.1: +3 -1 lines
Install desktop entry also, bug #346703 by Miguel R. Caudevilla.

(Portage version: 2.1.11.24/cvs/Linux x86_64)

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.7_rc1.ebuild,v 1.1 2012/10/06 10:29:15 pacho Exp $
4
5 EAPI=4
6 inherit eutils
7
8 MY_P="${P/_/-}"
9 DESCRIPTION="A serial port terminal written in GTK+, similar to Windows' HyperTerminal"
10 HOMEPAGE="https://fedorahosted.org/gtkterm/"
11 SRC_URI="https://fedorahosted.org/released/gtkterm/${MY_P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
16 IUSE="nls"
17
18 inherit eutils autotools
19
20 RDEPEND=">=x11-libs/gtk+-2.16:2
21 >=x11-libs/vte-0.20:0"
22 DEPEND="${RDEPEND}
23 >=dev-util/intltool-0.40
24 virtual/pkgconfig
25 nls? ( sys-devel/gettext )"
26
27 # Supported languages and translated documentation
28 # Be sure all languages are prefixed with a single space!
29 MY_AVAILABLE_LINGUAS=" fr hu"
30 IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
31
32 S=${WORKDIR}/${P/_/-}
33
34 src_prepare() {
35 # Fix test
36 echo "src/term_config.c" >> po/POTFILES.in || die
37
38 epatch "${FILESDIR}/${P}-configure.patch"
39 eautoreconf
40 }
41
42 src_install() {
43 einstall || die "einstall failed"
44 make_desktop_entry "${PN}"
45
46 if use nls; then
47 cd "${S}/po"
48 local MY_LINGUAS="" lang
49
50 for lang in ${MY_AVAILABLE_LINGUAS} ; do
51 if use linguas_${lang} ; then
52 MY_LINGUAS="${MY_LINGUAS} ${lang}"
53 fi
54 done
55 if [[ "${MY_LINGUAS}" ]] ; then
56
57 elog "Locale messages will be installed for following languages:"
58 elog " ${MY_LINGUAS}"
59
60 for lang in ${MY_LINGUAS}; do
61 msgfmt -o ${lang}.mo ${lang}.po && \
62 insinto /usr/share/locale/${lang}/LC_MESSAGES && \
63 newins ${lang}.mo gtkterm.mo || \
64 die "failed to install locale messages for ${lang} language"
65 done
66 fi
67 fi
68 }

  ViewVC Help
Powered by ViewVC 1.1.20