From 03f7b7d4ea51e2b4c7c19a2fb59ad5e61279326b Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Thu, 17 Apr 2014 16:25:18 +0200 Subject: [PATCH] corebird: update to 0.7 --- srcpkgs/corebird/patches/restart_stream.patch | 13 ----- srcpkgs/corebird/patches/various_fixes.diff | 55 +++++++++++++++++++ srcpkgs/corebird/template | 6 +- 3 files changed, 58 insertions(+), 16 deletions(-) delete mode 100644 srcpkgs/corebird/patches/restart_stream.patch create mode 100644 srcpkgs/corebird/patches/various_fixes.diff diff --git a/srcpkgs/corebird/patches/restart_stream.patch b/srcpkgs/corebird/patches/restart_stream.patch deleted file mode 100644 index 79b349ed2df..00000000000 --- a/srcpkgs/corebird/patches/restart_stream.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git src/UserStream.vala src/UserStream.vala -index 3946c5d..5857d4e 100644 ---- src/UserStream.vala -+++ src/UserStream.vala -@@ -112,7 +112,7 @@ class UserStream : Object { - */ - private bool timeout_cb() { - message ("Restarting..."); --// start (); -+ start (); - return false; - } - diff --git a/srcpkgs/corebird/patches/various_fixes.diff b/srcpkgs/corebird/patches/various_fixes.diff new file mode 100644 index 00000000000..0aa823f15b9 --- /dev/null +++ b/srcpkgs/corebird/patches/various_fixes.diff @@ -0,0 +1,55 @@ +diff --git src/Corebird.vala src/Corebird.vala +index cf3c7c3..aebec51 100644 +--- src/Corebird.vala ++++ src/Corebird.vala +@@ -20,7 +20,7 @@ using Gtk; + class Corebird : Gtk.Application { + // TODO: Is the static here needed? + public static Sql.Database db; +- private static GLib.OutputStream log_stream; ++ //private static GLib.OutputStream log_stream; + public static GLib.Menu account_menu; + + const GLib.ActionEntry app_entries[] = { +@@ -237,12 +237,12 @@ class Corebird : Gtk.Application { + private void init_log_files () { // {{{ + /* First, create that log file */ + var now = new GLib.DateTime.now_local (); +- File log_file = File.new_for_path (Dirs.data ("logs/%s.txt".printf (now.to_string()))); +- try { +- log_stream = log_file.create(FileCreateFlags.REPLACE_DESTINATION); +- } catch (GLib.Error e) { +- warning ("Couldn't open log file: %s", e.message); +- } ++ //File log_file = File.new_for_path (Dirs.data ("logs/%s.txt".printf (now.to_string()))); ++ //try { ++ //log_stream = log_file.create(FileCreateFlags.REPLACE_DESTINATION); ++ //} catch (GLib.Error e) { ++ //warning ("Couldn't open log file: %s", e.message); ++ //} + /* If we do not run on the command line, we simply redirect stdout + to a log file*/ + GLib.Log.set_handler (null, LogLevelFlags.LEVEL_MESSAGE, print_to_log_file); +@@ -331,14 +331,14 @@ class Corebird : Gtk.Application { + else + out_string = "(%s) %s".printf (log_domain, msg); + +- if (log_stream != null) { +- try { +- log_stream.write_all (out_string.data, null); +- log_stream.flush (); +- } catch (GLib.Error e) { +- warning (e.message); +- } +- } ++ //if (log_stream != null) { ++ //try { ++ //log_stream.write_all (out_string.data, null); ++ //log_stream.flush (); ++ //} catch (GLib.Error e) { ++ //warning (e.message); ++ //} ++ //} + + #if !__DEV + if (flags != LogLevelFlags.LEVEL_DEBUG) diff --git a/srcpkgs/corebird/template b/srcpkgs/corebird/template index dd017050c36..7e257695b1c 100644 --- a/srcpkgs/corebird/template +++ b/srcpkgs/corebird/template @@ -1,14 +1,14 @@ # Template build for 'corebird'. pkgname=corebird -version=0.6.1 -revision=3 +version=0.7 +revision=1 short_desc="Native Gtk+ Twitter Client" hostmakedepends="pkg-config intltool cmake vala glib-devel libgee08-devel" maintainer="Enno Boland " license="GPLv3" homepage="http://corebird.baedert.org/" distfiles="https://github.com/baedert/corebird/archive/${version}.tar.gz" -checksum="d18c3427212eb8ef5e99960b2f9ee001ccdef23c9057e89308e20d0490a33e1d" +checksum=2f83d3b2d8792203dc92b644e333de0fb78947e366efc22d8d77e3f63cae1fd1 makedepends="gtk+3-devel rest-devel libgee08-devel sqlite-devel libsoup-devel libnotify-devel json-glib-devel"