diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-06-18 17:27:20 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-06-19 20:41:26 +0200 |
commit | ce196cc366bf9e5b96463277a14c39b6de33c583 (patch) | |
tree | 27fa471acdf653f141c9b3902079110db0bdec23 /meta-oe | |
parent | 292abf0fd33d3ee0bff3c72e7d7edab026bdeda5 (diff) | |
download | meta-openembedded-ce196cc366bf9e5b96463277a14c39b6de33c583.tar.gz |
midori: add 0.3.6
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-connectivity/midori/midori/speeddial.patch | 35 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/midori/midori_0.3.6.bb | 11 |
2 files changed, 46 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/midori/midori/speeddial.patch b/meta-oe/recipes-connectivity/midori/midori/speeddial.patch new file mode 100644 index 000000000..ba436a2b6 --- /dev/null +++ b/meta-oe/recipes-connectivity/midori/midori/speeddial.patch | |||
@@ -0,0 +1,35 @@ | |||
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_0.3.6.bb b/meta-oe/recipes-connectivity/midori/midori_0.3.6.bb new file mode 100644 index 000000000..33fa5e69d --- /dev/null +++ b/meta-oe/recipes-connectivity/midori/midori_0.3.6.bb | |||
@@ -0,0 +1,11 @@ | |||
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 | |||