diff options
author | Andreas Müller <schnitzeltony@gmx.de> | 2011-10-01 04:17:10 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-10-01 04:37:22 +0200 |
commit | fcbb1d26f1c0fb4a92601731f5bd0bc71ff6789c (patch) | |
tree | d46d696026a0984943a49989ca424c7b7a0d150d /meta-oe/recipes-connectivity/midori | |
parent | 6786f3118988e625b7ad8d7758c94e302789693f (diff) | |
download | meta-openembedded-fcbb1d26f1c0fb4a92601731f5bd0bc71ff6789c.tar.gz |
midori: update to 0.4.0 / buildable by upstream patch & LDFLAGS_append / minor cleanup
* LDFLAGS_append was suggested by Bernhard Guillon [1]
* run tested on overo
[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-September/034748.html
Signed-off-by: Andreas Müller <schnitzeltony@gmx.de>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-connectivity/midori')
-rw-r--r-- | meta-oe/recipes-connectivity/midori/midori.inc | 5 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/midori/midori/speeddial.patch | 35 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/midori/midori/use_dom_api_to_get_selected_text.patch | 60 | ||||
-rwxr-xr-x | meta-oe/recipes-connectivity/midori/midori/waf | bin | 75695 -> 0 bytes | |||
-rw-r--r-- | meta-oe/recipes-connectivity/midori/midori_0.3.6.bb | 11 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/midori/midori_0.4.0.bb | 11 |
6 files changed, 73 insertions, 49 deletions
diff --git a/meta-oe/recipes-connectivity/midori/midori.inc b/meta-oe/recipes-connectivity/midori/midori.inc index 2691a0d23..60fd03e82 100644 --- a/meta-oe/recipes-connectivity/midori/midori.inc +++ b/meta-oe/recipes-connectivity/midori/midori.inc | |||
@@ -6,9 +6,6 @@ DEPENDS = "webkit-gtk libsoup-2.4 libsexy openssl vala-native python-native pyth | |||
6 | 6 | ||
7 | inherit gtk-icon-cache pkgconfig | 7 | inherit gtk-icon-cache pkgconfig |
8 | 8 | ||
9 | SRC_URI = "http://archive.xfce.org/src/apps/midori/0.2/midori-${PV}.tar.bz2;name=midori \ | ||
10 | " | ||
11 | |||
12 | do_configure() { | 9 | do_configure() { |
13 | sed -i -e 's:, shell=False::g' -e s:/usr/X11R6/include::g -e s:/usr/X11R6/lib::g wscript | 10 | sed -i -e 's:, shell=False::g' -e s:/usr/X11R6/include::g -e s:/usr/X11R6/lib::g wscript |
14 | ./configure \ | 11 | ./configure \ |
@@ -27,6 +24,8 @@ do_configure() { | |||
27 | --disable-hildon \ | 24 | --disable-hildon \ |
28 | } | 25 | } |
29 | 26 | ||
27 | LDFLAGS_append = " -ljavascriptcoregtk-1.0 " | ||
28 | |||
30 | do_install() { | 29 | do_install() { |
31 | oe_runmake DESTDIR=${D} install | 30 | oe_runmake DESTDIR=${D} install |
32 | } | 31 | } |
diff --git a/meta-oe/recipes-connectivity/midori/midori/speeddial.patch b/meta-oe/recipes-connectivity/midori/midori/speeddial.patch deleted file mode 100644 index ba436a2b6..000000000 --- a/meta-oe/recipes-connectivity/midori/midori/speeddial.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From 7f549b89a9e9939a7888d9e4ede628ef9c80df80 Mon Sep 17 00:00:00 2001 | ||
2 | From: Christian Dywan <christian@twotoasts.de> | ||
3 | Date: Fri, 20 May 2011 19:58:35 +0000 | ||
4 | Subject: Handle missing speedial.json and missing shortcuts array | ||
5 | |||
6 | --- | ||
7 | diff --git a/midori/main.c b/midori/main.c | ||
8 | index 007b03f..c6b8568 100644 | ||
9 | --- a/midori/main.c | ||
10 | +++ b/midori/main.c | ||
11 | @@ -1605,7 +1605,12 @@ speeddial_new_from_file (const gchar* config, | ||
12 | } | ||
13 | |||
14 | katze_assign (config_file, g_build_filename (config, "speeddial.json", NULL)); | ||
15 | - g_file_get_contents (config_file, &json_content, &json_length, NULL); | ||
16 | + if (!g_file_get_contents (config_file, &json_content, &json_length, NULL)) | ||
17 | + { | ||
18 | + katze_assign (json_content, g_strdup ("'{}'")); | ||
19 | + json_length = strlen ("'{}'"); | ||
20 | + } | ||
21 | + | ||
22 | script = g_string_sized_new (json_length); | ||
23 | g_string_append (script, "var json = JSON.parse ("); | ||
24 | g_string_append_len (script, json_content, json_length); | ||
25 | @@ -1619,7 +1624,7 @@ speeddial_new_from_file (const gchar* config, | ||
26 | " + 'title=' + tile['title'] + '\\n\\n';" | ||
27 | "} " | ||
28 | "var columns = json['width'] ? json['width'] : 3;" | ||
29 | - "var rows = json['shortcuts'].length / columns;" | ||
30 | + "var rows = json['shortcuts'] ? json['shortcuts'].length / columns : 0;" | ||
31 | "keyfile += '[settings]\\n'" | ||
32 | " + 'columns=' + columns + '\\n'" | ||
33 | " + 'rows=' + (rows > 3 ? rows : 3) + '\\n\\n';" | ||
34 | -- | ||
35 | cgit | ||
diff --git a/meta-oe/recipes-connectivity/midori/midori/use_dom_api_to_get_selected_text.patch b/meta-oe/recipes-connectivity/midori/midori/use_dom_api_to_get_selected_text.patch new file mode 100644 index 000000000..c7bb56690 --- /dev/null +++ b/meta-oe/recipes-connectivity/midori/midori/use_dom_api_to_get_selected_text.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | From 648d869e4ff69f121da97484a0fd553b005ca751 Mon Sep 17 00:00:00 2001 | ||
2 | From: Christian Dywan <christian@twotoasts.de> | ||
3 | Date: Wed, 21 Sep 2011 21:50:51 +0000 | ||
4 | Subject: Use DOM API to get selected text in WebKitGTK+ 1.5.1 | ||
5 | |||
6 | Fixes: https://bugs.launchpad.net/midori/+bug/799603 | ||
7 | --- | ||
8 | diff --git a/midori/midori-view.c b/midori/midori-view.c | ||
9 | index 0d7a96e..e426e7f 100644 | ||
10 | --- a/midori/midori-view.c | ||
11 | +++ b/midori/midori-view.c | ||
12 | @@ -39,9 +39,11 @@ | ||
13 | #include <sys/utsname.h> | ||
14 | #endif | ||
15 | |||
16 | +#if !WEBKIT_CHECK_VERSION (1, 5, 1) | ||
17 | /* This is unstable API, so we need to declare it */ | ||
18 | gchar* | ||
19 | webkit_web_view_get_selected_text (WebKitWebView* web_view); | ||
20 | +#endif | ||
21 | |||
22 | static void | ||
23 | midori_view_construct_web_view (MidoriView* view); | ||
24 | @@ -4167,10 +4169,33 @@ midori_view_get_link_uri (MidoriView* view) | ||
25 | gboolean | ||
26 | midori_view_has_selection (MidoriView* view) | ||
27 | { | ||
28 | +#if WEBKIT_CHECK_VERSION (1, 5, 1) | ||
29 | + WebKitDOMDocument* doc; | ||
30 | + WebKitDOMDOMWindow* window; | ||
31 | + WebKitDOMDOMSelection* selection; | ||
32 | + WebKitDOMRange* range; | ||
33 | +#endif | ||
34 | + | ||
35 | g_return_val_if_fail (MIDORI_IS_VIEW (view), FALSE); | ||
36 | |||
37 | + | ||
38 | +#if WEBKIT_CHECK_VERSION (1, 5, 1) | ||
39 | + doc = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (view->web_view)); | ||
40 | + window = webkit_dom_document_get_default_view (doc); | ||
41 | + selection = webkit_dom_dom_window_get_selection (window); | ||
42 | + if (selection == NULL) | ||
43 | + return FALSE; | ||
44 | + | ||
45 | + range = webkit_dom_dom_selection_get_range_at (selection, 0, NULL); | ||
46 | + if (range == NULL) | ||
47 | + return FALSE; | ||
48 | + | ||
49 | + katze_assign (view->selected_text, webkit_dom_range_get_text (range)); | ||
50 | +#else | ||
51 | katze_assign (view->selected_text, webkit_web_view_get_selected_text ( | ||
52 | WEBKIT_WEB_VIEW (view->web_view))); | ||
53 | +#endif | ||
54 | + | ||
55 | if (view->selected_text && *view->selected_text) | ||
56 | return TRUE; | ||
57 | else | ||
58 | -- | ||
59 | cgit | ||
60 | |||
diff --git a/meta-oe/recipes-connectivity/midori/midori/waf b/meta-oe/recipes-connectivity/midori/midori/waf deleted file mode 100755 index a22ad09a7..000000000 --- a/meta-oe/recipes-connectivity/midori/midori/waf +++ /dev/null | |||
Binary files differ | |||
diff --git a/meta-oe/recipes-connectivity/midori/midori_0.3.6.bb b/meta-oe/recipes-connectivity/midori/midori_0.3.6.bb deleted file mode 100644 index 2393913fb..000000000 --- a/meta-oe/recipes-connectivity/midori/midori_0.3.6.bb +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | require midori.inc | ||
2 | |||
3 | PR = "r1" | ||
4 | |||
5 | SRC_URI = "http://archive.xfce.org/src/apps/midori/0.3/midori-${PV}.tar.bz2;name=midori \ | ||
6 | file://speeddial.patch \ | ||
7 | " | ||
8 | SRC_URI[midori.md5sum] = "c4cb0686601b1c470c317de3d3f8e8fd" | ||
9 | SRC_URI[midori.sha256sum] = "5fb290ffde81e5e6b39a54d286f5732496bfda10ff65019189cc6bf8408f2410" | ||
10 | |||
11 | |||
diff --git a/meta-oe/recipes-connectivity/midori/midori_0.4.0.bb b/meta-oe/recipes-connectivity/midori/midori_0.4.0.bb new file mode 100644 index 000000000..1291fd22f --- /dev/null +++ b/meta-oe/recipes-connectivity/midori/midori_0.4.0.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require midori.inc | ||
2 | |||
3 | PR = "r0" | ||
4 | |||
5 | SRC_URI = "http://archive.xfce.org/src/apps/midori/0.4/midori-${PV}.tar.bz2;name=midori \ | ||
6 | file://use_dom_api_to_get_selected_text.patch \ | ||
7 | " | ||
8 | SRC_URI[midori.md5sum] = "14aa14ccabf3d003903f1584dab15d7a" | ||
9 | SRC_URI[midori.sha256sum] = "0ac31b008b44e08cf0536a38405a0ecc2da7c28e3d549915325dbba74f74cd75" | ||
10 | |||
11 | |||