diff options
author | Hans de Graaff <graaff@gentoo.org> | 2009-06-21 12:01:46 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2009-06-21 12:01:46 +0000 |
commit | ecd20a30a64e621299492433692d17ddb03d8458 (patch) | |
tree | 55821f221bae5062174397e80496d761de27d0a1 /gnome-extra/gnome-do-plugins | |
parent | version bump (diff) | |
download | gentoo-2-ecd20a30a64e621299492433692d17ddb03d8458.tar.gz gentoo-2-ecd20a30a64e621299492433692d17ddb03d8458.tar.bz2 gentoo-2-ecd20a30a64e621299492433692d17ddb03d8458.zip |
Fix twitter ID bug.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'gnome-extra/gnome-do-plugins')
3 files changed, 192 insertions, 1 deletions
diff --git a/gnome-extra/gnome-do-plugins/ChangeLog b/gnome-extra/gnome-do-plugins/ChangeLog index 9bd3c62b952a..ecafb87a46a1 100644 --- a/gnome-extra/gnome-do-plugins/ChangeLog +++ b/gnome-extra/gnome-do-plugins/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for gnome-extra/gnome-do-plugins # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-do-plugins/ChangeLog,v 1.11 2009/05/31 09:54:31 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-do-plugins/ChangeLog,v 1.12 2009/06/21 12:01:46 graaff Exp $ + +*gnome-do-plugins-0.8.1.3-r2 (21 Jun 2009) + + 21 Jun 2009; Hans de Graaff <graaff@gentoo.org> + +gnome-do-plugins-0.8.1.3-r2.ebuild, + +files/gnome-do-plugins-0.8.1.3-fix-for-twitpocolypse.patch: + Fix Microblogging plugin for Twitter ID rollover, taken from upstream bzr. *gnome-do-plugins-0.8.1.3-r1 (31 May 2009) diff --git a/gnome-extra/gnome-do-plugins/files/gnome-do-plugins-0.8.1.3-fix-for-twitpocolypse.patch b/gnome-extra/gnome-do-plugins/files/gnome-do-plugins-0.8.1.3-fix-for-twitpocolypse.patch new file mode 100644 index 000000000000..407c48f61866 --- /dev/null +++ b/gnome-extra/gnome-do-plugins/files/gnome-do-plugins-0.8.1.3-fix-for-twitpocolypse.patch @@ -0,0 +1,118 @@ +=== modified file 'Microblogging/src/MicroblogClient.cs' +--- Microblogging/src/MicroblogClient.cs 2009-05-18 06:07:11 +0000 ++++ Microblogging/src/MicroblogClient.cs 2009-06-13 16:08:28 +0000 +@@ -103,7 +103,7 @@ + UpdateStatus (status, null); + } + +- public void UpdateStatus (string status, Nullable<int> inReplyToID) ++ public void UpdateStatus (string status, Nullable<long> inReplyToID) + { + string errorMessage = ""; + try { + +=== modified file 'Microblogging/src/MicroblogStatus.cs' +--- Microblogging/src/MicroblogStatus.cs 2009-02-28 19:17:08 +0000 ++++ Microblogging/src/MicroblogStatus.cs 2009-06-13 16:08:28 +0000 +@@ -8,7 +8,7 @@ + + public class MicroblogStatus : Item + { +- public MicroblogStatus (int id, string status, string owner, DateTime time) ++ public MicroblogStatus (long id, string status, string owner, DateTime time) + { + Id = id; + Owner = owner; +@@ -28,7 +28,7 @@ + get { return "microblogging.svg@" + GetType ().Assembly.FullName; } + } + +- public int Id { get; private set; } ++ public long Id { get; private set; } + public string Owner { get; private set; } + public string Status { get; private set; } + public DateTime Created { get; private set; } +@@ -36,13 +36,13 @@ + + public class MicroblogStatusReply + { +- public MicroblogStatusReply (Nullable<int> inReplyToID, string status) ++ public MicroblogStatusReply (Nullable<long> inReplyToID, string status) + { + Status = status; + InReplyToId = inReplyToID; + } + +- public Nullable<int> InReplyToId { get; private set; } ++ public Nullable<long> InReplyToId { get; private set; } + public string Status { get; private set; } + } + } + +=== modified file 'Microblogging/src/Twitterizer/Twitterizer.Framework/DataTransferObjects/TwitterStatus.cs' +--- Microblogging/src/Twitterizer/Twitterizer.Framework/DataTransferObjects/TwitterStatus.cs 2008-12-11 04:16:01 +0000 ++++ Microblogging/src/Twitterizer/Twitterizer.Framework/DataTransferObjects/TwitterStatus.cs 2009-06-13 16:08:28 +0000 +@@ -40,8 +40,8 @@ + set { created = value; }
+ }
+
+- private int id;
+- public int ID
++ private long id;
++ public long ID
+ {
+ get { return id; }
+ set { id = value; }
+@@ -82,8 +82,8 @@ + set { isFavorited = value; }
+ }
+
+- private int inReplyToStatusID;
+- public int InReplyToStatusID
++ private long inReplyToStatusID;
++ public long InReplyToStatusID
+ {
+ get { return inReplyToStatusID; }
+ set { inReplyToStatusID = value; }
+ +=== modified file 'Microblogging/src/Twitterizer/Twitterizer.Framework/MethodClasses/TwitterStatusMethods.cs' +--- Microblogging/src/Twitterizer/Twitterizer.Framework/MethodClasses/TwitterStatusMethods.cs.~1~ 2009-06-21 13:48:03.966312847 +0200 ++++ Microblogging/src/Twitterizer/Twitterizer.Framework/MethodClasses/TwitterStatusMethods.cs 2009-06-21 13:48:37.557938534 +0200 +@@ -131,7 +131,7 @@ + /// <param name="Status">Required. The text of your status update.</param>
+ /// <param name="InReplyToStatusID">Optional. The ID of an existing status that the status to be posted is in reply to.</param>
+ /// <returns></returns>
+- public TwitterStatus Update(string Status, int? InReplyToStatusID)
++ public TwitterStatus Update(string Status, long? InReplyToStatusID)
+ {
+ TwitterRequest Request = new TwitterRequest();
+ TwitterRequestData Data = new TwitterRequestData();
+=== modified file 'Microblogging/src/Twitterizer/Twitterizer.Framework/TwitterRequest.cs' +--- Microblogging/src/Twitterizer/Twitterizer.Framework/TwitterRequest.cs 2009-04-17 02:15:08 +0000 ++++ Microblogging/src/Twitterizer/Twitterizer.Framework/TwitterRequest.cs 2009-06-13 16:08:28 +0000 +@@ -159,13 +159,13 @@ + if (Element == null) return null;
+
+ //Mon May 12 15:56:07 +0000 2008
+- Status.ID = int.Parse(Element["id"].InnerText);
++ Status.ID = long.Parse(Element["id"].InnerText);
+ Status.Created = ParseDateString(Element["created_at"].InnerText);
+ Status.Text = Element["text"].InnerText;
+ Status.Source = Element["source"].InnerText;
+ Status.IsTruncated = bool.Parse(Element["truncated"].InnerText);
+ if (Element["in_reply_to_status_id"].InnerText != string.Empty)
+- Status.InReplyToStatusID = int.Parse(Element["in_reply_to_status_id"].InnerText);
++ Status.InReplyToStatusID = long.Parse(Element["in_reply_to_status_id"].InnerText);
+ if (Element["in_reply_to_user_id"].InnerText != string.Empty)
+ Status.InReplyToUserID = int.Parse(Element["in_reply_to_user_id"].InnerText);
+
+@@ -198,7 +198,7 @@ +
+ TwitterStatus Status = new TwitterStatus();
+
+- Status.ID = int.Parse(Element["id"].InnerText);
++ Status.ID = long.Parse(Element["id"].InnerText);
+ Status.Created = ParseDateString(Element["created_at"].InnerText);
+ Status.Text = Element["text"].InnerText;
+
+ diff --git a/gnome-extra/gnome-do-plugins/gnome-do-plugins-0.8.1.3-r2.ebuild b/gnome-extra/gnome-do-plugins/gnome-do-plugins-0.8.1.3-r2.ebuild new file mode 100644 index 000000000000..371dd674a2be --- /dev/null +++ b/gnome-extra/gnome-do-plugins/gnome-do-plugins-0.8.1.3-r2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-do-plugins/gnome-do-plugins-0.8.1.3-r2.ebuild,v 1.1 2009/06/21 12:01:46 graaff Exp $ + +inherit eutils autotools gnome2 mono versionator + +MY_PN="do-plugins" +PVC=$(get_version_component_range 1-3) + +DESCRIPTION="Plugins to put the Do in Gnome Do" +HOMEPAGE="http://do.davebsd.com/" +SRC_URI="https://launchpad.net/${MY_PN}/0.8/${PVC}/+download/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="banshee evo" + +RDEPEND=">=gnome-extra/gnome-do-${PV} + dev-dotnet/wnck-sharp + banshee? ( >=media-sound/banshee-1.4.2 ) + evo? ( dev-dotnet/evolution-sharp )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + dev-util/monodevelop" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Fix use of Twitter API in Microblogging plugin. + epatch "${FILESDIR}/${P}-update-twitter-api.patch" + # Fix handling of Twitter id's in Microblogging plugin. + epatch "${FILESDIR}/${P}-fix-for-twitpocolypse.patch" + + sed -i -r -e "/(FLICKR|Flickr)/d" configure.ac Makefile.am + use banshee || sed -i -r -e "/(BANSHEE|Banshee)/d" configure.ac Makefile.am + use evo || sed -i -r -e "/(EVOLUTION|Evolution)/d" configure.ac Makefile.am + eautoreconf +} + +src_compile() +{ + econf --enable-debug=no --enable-release=yes || die "configure failed" + # The make system is unfortunately broken for parallel builds and + # upstream indicated on IRC that they have no intention to fix + # that. + emake -j1 || die "make failed" +} + +pkg_postinst() +{ + ewarn "Plugin handling has changed since gnome-do 0.4." + ewarn "If you install the gnome-do-plugins package you will have local copies" + ewarn "of the plugins, but you still need to manually enable them in Preferences." + ewarn "Also note that plugins installed from upstream may not be compatible with" + ewarn "your system. When in doubt check the output from gnome-do itself". + ewarn "Old plugins may not be compatible either." + ewarn "Check ~/.local/share/gnome-do/ if you have problems with plugins." + + # To be removed when bumping from 0.8.1.3 + ewarn + ewarn "This revision contains an update for the Microblogging.dll plugin." + ewarn "You will need to copy the updated version from /usr/share/gnome-do/plugins" + ewarn "to ~/.local/share/gnome-do/plugins-${PV}/addins/Do.Microblog.1.0/ manually" +} |