Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: dev-util/glade/
Date: Sun, 01 Dec 2013 23:19:05
Message-Id: 1385939041.701a343a40bb1c1ec3cced54a3c09c891cf7f5b2.eva@gentoo
1 commit: 701a343a40bb1c1ec3cced54a3c09c891cf7f5b2
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 1 22:59:59 2013 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 1 23:04:01 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=701a343a
7
8 dev-util/glade: 3.14.2 → 3.16.0
9
10 ---
11 dev-util/glade/glade-3.16.0.ebuild | 86 ++++++++++++++++++++++++++++++++++++++
12 1 file changed, 86 insertions(+)
13
14 diff --git a/dev-util/glade/glade-3.16.0.ebuild b/dev-util/glade/glade-3.16.0.ebuild
15 new file mode 100644
16 index 0000000..476e94a
17 --- /dev/null
18 +++ b/dev-util/glade/glade-3.16.0.ebuild
19 @@ -0,0 +1,86 @@
20 +# Copyright 1999-2013 Gentoo Foundation
21 +# Distributed under the terms of the GNU General Public License v2
22 +# $Header: $
23 +
24 +EAPI="5"
25 +GCONF_DEBUG="yes"
26 +GNOME2_LA_PUNT="yes"
27 +PYTHON_COMPAT=( python{2_6,2_7} )
28 +
29 +inherit eutils gnome2 python-single-r1 versionator virtualx
30 +
31 +DESCRIPTION="A user interface designer for GTK+ and GNOME"
32 +HOMEPAGE="http://glade.gnome.org/"
33 +
34 +LICENSE="GPL-2+ FDL-1.1+"
35 +SLOT="3.10/4" # subslot = suffix of libgladeui-2.so
36 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
37 +IUSE="+introspection python"
38 +
39 +RDEPEND="
40 + dev-libs/atk[introspection?]
41 + >=dev-libs/glib-2.32:2
42 + >=dev-libs/libxml2-2.4.0:2
43 + x11-libs/cairo:=
44 + x11-libs/gdk-pixbuf:2[introspection?]
45 + >=x11-libs/gtk+-3.10:3[introspection?]
46 + x11-libs/pango[introspection?]
47 + introspection? ( >=dev-libs/gobject-introspection-1.32 )
48 + python? (
49 + ${PYTHON_DEPS}
50 + >=dev-python/pygobject-3.8:3[${PYTHON_USEDEP}] )
51 +"
52 +DEPEND="${RDEPEND}
53 + app-text/docbook-xml-dtd:4.1.2
54 + dev-libs/libxslt
55 + >=dev-util/gtk-doc-am-1.13
56 + >=dev-util/intltool-0.41.0
57 + virtual/pkgconfig
58 +"
59 +# eautoreconf requires:
60 +# dev-libs/gobject-introspection-common
61 +# gnome-base/gnome-common
62 +
63 +pkg_setup() {
64 + use python && python-single-r1_pkg_setup
65 +}
66 +
67 +src_prepare() {
68 + # To avoid file collison with other slots, rename help module.
69 + # Prevent the UI from loading glade:3's gladeui devhelp documentation.
70 + epatch "${FILESDIR}/${PN}-3.14.1-doc-version.patch"
71 +
72 + gnome2_src_prepare
73 +}
74 +
75 +src_configure() {
76 + gnome2_src_configure \
77 + --disable-static \
78 + --enable-gladeui \
79 + --enable-libtool-lock \
80 + $(use_enable introspection) \
81 + $(use_enable python) \
82 + ITSTOOL=$(type -P true)
83 +}
84 +
85 +src_test() {
86 + Xemake check
87 +}
88 +
89 +src_install() {
90 + # modify Name in .desktop file to avoid confusion with other slots
91 + sed -e 's:^\(Name.*=Glade\):\1 '$(get_version_component_range 1-2): \
92 + -i data/glade.desktop || die "sed of data/glade.desktop failed"
93 + # modify name in .devhelp2 file to avoid shadowing with glade:3 docs
94 + sed -e 's:name="gladeui":name="gladeui-2":' \
95 + -i doc/html/gladeui.devhelp2 || die "sed of gladeui.devhelp2 failed"
96 + gnome2_src_install
97 +}
98 +
99 +pkg_postinst() {
100 + gnome2_pkg_postinst
101 + if ! has_version dev-util/devhelp ; then
102 + elog "You may want to install dev-util/devhelp for integration API"
103 + elog "documentation support."
104 + fi
105 +}