blob: deeb4d81e1101c0d6a5f4e568f6dd8839a2f4423 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/gtranslator/gtranslator-1.9.13.ebuild,v 1.13 2012/12/17 08:20:16 tetromino Exp $
EAPI="3"
GCONF_DEBUG="no"
inherit autotools eutils gnome2
DESCRIPTION="An enhanced gettext po file editor for GNOME"
HOMEPAGE="http://gtranslator.sourceforge.net/"
LICENSE="GPL-2+ FDL-1.1+"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="http gnome spell"
RDEPEND="
>=dev-libs/glib-2.25.10:2
>=dev-libs/gdl-2.26:1
>=dev-libs/libunique-1:1
>=dev-libs/libxml2-2.4.12
gnome-base/gsettings-desktop-schemas
gnome-extra/libgda:4
>=x11-libs/gtk+-2.21.5:2
>=x11-libs/gtksourceview-2.4:2.0
gnome? (
=gnome-extra/gnome-utils-2*
>=gnome-extra/gucharmap-2:0 )
http? ( >=dev-libs/json-glib-0.7.6 )
spell? ( >=app-text/gtkspell-2.0.2:2 )"
DEPEND="${RDEPEND}
>=app-text/scrollkeeper-0.1.4
>=dev-util/intltool-0.40
>=sys-devel/gettext-0.17
virtual/pkgconfig
app-text/gnome-doc-utils
app-text/docbook-xml-dtd:4.1.2
gnome-base/gnome-common
dev-util/gtk-doc-am"
pkg_setup() {
DOCS="AUTHORS ChangeLog HACKING INSTALL NEWS README THANKS"
G2CONF="${G2CONF}
--disable-static
$(use_with gnome dictionary)
$(use_with spell gtkspell)"
if use http; then
G2CONF="${G2CONF} enable_opentran=yes"
else
G2CONF="${G2CONF} enable_opentran=no"
fi
}
src_prepare() {
gnome2_src_prepare
# Let package manager handle desktop database updates, bug #318797
# patch from upstream gtk3 branch
epatch "${FILESDIR}/${PN}-1.9.13-desktop-database.patch"
intltoolize --force --copy --automake || die "intltoolize failed"
eautoreconf
}
src_install() {
gnome2_src_install
# Clean up unused libtool generated content
find "${ED}" -name "*.la" -delete || die "failed to remove *.la"
}
|