1 |
tetromino 12/02/04 22:38:36 |
2 |
|
3 |
Added: vala-0.14.2-cogl-pango-1.0.patch |
4 |
Log: |
5 |
Add cogl-pango vala bindings from 0.15.x, required for vala support in libchamplain-0.12.x (bug #402013). |
6 |
|
7 |
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-lang/vala/files/vala-0.14.2-cogl-pango-1.0.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/vala/files/vala-0.14.2-cogl-pango-1.0.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/vala/files/vala-0.14.2-cogl-pango-1.0.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: vala-0.14.2-cogl-pango-1.0.patch |
16 |
=================================================================== |
17 |
From 7af6a003e386739a37b356ab073772ae38b1f9c6 Mon Sep 17 00:00:00 2001 |
18 |
From: Evan Nemerson <evan@×××××××××××.com> |
19 |
Date: Thu, 12 Jan 2012 15:08:08 -0800 |
20 |
Subject: [PATCH] Add cogl-pango-1.0 bindings |
21 |
|
22 |
--- |
23 |
vapi/Makefile.am | 7 ++++++- |
24 |
vapi/cogl-pango-1.0.deps | 2 ++ |
25 |
vapi/cogl-pango-1.0.vapi | 30 ++++++++++++++++++++++++++++++ |
26 |
3 files changed, 38 insertions(+), 1 deletions(-) |
27 |
create mode 100644 vapi/cogl-pango-1.0.deps |
28 |
create mode 100644 vapi/cogl-pango-1.0.vapi |
29 |
|
30 |
diff --git a/vapi/Makefile.am b/vapi/Makefile.am |
31 |
index c9a7aad..cd3b9e1 100644 |
32 |
--- a/vapi/Makefile.am |
33 |
+++ b/vapi/Makefile.am |
34 |
@@ -28,6 +28,8 @@ dist_vapi_DATA = \ |
35 |
clutter-json-1.0.vapi \ |
36 |
cogl-1.0.vapi \ |
37 |
cogl-1.0.deps \ |
38 |
+ cogl-pango-1.0.vapi \ |
39 |
+ cogl-pango-1.0.deps \ |
40 |
curses.vapi \ |
41 |
dbus-glib-1.vapi \ |
42 |
enchant.vapi \ |
43 |
@@ -246,7 +248,7 @@ dist_noinst_DATA = \ |
44 |
config.vapi \ |
45 |
$(NULL) |
46 |
|
47 |
-BINDINGS = atk clutter-1.0 clutter-gtk-0.10 clutter-gtk-1.0 cogl-1.0 gconf-2.0 gdk-2.0 gdk-3.0 gdk-pixbuf-2.0 gdk-x11-2.0 gdk-x11-3.0 gdl-1.0 gdu gdu-gtk gedit-2.20 gedit gio-2.0 gio-unix-2.0 gnome-desktop-2.0 gnome-keyring-1 gnome-vfs-2.0 goocanvas gstreamer-0.10 gstreamer-app-0.10 gstreamer-audio-0.10 gstreamer-base-0.10 gstreamer-cdda-0.10 gstreamer-check-0.10 gstreamer-controller-0.10 gstreamer-dataprotocol-0.10 gstreamer-fft-0.10 gstreamer-interfaces-0.10 gstreamer-net-0.10 gstreamer-netbuffer-0.10 gstreamer-pbutils-0.10 gstreamer-riff-0.10 gstreamer-rtp-0.10 gstreamer-rtsp-0.10 gstreamer-sdp-0.10 gstreamer-tag-0.10 gstreamer-video-0.10 gtk+-2.0 gtk+-3.0 gtksourceview-2.0 gtksourceview-3.0 gudev-1.0 hildon-1 hildon-fm-2 json-glib-1.0 libepc-1.0 libgda-4.0 libgda-report-4.0 libgdata libglade-2.0 libgnome-2.0 libgnome-menu libgnomeui-2.0 libgsf-1 libnotify liboobs-1 libpeas-1.0 librsvg-2.0 libsexy libsoup-2.2 libsoup-2.4 libwnck-1.0 loudmouth-1.0 mx-1.0 packagekit-glib2 p |
48 |
ango pangocairo poppler-glib purple rest-0.6 rest-extras-0.6 rest-0.7 tracker-indexer-module-1.0 twitter-glib-1.0 unique-1.0 vte vte-2.90 webkit-1.0 |
49 |
+BINDINGS = atk clutter-1.0 clutter-gtk-0.10 clutter-gtk-1.0 cogl-1.0 cogl-pango-1.0 gconf-2.0 gdk-2.0 gdk-3.0 gdk-pixbuf-2.0 gdk-x11-2.0 gdk-x11-3.0 gdl-1.0 gdu gdu-gtk gedit-2.20 gedit gio-2.0 gio-unix-2.0 gnome-desktop-2.0 gnome-keyring-1 gnome-vfs-2.0 goocanvas gstreamer-0.10 gstreamer-app-0.10 gstreamer-audio-0.10 gstreamer-base-0.10 gstreamer-cdda-0.10 gstreamer-check-0.10 gstreamer-controller-0.10 gstreamer-dataprotocol-0.10 gstreamer-fft-0.10 gstreamer-interfaces-0.10 gstreamer-net-0.10 gstreamer-netbuffer-0.10 gstreamer-pbutils-0.10 gstreamer-riff-0.10 gstreamer-rtp-0.10 gstreamer-rtsp-0.10 gstreamer-sdp-0.10 gstreamer-tag-0.10 gstreamer-video-0.10 gtk+-2.0 gtk+-3.0 gtksourceview-2.0 gtksourceview-3.0 gudev-1.0 hildon-1 hildon-fm-2 json-glib-1.0 libepc-1.0 libgda-4.0 libgda-report-4.0 libgdata libglade-2.0 libgnome-2.0 libgnome-menu libgnomeui-2.0 libgsf-1 libnotify liboobs-1 libpeas-1.0 librsvg-2.0 libsexy libsoup-2.2 libsoup-2.4 libwnck-1.0 loudmouth-1.0 mx-1.0 pac |
50 |
kagekit-glib2 pango pangocairo poppler-glib purple rest-0.6 rest-extras-0.6 rest-0.7 tracker-indexer-module-1.0 twitter-glib-1.0 unique-1.0 vte vte-2.90 webkit-1.0 |
51 |
|
52 |
VAPIGEN = $(top_builddir)/vapigen/vapigen |
53 |
VAPIGENFLAGS = --vapidir $(srcdir) |
54 |
@@ -275,6 +277,9 @@ clutter-gtk-1.0: |
55 |
cogl-1.0: |
56 |
$(GENVAPI) --library $(srcdir)/cogl-1.0 $(PACKAGESDIR)/cogl-1.0/cogl-1.0-custom.vala $(PACKAGESDIR)/cogl-1.0/cogl-1.0.gi |
57 |
|
58 |
+cogl-pango-1.0: |
59 |
+ $(GENVAPI) --library $(srcdir)/cogl-pango-1.0 --metadatadir $(METADATADIR) --pkg cogl-1.0 --pkg pango $(GIRDIR)/CoglPango-1.0.gir |
60 |
+ |
61 |
gconf-2.0: |
62 |
$(GENVAPI) --library $(srcdir)/gconf-2.0 $(PACKAGESDIR)/gconf-2.0/gconf-2.0.gi |
63 |
|
64 |
diff --git a/vapi/cogl-pango-1.0.deps b/vapi/cogl-pango-1.0.deps |
65 |
new file mode 100644 |
66 |
index 0000000..ebc27e5 |
67 |
--- /dev/null |
68 |
+++ b/vapi/cogl-pango-1.0.deps |
69 |
@@ -0,0 +1,2 @@ |
70 |
+cogl-1.0 |
71 |
+pango |
72 |
diff --git a/vapi/cogl-pango-1.0.vapi b/vapi/cogl-pango-1.0.vapi |
73 |
new file mode 100644 |
74 |
index 0000000..4b2599c |
75 |
--- /dev/null |
76 |
+++ b/vapi/cogl-pango-1.0.vapi |
77 |
@@ -0,0 +1,30 @@ |
78 |
+/* cogl-pango-1.0.vapi generated by vapigen, do not modify. */ |
79 |
+ |
80 |
+[CCode (cprefix = "CoglPango", gir_namespace = "CoglPango", gir_version = "1.0", lower_case_cprefix = "cogl_pango_")] |
81 |
+namespace CoglPango { |
82 |
+ [CCode (cheader_filename = "cogl-pango/cogl-pango.h")] |
83 |
+ public class FontMap : Pango.FontMap { |
84 |
+ [CCode (has_construct_function = false)] |
85 |
+ protected FontMap (); |
86 |
+ public static void clear_glyph_cache (Pango.CairoFontMap fm); |
87 |
+ public static Pango.Context create_context (Pango.CairoFontMap fm); |
88 |
+ public static unowned Pango.Renderer get_renderer (Pango.CairoFontMap fm); |
89 |
+ public static bool get_use_mipmapping (Pango.CairoFontMap fm); |
90 |
+ public static Pango.FontMap @new (); |
91 |
+ public static void set_resolution (Pango.CairoFontMap font_map, double dpi); |
92 |
+ public static void set_use_mipmapping (Pango.CairoFontMap fm, bool value); |
93 |
+ } |
94 |
+ [CCode (cheader_filename = "cogl-pango/cogl-pango.h", type_id = "cogl_pango_renderer_get_type ()")] |
95 |
+ public class Renderer : Pango.Renderer { |
96 |
+ [CCode (has_construct_function = false)] |
97 |
+ protected Renderer (); |
98 |
+ } |
99 |
+ [CCode (cheader_filename = "cogl-pango/cogl-pango.h")] |
100 |
+ public static void ensure_glyph_cache_for_layout (Pango.Layout layout); |
101 |
+ [CCode (cheader_filename = "cogl-pango/cogl-pango.h")] |
102 |
+ public static void render_layout (Pango.Layout layout, int x, int y, Cogl.Color color, int flags); |
103 |
+ [CCode (cheader_filename = "cogl-pango/cogl-pango.h")] |
104 |
+ public static void render_layout_line (Pango.LayoutLine line, int x, int y, Cogl.Color color); |
105 |
+ [CCode (cheader_filename = "cogl-pango/cogl-pango.h")] |
106 |
+ public static void render_layout_subpixel (Pango.Layout layout, int x, int y, Cogl.Color color, int flags); |
107 |
+} |
108 |
-- |
109 |
1.7.8.4 |