Merge lp:~bregma/libgrip/fix-gir-typelib-path into lp:libgrip

Proposed by Stephen M. Webb
Status: Superseded
Proposed branch: lp:~bregma/libgrip/fix-gir-typelib-path
Merge into: lp:libgrip
Diff against target: 242 lines (+57/-46)
8 files modified
INSTALL (+12/-7)
bindings/python/Makefile.am (+2/-5)
configure.ac (+15/-0)
debian/changelog (+7/-0)
debian/control (+13/-31)
debian/gir1.2-grip.install (+2/-1)
debian/python-grip.install (+0/-1)
debian/rules (+6/-1)
To merge this branch: bzr merge lp:~bregma/libgrip/fix-gir-typelib-path
Reviewer Review Type Date Requested Status
Open Input Framework Team Pending
Review via email: mp+223983@code.launchpad.net

This proposal has been superseded by a proposal from 2014-06-20.

Commit message

fixed GI typelib path

Description of the change

Fixed the typelib path: GObject introspection does not (yet) support multi-arch.

To post a comment you must log in.
95. By Stephen M. Webb

remerge lp-1332516 branch

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'INSTALL'
2--- INSTALL 2012-11-22 22:16:54 +0000
3+++ INSTALL 2014-06-20 20:06:09 +0000
4@@ -1,8 +1,8 @@
5 Installation Instructions
6 *************************
7
8-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
9-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
10+Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
11+Inc.
12
13 Copying and distribution of this file, with or without modification,
14 are permitted in any medium without royalty provided the copyright
15@@ -12,8 +12,8 @@
16 Basic Installation
17 ==================
18
19- Briefly, the shell commands `./configure; make; make install' should
20-configure, build, and install this package. The following
21+ Briefly, the shell command `./configure && make && make install'
22+should configure, build, and install this package. The following
23 more-detailed instructions are generic; see the `README' file for
24 instructions specific to this package. Some packages provide this
25 `INSTALL' file but do not implement all of the features documented
26@@ -226,6 +226,11 @@
27
28 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
29
30+ HP-UX `make' updates targets which have the same time stamps as
31+their prerequisites, which makes it generally unusable when shipped
32+generated files such as `configure' are involved. Use GNU `make'
33+instead.
34+
35 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
36 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
37 a workaround. If GNU CC is not installed, it is therefore recommended
38@@ -304,9 +309,10 @@
39 overridden in the site shell script).
40
41 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
42-an Autoconf bug. Until the bug is fixed you can use this workaround:
43+an Autoconf limitation. Until the limitation is lifted, you can use
44+this workaround:
45
46- CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
47+ CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
48
49 `configure' Invocation
50 ======================
51@@ -362,4 +368,3 @@
52
53 `configure' also accepts some other, not widely useful, options. Run
54 `configure --help' for more details.
55-
56
57=== modified file 'bindings/python/Makefile.am'
58--- bindings/python/Makefile.am 2011-01-24 18:50:54 +0000
59+++ bindings/python/Makefile.am 2014-06-20 20:06:09 +0000
60@@ -1,8 +1,5 @@
61-PLATFORM_VERSION = 2.0
62-
63-pkgpyexecdir = $(pyexecdir)/gi
64-
65-pygioverridesdir = $(pkgpyexecdir)/overrides
66+pygioverridesdir = $(PYGI_OVERRIDES_DIR)
67+
68 pygioverrides_PYTHON = \
69 Grip.py
70
71
72=== modified file 'configure.ac'
73--- configure.ac 2013-06-27 13:00:08 +0000
74+++ configure.ac 2014-06-20 20:06:09 +0000
75@@ -28,6 +28,21 @@
76 AM_MAINTAINER_MODE
77
78 AM_PATH_PYTHON
79+AC_ARG_WITH([pygi_overrides_dir],
80+ AC_HELP_STRING([--with-pygi-overrides-dir], [Path to pygobject overrides directory]))
81+AC_MSG_CHECKING(for pygobject overrides directory)
82+if test "x$with_pygi_overrides_dir" = "x" ; then
83+ overrides_dir="`$PYTHON -c 'import gi; print(gi._overridesdir)' 2>/dev/null`"
84+ # fallback if the previous failed
85+ if test "x$overrides_dir" = "x" ; then
86+ overrides_dir="${pyexecdir}/gi/overrides"
87+ fi
88+else
89+ overrides_dir="$with_pygi_overrides_dir"
90+fi
91+PYGI_OVERRIDES_DIR="$overrides_dir"
92+AC_SUBST(PYGI_OVERRIDES_DIR)
93+AC_MSG_RESULT($PYGI_OVERRIDES_DIR)
94
95 GRIP_MAJOR_VERSION=grip_major_version
96 GRIP_MINOR_VERSION=grip_minor_version
97
98=== modified file 'debian/changelog'
99--- debian/changelog 2014-03-03 20:07:30 +0000
100+++ debian/changelog 2014-06-20 20:06:09 +0000
101@@ -1,3 +1,10 @@
102+libgrip (0.3.7+14.04.20140303-0ubuntu2) UNRELEASED; urgency=medium
103+
104+ * removed multi-arch from GIR typelib path (lp: #1332603)
105+ * add Python 3 support through GObject introspection (lp: #1332516)
106+
107+ -- Stephen M. Webb <stephen.webb@bregmasoft.ca> Fri, 20 Jun 2014 12:22:52 -0400
108+
109 libgrip (0.3.7+14.04.20140303-0ubuntu1) trusty; urgency=low
110
111 [ Stephen M. Webb ]
112
113=== modified file 'debian/control'
114--- debian/control 2014-03-03 14:58:42 +0000
115+++ debian/control 2014-06-20 20:06:09 +0000
116@@ -5,33 +5,31 @@
117 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
118 Build-Depends: debhelper (>= 9),
119 dh-autoreconf,
120- gnome-common,
121- gtk-doc-tools,
122- python,
123- python-dev,
124 gir1.2-freedesktop,
125 gir1.2-gdkpixbuf-2.0,
126 gir1.2-glib-2.0,
127 gir1.2-gtk-3.0,
128 gir1.2-pango-1.0,
129+ gnome-common,
130 gobject-introspection,
131+ gtk-doc-tools,
132+ libgeis-dev,
133 libgirepository1.0-dev,
134 libglib2.0-dev (>=2.28.6),
135 libgtk-3-dev (>= 3.0.8-0ubuntu1),
136- libgeis-dev,
137+ python,
138+ python-gi,
139+ python3,
140+ python3-gi
141 Standards-Version: 3.9.5
142 Homepage: https://launchpad.net/libgrip
143-# If you aren't a member of ~oif-team but need to upload
144-# packaging changes, just go ahead. ~oif-team will notice
145-# and sync up the code again.
146 Vcs-Bzr: https://code.launchpad.net/~oif-team/libgrip/trunk
147 Vcs-Browser: https://bazaar.launchpad.net/~oif-team/libgrip/trunk/files
148
149 Package: libgrip0
150 Architecture: any
151-Pre-Depends: multiarch-support,
152-Depends: ${misc:Depends},
153- ${shlibs:Depends},
154+Pre-Depends: multiarch-support
155+Depends: ${misc:Depends}, ${shlibs:Depends}
156 Description: multitouch gestures for GTK+ apps
157 Libgrip is an extenion library that provides widget-level programmable gesture
158 recognition for GTK+ applications natively within the toolkit. Widgets
159@@ -41,13 +39,13 @@
160 Package: libgrip-dev
161 Section: libdevel
162 Architecture: any
163-Depends: libglib2.0-dev (>=2.28.6),
164+Depends: libgeis-dev,
165+ libglib2.0-dev (>=2.28.6),
166 libgrip0 (= ${binary:Version}),
167 libgtk-3-dev (>= 3.0.8),
168- libgeis-dev,
169 pkg-config,
170 ${misc:Depends},
171- ${shlibs:Depends},
172+ ${shlibs:Depends}
173 Description: multitouch gestures for GTK+ apps -- development files
174 Libgrip is an extenion library that provides widget-level programmable gesture
175 recognition for GTK+ applications natively within the toolkit. Widgets
176@@ -59,8 +57,7 @@
177
178 Package: gir1.2-grip
179 Architecture: any
180-Depends: ${gir:Depends},
181- ${misc:Depends},
182+Depends: ${gir:Depends}, ${misc:Depends}
183 Description: typelib file for libgrip
184 Libgrip is an extenion library that provides widget-level programmable gesture
185 recognition for GTK+ applications natively within the toolkit. Widgets
186@@ -69,18 +66,3 @@
187 .
188 This package can be used by other packages using the GIRepository format to
189 generate dynamic bindings for libgrip
190-
191-Package: python-grip
192-Section: python
193-XB-Python-Version: ${python:Versions}
194-Architecture: all
195-Depends: ${misc:Depends},
196- ${python:Depends},
197-Description: python bindings for libgrip
198- Libgrip is an extenion library that provides widget-level programmable gesture
199- recognition for GTK+ applications natively within the toolkit. Widgets
200- subscribe to particular gestures and provide programmed functionality on
201- receipt of corresponding gesture events.
202- .
203- This package provides Python bindings so that you can use libgrip from
204- a Python program.
205
206=== modified file 'debian/gir1.2-grip.install'
207--- debian/gir1.2-grip.install 2012-11-23 00:39:06 +0000
208+++ debian/gir1.2-grip.install 2014-06-20 20:06:09 +0000
209@@ -1,1 +1,2 @@
210-debian/tmp/usr/lib/*/girepository-1.0
211+usr/lib/*/girepository-1.0 usr/lib
212+usr/lib/python*/*-packages/gi/overrides/*.py
213
214=== removed file 'debian/python-grip.install'
215--- debian/python-grip.install 2011-09-20 02:27:41 +0000
216+++ debian/python-grip.install 1970-01-01 00:00:00 +0000
217@@ -1,1 +0,0 @@
218-usr/lib/python*/*
219
220=== modified file 'debian/rules'
221--- debian/rules 2014-01-07 00:19:19 +0000
222+++ debian/rules 2014-06-20 20:06:09 +0000
223@@ -1,7 +1,7 @@
224 #!/usr/bin/make -f
225
226 %:
227- dh $@ --with python2,autoreconf
228+ dh $@ --with python2,python3,autoreconf
229
230 override_dh_autoreconf:
231 NOCONFIGURE=1 dh_autoreconf ./autogen.sh
232@@ -10,5 +10,10 @@
233 dh_auto_configure -- --enable-gtk-doc --disable-silent-rules
234
235 override_dh_install:
236+ PYTHON=python3 ./configure --prefix=/usr
237+ dh_auto_install -- -C bindings/python install
238 dh_install --fail-missing -X.a -X.la -X.pyc -X.pyo
239
240+override_dh_python3:
241+ dh_python3 debian/gir1.2-grip/usr/lib/python3
242+

Subscribers

People subscribed via source and target branches