- Update to 0.9.3.

PR:		ports/124593
Submitted by:	Ashish Shukla <wahjava@gmail.com> (maintainer)
Approved by:	gabor (mentor, implicit)
This commit is contained in:
Felippe de Meirelles Motta 2008-06-20 05:41:35 +00:00
parent 6641c6770d
commit 8bcd89eed4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=215319
4 changed files with 9 additions and 63 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= google-gadgets
PORTVERSION= 0.9.2
PORTVERSION= 0.9.3
CATEGORIES= deskutils
MASTER_SITES= http://google-gadgets-for-linux.googlecode.com/files/
DISTNAME= ${PORTNAME}-for-linux-${PORTVERSION}

View file

@ -1,3 +1,3 @@
MD5 (google-gadgets-for-linux-0.9.2.tar.gz) = 5c2a64b549b958af030cf3178998cdb7
SHA256 (google-gadgets-for-linux-0.9.2.tar.gz) = 4918565eafa989f0c027a2ab5592a483eb5fde059ce15e1eb8a239edfd3a82ad
SIZE (google-gadgets-for-linux-0.9.2.tar.gz) = 2335255
MD5 (google-gadgets-for-linux-0.9.3.tar.gz) = 590b6fefbf9cbbbfe5dc34f99c0932f4
SHA256 (google-gadgets-for-linux-0.9.3.tar.gz) = 6b93b3d39719c10063e143e919e9ee65956dacc51bbc5aa1cafef76c71abcff6
SIZE (google-gadgets-for-linux-0.9.3.tar.gz) = 2338243

View file

@ -1,54 +0,0 @@
$FreeBSD$
--- ggadget/extension_manager.cc.orig
+++ ggadget/extension_manager.cc
@@ -26,6 +26,12 @@
#include "common.h"
#include "extension_manager.h"
+#if __GNUC__ < 4
+#define CAST_HACK(x) (x)
+#else
+#define CAST_HACK(x) reinterpret_cast<x>
+#endif
+
namespace ggadget {
ElementExtensionRegister::ElementExtensionRegister(ElementFactory *factory)
@@ -35,7 +41,7 @@
bool ElementExtensionRegister::RegisterExtension(const Module *extension) {
ASSERT(extension);
RegisterElementExtensionFunc func =
- reinterpret_cast<RegisterElementExtensionFunc>(
+ CAST_HACK(RegisterElementExtensionFunc)(
extension->GetSymbol(kElementExtensionSymbolName));
return func ? func(factory_) : false;
@@ -48,7 +54,7 @@
bool ScriptExtensionRegister::RegisterExtension(const Module *extension) {
ASSERT(extension);
RegisterScriptExtensionFunc func =
- reinterpret_cast<RegisterScriptExtensionFunc>(
+ CAST_HACK(RegisterScriptExtensionFunc)(
extension->GetSymbol(kScriptExtensionSymbolName));
return func ? func(context_) : false;
@@ -64,7 +70,7 @@
bool FrameworkExtensionRegister::RegisterExtension(const Module *extension) {
ASSERT(extension);
RegisterFrameworkExtensionFunc func =
- reinterpret_cast<RegisterFrameworkExtensionFunc>(
+ CAST_HACK(RegisterFrameworkExtensionFunc)(
extension->GetSymbol(kFrameworkExtensionSymbolName));
return func ? func(framework_, gadget_) : false;
@@ -79,7 +85,7 @@
ScriptRuntimeExtensionRegister::RegisterExtension(const Module *extension) {
ASSERT(extension);
RegisterScriptRuntimeExtensionFunc func =
- reinterpret_cast<RegisterScriptRuntimeExtensionFunc>(
+ CAST_HACK(RegisterScriptRuntimeExtensionFunc)(
extension->GetSymbol(kScriptRuntimeExtensionSymbolName));
return func ? func(manager_) : false;

View file

@ -159,11 +159,11 @@ lib/libggadget-gtk-1.0.so.0
libdata/pkgconfig/libggadget-1.0.pc
libdata/pkgconfig/libggadget-dbus-1.0.pc
libdata/pkgconfig/libggadget-gtk-1.0.pc
share/google-gadgets/google-gadget-browser.gg
share/google-gadgets/igoogle-gadget.gg
share/google-gadgets/resources.gg
share/google-gadgets/rss-gadget.gg
@dirrm share/google-gadgets
%%DATADIR%%/google-gadget-browser.gg
%%DATADIR%%/igoogle.gg
%%DATADIR%%/resources.gg
%%DATADIR%%/rss.gg
@dirrm %%DATADIR%%
@dirrm lib/google-gadgets/modules
@dirrm lib/google-gadgets/include/ggadget
@dirrm lib/google-gadgets/include