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/, dev-util/glade/files/
Date: Tue, 30 Oct 2012 22:26:47
Message-Id: 1351635907.59137486bd3d7f02c4a2c94a27f7eaa043483dba.eva@gentoo
1 commit: 59137486bd3d7f02c4a2c94a27f7eaa043483dba
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 30 22:25:07 2012 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 30 22:25:07 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=59137486
7
8 dev-util/glade: 3.12.1 → 3.14.1
9
10 ---
11 .../glade/files/glade-3.14.1-doc-version.patch | 29 +++++++++
12 dev-util/glade/glade-3.14.1.ebuild | 64 ++++++++++++++++++++
13 dev-util/glade/metadata.xml | 9 +++
14 3 files changed, 102 insertions(+), 0 deletions(-)
15
16 diff --git a/dev-util/glade/files/glade-3.14.1-doc-version.patch b/dev-util/glade/files/glade-3.14.1-doc-version.patch
17 new file mode 100644
18 index 0000000..39c9641
19 --- /dev/null
20 +++ b/dev-util/glade/files/glade-3.14.1-doc-version.patch
21 @@ -0,0 +1,29 @@
22 +From e3e91245e730f0532e913fde910054f464085241 Mon Sep 17 00:00:00 2001
23 +From: Alexandre Rostovtsev <tetromino@g.o>
24 +Date: Sun, 6 May 2012 22:40:47 -0400
25 +Subject: [PATCH] Version glade documentation
26 +
27 +Rename gnome help files to prevent collision with other versions.
28 +
29 +Avoid loading glade-3.8's devhelp files.
30 +---
31 + help/Makefile.am | 5 ++++-
32 + src/glade-window.c | 2 +-
33 + 2 files changed, 5 insertions(+), 2 deletions(-)
34 +
35 +diff --git a/src/glade-window.c b/src/glade-window.c
36 +index 89a4549..4eb8be5 100644
37 +--- a/src/glade-window.c
38 ++++ b/src/glade-window.c
39 +@@ -2041,7 +2041,7 @@ show_developer_manual_cb (GtkAction * action, GladeWindow * window)
40 + {
41 + if (glade_util_have_devhelp ())
42 + {
43 +- glade_util_search_devhelp ("gladeui", NULL, NULL);
44 ++ glade_util_search_devhelp ("gladeui-2", NULL, NULL);
45 + return;
46 + }
47 +
48 +--
49 +1.7.8.6
50 +
51
52 diff --git a/dev-util/glade/glade-3.14.1.ebuild b/dev-util/glade/glade-3.14.1.ebuild
53 new file mode 100644
54 index 0000000..f67cf11
55 --- /dev/null
56 +++ b/dev-util/glade/glade-3.14.1.ebuild
57 @@ -0,0 +1,64 @@
58 +# Copyright 1999-2012 Gentoo Foundation
59 +# Distributed under the terms of the GNU General Public License v2
60 +# $Header: /var/cvsroot/gentoo-x86/dev-util/glade/glade-3.12.2.ebuild,v 1.1 2012/09/22 10:06:06 pacho Exp $
61 +
62 +EAPI="4"
63 +GCONF_DEBUG="yes"
64 +GNOME2_LA_PUNT="yes"
65 +
66 +inherit eutils gnome2 versionator
67 +
68 +DESCRIPTION="A User Interface Designer"
69 +HOMEPAGE="http://glade.gnome.org/"
70 +
71 +LICENSE="GPL-2"
72 +SLOT="3.10"
73 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
74 +IUSE="+introspection python"
75 +
76 +RDEPEND="dev-libs/atk[introspection?]
77 + >=dev-libs/glib-2.32:2
78 + >=dev-libs/libxml2-2.4.0:2
79 + x11-libs/cairo
80 + x11-libs/gdk-pixbuf:2[introspection?]
81 + >=x11-libs/gtk+-3.6:3[introspection?]
82 + x11-libs/pango[introspection?]
83 + introspection? ( >=dev-libs/gobject-introspection-0.10.1 )
84 + python? ( >=dev-python/pygobject-2.90.4:3 )
85 +"
86 +DEPEND="${RDEPEND}
87 + app-text/docbook-xml-dtd:4.1.2
88 + app-text/yelp-tools
89 + >=dev-util/gtk-doc-am-1.13
90 + >=dev-util/intltool-0.41.0
91 + >=sys-devel/gettext-0.17
92 + virtual/pkgconfig
93 +"
94 +# eautoreconf requires:
95 +# dev-libs/gobject-introspection-common
96 +# gnome-base/gnome-common
97 +
98 +src_prepare() {
99 + DOCS="AUTHORS ChangeLog NEWS README TODO"
100 + G2CONF="${G2CONF}
101 + --disable-static
102 + --enable-libtool-lock
103 + $(use_enable introspection)
104 + $(use_enable python)"
105 +
106 + # To avoid file collison with other slots, rename help module.
107 + # Prevent the UI from loading glade:3's gladeui devhelp documentation.
108 + epatch "${FILESDIR}/${PN}-3.14.1-doc-version.patch"
109 +
110 + gnome2_src_prepare
111 +}
112 +
113 +src_install() {
114 + # modify Name in .desktop file to avoid confusion with other slots
115 + sed -e 's:^\(Name.*=Glade\):\1 '$(get_version_component_range 1-2): \
116 + -i data/glade.desktop || die "sed of data/glade.desktop failed"
117 + # modify name in .devhelp2 file to avoid shadowing with glade:3 docs
118 + sed -e 's:name="gladeui":name="gladeui-2":' \
119 + -i doc/html/gladeui.devhelp2 || die "sed of gladeui.devhelp2 failed"
120 + gnome2_src_install
121 +}
122
123 diff --git a/dev-util/glade/metadata.xml b/dev-util/glade/metadata.xml
124 new file mode 100644
125 index 0000000..e86947c
126 --- /dev/null
127 +++ b/dev-util/glade/metadata.xml
128 @@ -0,0 +1,9 @@
129 +<?xml version="1.0" encoding="UTF-8"?>
130 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
131 +<pkgmetadata>
132 + <herd>gnome</herd>
133 + <use>
134 + <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg>
135 + for introspection</flag>
136 + </use>
137 +</pkgmetadata>