summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2008-03-05 17:04:03 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2008-03-05 17:04:03 +0000
commitd08062c1581aaa7711e16d6e44e2d42ecb832535 (patch)
treefaefa43984cdd5cf865b08ca2f2287e9f64ef73e /www-client
parentKeyword ~x86. (diff)
downloadhistorical-d08062c1581aaa7711e16d6e44e2d42ecb832535.tar.gz
historical-d08062c1581aaa7711e16d6e44e2d42ecb832535.tar.bz2
historical-d08062c1581aaa7711e16d6e44e2d42ecb832535.zip
Fixed to work with gtk+-2.12.1, bug #199495.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'www-client')
-rw-r--r--www-client/ochusha/ChangeLog11
-rw-r--r--www-client/ochusha/Manifest6
-rw-r--r--www-client/ochusha/files/ochusha-0.5.8.2-glibc2.diff12
-rw-r--r--www-client/ochusha/files/ochusha-0.5.8.2-gtk-2.12.diff193
-rw-r--r--www-client/ochusha/files/ochusha-0.5.8.2-type-punning.diff25
-rw-r--r--www-client/ochusha/ochusha-0.5.8.2-r3.ebuild64
6 files changed, 308 insertions, 3 deletions
diff --git a/www-client/ochusha/ChangeLog b/www-client/ochusha/ChangeLog
index e9d18369a9cf..352979883d29 100644
--- a/www-client/ochusha/ChangeLog
+++ b/www-client/ochusha/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for www-client/ochusha
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/ochusha/ChangeLog,v 1.25 2007/02/13 10:33:25 corsair Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/ochusha/ChangeLog,v 1.26 2008/03/05 17:04:02 matsuu Exp $
+
+*ochusha-0.5.8.2-r3 (05 Mar 2008)
+
+ 05 Mar 2008; MATSUU Takuto <matsuu@gentoo.org>
+ +files/ochusha-0.5.8.2-glibc2.diff, +files/ochusha-0.5.8.2-gtk-2.12.diff,
+ +files/ochusha-0.5.8.2-type-punning.diff, +ochusha-0.5.8.2-r3.ebuild:
+ Fixed to work with gtk+-2.12.1, bug #199495.
13 Feb 2007; Markus Rothe <corsair@gentoo.org> ochusha-0.5.8.2-r2.ebuild:
Stable on ppc64; bug #165415
diff --git a/www-client/ochusha/Manifest b/www-client/ochusha/Manifest
index 8992a3572d2d..9a2d830685ef 100644
--- a/www-client/ochusha/Manifest
+++ b/www-client/ochusha/Manifest
@@ -1,7 +1,11 @@
AUX ochusha-0.5.8.2-gentoo.diff 2394 RMD160 8d83d5fcdbd4c20cea82738d0febb9e903e12ba2 SHA1 3f463e332ef18c55ca2c01869e83c6eecd4ab508 SHA256 f10027ffb52ec47f633ff3289e5cd009846ecee64880a548af7161584c9e4ed8
AUX ochusha-0.5.8.2-glib-2.10.diff 1237 RMD160 ea6e9d768031afec304355ae0fb99df29be2e38a SHA1 667ded9a9c20e194c7c327b5138157347046d29f SHA256 f0948301d7a8ec3284dba7998a1817f375d268effaafb232023932ac44a0b2f1
+AUX ochusha-0.5.8.2-glibc2.diff 370 RMD160 6f331c7818b630822b7b74157b4120975f6eea8e SHA1 b71a0719975b7d537e55eea585554d85fa4bb8ed SHA256 c0e68e9319ecec5069bc2d7bae01a4be7fe60a79159a9e2d4987240d16930ef6
+AUX ochusha-0.5.8.2-gtk-2.12.diff 6854 RMD160 10ccfcbcb7402049105eb337ffadd965e3cd78e8 SHA1 ee04b3199df6f8d6552d88c2854aa5280300c621 SHA256 b1cd009d3216c78931ebd9dcc67431d65e1c04954490cd879ef937c208541910
+AUX ochusha-0.5.8.2-type-punning.diff 1238 RMD160 b38fb1708042488bf6597a277e957681ec392675 SHA1 392a71b1aa38b9e0dd4377fa88c9ce8b93e73c6c SHA256 9e3e686bb089e189bc184ddaa5bcf057b237637bbd76acdfe162bacc7029810b
DIST ochusha-0.5.8.2.tar.bz2 1794268 RMD160 5990fd327165b3d3c415aec5639babe1ce9ad6ba SHA1 1b302b9cc084d5e44eb32b68f67399f6f37deda1 SHA256 91a4429b085be335ad34c9af3ed2ab8871b6245839348abe21073a48789dbe7c
EBUILD ochusha-0.5.8.2-r1.ebuild 1143 RMD160 e0453af3454d30e51a3cda51c91331262c3b9d1d SHA1 ac321d210a13e4e70b6aa2814a2c0de8b47fa1b8 SHA256 426219bdacd80f6131899158b54249982b3bc9be8210cf1e24e96139bc137507
EBUILD ochusha-0.5.8.2-r2.ebuild 1526 RMD160 69d18d4f6d487baddb93b36566d31a90623e4511 SHA1 fd0efe5fcc39f1c29febfe1d04fcdab816828654 SHA256 1bc45b84d755fb838cab9d16bd0da9522d2af7f336d3ea6685b3ffa8310af089
-MISC ChangeLog 10209 RMD160 8e3c2689290126e696dd98ff76fecf0756888a21 SHA1 c355b394ce61fb182d21a751e66bcf626c660eec SHA256 ff3378005384f73d72b5e8de26886efffa0c215b3955905fbd2a52f24031e62f
+EBUILD ochusha-0.5.8.2-r3.ebuild 1653 RMD160 4ed115c11140aa5e52ef1fba2ac845644422de4f SHA1 f16538cf58d951d36190d71a0d0127fc88a19152 SHA256 d02f4f81d50a64ec83efa08783ea19e44f6c8cd6f4b59d794c33cdb52f770b85
+MISC ChangeLog 10488 RMD160 9d3dc141dd8a4dd72c923d135e9d47762ee82ab5 SHA1 f84f7c6bd9c4a9a5a6c86697eaaadc645ec51cec SHA256 71069b1bed16ca9f33d4a083f54eae581ba342c784696ed9a64f34bc55632cf1
MISC metadata.xml 156 RMD160 8adcf0a760a605cd42501f53097ca3a1c4e8daad SHA1 8ccc2b0f20743002b783b1f7b5162c71f7f54c2e SHA256 815820f2e5866d973fafb29a8b8027d022ccea43023309b6dc294cf077598215
diff --git a/www-client/ochusha/files/ochusha-0.5.8.2-glibc2.diff b/www-client/ochusha/files/ochusha-0.5.8.2-glibc2.diff
new file mode 100644
index 000000000000..23605742638d
--- /dev/null
+++ b/www-client/ochusha/files/ochusha-0.5.8.2-glibc2.diff
@@ -0,0 +1,12 @@
+diff -Nru ochusha-0.5.8.2.orig/lib/utils.h ochusha-0.5.8.2/lib/utils.h
+--- ochusha-0.5.8.2.orig/lib/utils.h 2008-03-02 07:26:56.000000000 +0000
++++ ochusha-0.5.8.2/lib/utils.h 2008-03-02 10:58:06.000000000 +0000
+@@ -42,6 +42,8 @@
+ extern iconv_t utf8_to_native;
+ #endif
+
++char *strptime(const char *s, const char *format, struct tm *tm);
++
+ /*
+ * utility関数など
+ */
diff --git a/www-client/ochusha/files/ochusha-0.5.8.2-gtk-2.12.diff b/www-client/ochusha/files/ochusha-0.5.8.2-gtk-2.12.diff
new file mode 100644
index 000000000000..50b73779ca0c
--- /dev/null
+++ b/www-client/ochusha/files/ochusha-0.5.8.2-gtk-2.12.diff
@@ -0,0 +1,193 @@
+diff -Nru ochusha-0.5.8.2.orig/gtk2/bbs_thread_ui.c ochusha-0.5.8.2/gtk2/bbs_thread_ui.c
+--- ochusha-0.5.8.2.orig/gtk2/bbs_thread_ui.c 2008-03-02 07:26:56.000000000 +0000
++++ ochusha-0.5.8.2/gtk2/bbs_thread_ui.c 2008-03-02 11:00:22.000000000 +0000
+@@ -810,7 +810,11 @@
+ bold_tag = bbs_thread_view_get_tag_by_name(dummy_view, "bold");
+
+ /* 捨て */
++#if GTK_MINOR_VERSION <= 10
+ gtk_object_sink(GTK_OBJECT(dummy_view));
++#else
++ g_object_ref_sink(GTK_OBJECT(dummy_view));
++#endif
+
+ {
+ #if 0
+@@ -984,7 +988,11 @@
+ #endif
+ G_FREE(job_args);
+ G_FREE(job);
++#if GTK_MINOR_VERSION <= 10
+ gtk_object_sink(GTK_OBJECT(thread_view));
++#else
++ g_object_ref_sink(GTK_OBJECT(thread_view));
++#endif
+
+ BBS_THREAD_UI_UNLOCK;
+ return NULL;
+diff -Nru ochusha-0.5.8.2.orig/gtk2/boardlist_ui.c ochusha-0.5.8.2/gtk2/boardlist_ui.c
+--- ochusha-0.5.8.2.orig/gtk2/boardlist_ui.c 2008-03-02 07:26:56.000000000 +0000
++++ ochusha-0.5.8.2/gtk2/boardlist_ui.c 2008-03-02 11:00:22.000000000 +0000
+@@ -1351,7 +1351,11 @@
+
+ if (*item_view == NULL)
+ {
++#if GTK_MINOR_VERSION <= 10
+ gtk_object_sink(GTK_OBJECT(*tab_label));
++#else
++ g_object_ref_sink(GTK_OBJECT(*tab_label));
++#endif
+ *tab_label = NULL;
+ return;
+ }
+diff -Nru ochusha-0.5.8.2.orig/gtk2/download_ui.c ochusha-0.5.8.2/gtk2/download_ui.c
+--- ochusha-0.5.8.2.orig/gtk2/download_ui.c 2008-03-02 07:26:57.000000000 +0000
++++ ochusha-0.5.8.2/gtk2/download_ui.c 2008-03-02 11:00:22.000000000 +0000
+@@ -237,8 +237,12 @@
+ if (response_id == GTK_RESPONSE_OK)
+ {
+ GtkEntry *entry;
++#if GTK_MINOR_VERSION <= 10
+ filename
+ = gtk_file_selection_get_filename(GTK_FILE_SELECTION(widget));
++#else
++ filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(widget));
++#endif
+ entry = (GtkEntry *)g_object_get_qdata(G_OBJECT(download_dialog),
+ filename_entry_id);
+ gtk_entry_set_text(entry, filename);
+@@ -394,6 +398,7 @@
+ ? application->last_download_directory : g_get_home_dir());
+ }
+
++#if GTK_MINOR_VERSION <= 10
+ filesel_dialog = gtk_file_selection_new(_("Save Link As"));
+ gtk_file_selection_set_filename(GTK_FILE_SELECTION(filesel_dialog),
+ pathname);
+@@ -403,6 +408,22 @@
+ gtk_dialog_set_default_response(GTK_DIALOG(filesel_dialog),
+ GTK_RESPONSE_OK);
+ gtk_widget_show(filesel_dialog);
++#else
++ filesel_dialog = gtk_file_chooser_dialog_new(_("Save Link As"), NULL,
++ GTK_FILE_CHOOSER_ACTION_SAVE,
++ GTK_STOCK_CANCEL,
++ GTK_RESPONSE_CANCEL,
++ GTK_STOCK_SAVE,
++ GTK_RESPONSE_OK,
++ NULL);
++ gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(filesel_dialog), pathname);
++ g_object_set_qdata(G_OBJECT(filesel_dialog), dialog_id, download_dialog);
++ g_signal_connect(G_OBJECT(filesel_dialog), "response",
++ G_CALLBACK(filesel_dialog_response_cb), application);
++ gtk_dialog_set_default_response(GTK_DIALOG(filesel_dialog),
++ GTK_RESPONSE_OK);
++ gtk_dialog_run(GTK_DIALOG(filesel_dialog));
++#endif
+ }
+
+
+diff -Nru ochusha-0.5.8.2.orig/gtk2/ochusha_ui.c ochusha-0.5.8.2/gtk2/ochusha_ui.c
+--- ochusha-0.5.8.2.orig/gtk2/ochusha_ui.c 2008-03-02 07:26:57.000000000 +0000
++++ ochusha-0.5.8.2/gtk2/ochusha_ui.c 2008-03-02 11:00:22.000000000 +0000
+@@ -1557,7 +1557,11 @@
+ = gtk_widget_render_icon(dummy, OCHUSHA_STOCK_NET_ERROR,
+ GTK_ICON_SIZE_MENU, "ochusha::net-error");
+
++#if GTK_MINOR_VERSION <= 10
+ gtk_object_sink(GTK_OBJECT(dummy));
++#else
++ g_object_ref_sink(GTK_OBJECT(dummy));
++#endif
+
+ tab_label_id = g_quark_from_static_string("OchushaUI::icon-label");
+ tab_label_icon_counter_id
+diff -Nru ochusha-0.5.8.2.orig/gtk2/paned_notebook.c ochusha-0.5.8.2/gtk2/paned_notebook.c
+--- ochusha-0.5.8.2.orig/gtk2/paned_notebook.c 2008-03-02 07:26:56.000000000 +0000
++++ ochusha-0.5.8.2/gtk2/paned_notebook.c 2008-03-02 11:00:22.000000000 +0000
+@@ -516,10 +516,15 @@
+
+ tool_button = gtk_tool_button_new(tmp_arrow, NULL);
+ GTK_WIDGET_UNSET_FLAGS(tool_button, GTK_CAN_FOCUS);
++#if GTK_MINOR_VERSION <= 10
+ gtk_tool_item_set_tooltip(tool_button,
+ paned_notebook->toolbar->tooltips,
+ _("Go to the Left Page"),
+ "go_left_page");
++#else
++ gtk_tool_item_set_tooltip_text(tool_button,
++ _("Go to the Left Page"));
++#endif
+ gtk_widget_show(GTK_WIDGET(tool_button));
+ g_signal_connect(G_OBJECT(tool_button), "clicked",
+ G_CALLBACK(go_left_button_cb), paned_notebook);
+@@ -532,10 +537,15 @@
+ gtk_widget_show(tmp_arrow);
+ tool_button = gtk_tool_button_new(tmp_arrow, NULL);
+ GTK_WIDGET_UNSET_FLAGS(tool_button, GTK_CAN_FOCUS);
++#if GTK_MINOR_VERSION <= 10
+ gtk_tool_item_set_tooltip(tool_button,
+ paned_notebook->toolbar->tooltips,
+ _("Go to the Right Page"),
+ "go_right_page");
++#else
++ gtk_tool_item_set_tooltip_text(tool_button,
++ _("Go to the Right Page"));
++#endif
+ gtk_widget_show(GTK_WIDGET(tool_button));
+ g_signal_connect(G_OBJECT(tool_button), "clicked",
+ G_CALLBACK(go_right_button_cb), paned_notebook);
+@@ -548,9 +558,14 @@
+ gtk_widget_show(GTK_WIDGET(paned_notebook->contents_menu));
+ gtk_container_add(GTK_CONTAINER(tmp_item),
+ GTK_WIDGET(paned_notebook->contents_menu));
++#if GTK_MINOR_VERSION <= 10
+ gtk_tool_item_set_tooltip(tmp_item, paned_notebook->toolbar->tooltips,
+ _("Select the Page to be Shown"),
+ "item_selection_menu");
++#else
++ gtk_tool_item_set_tooltip_text(tmp_item,
++ _("Select the Page to be Shown"));
++#endif
+ gtk_widget_show(GTK_WIDGET(tmp_item));
+ gtk_toolbar_insert(paned_notebook->toolbar, tmp_item, -1);
+ #endif
+@@ -598,7 +613,11 @@
+ "destroy",
+ G_CALLBACK(gtk_widget_destroyed),
+ &paned_notebook->contents_pane);
++#if GTK_MINOR_VERSION <= 10
+ gtk_object_sink(GTK_OBJECT(paned_notebook->contents_pane));
++#else
++ g_object_ref_sink(GTK_OBJECT(paned_notebook->contents_pane));
++#endif
+ }
+
+
+diff -Nru ochusha-0.5.8.2.orig/libmodifiedgtk2/mod_notebook.c ochusha-0.5.8.2/libmodifiedgtk2/mod_notebook.c
+--- ochusha-0.5.8.2.orig/libmodifiedgtk2/mod_notebook.c 2008-03-02 11:00:14.000000000 +0000
++++ ochusha-0.5.8.2/libmodifiedgtk2/mod_notebook.c 2008-03-02 11:00:22.000000000 +0000
+@@ -4943,7 +4943,11 @@
+ else
+ {
+ g_object_ref (page->menu_label);
++#if GTK_MINOR_VERSION <= 10
+ gtk_object_sink (GTK_OBJECT (page->menu_label));
++#else
++ g_object_ref_sink(GTK_OBJECT (page->menu_label));
++#endif
+ }
+
+ if (notebook->menu)
+@@ -5922,7 +5926,11 @@
+ {
+ page->menu_label = menu_label;
+ g_object_ref (page->menu_label);
++#if GTK_MINOR_VERSION <= 10
+ gtk_object_sink (GTK_OBJECT(page->menu_label));
++#else
++ g_object_ref_sink(GTK_OBJECT(page->menu_label));
++#endif
+ page->default_menu = FALSE;
+ }
+ else
diff --git a/www-client/ochusha/files/ochusha-0.5.8.2-type-punning.diff b/www-client/ochusha/files/ochusha-0.5.8.2-type-punning.diff
new file mode 100644
index 000000000000..2c0b8cc3838f
--- /dev/null
+++ b/www-client/ochusha/files/ochusha-0.5.8.2-type-punning.diff
@@ -0,0 +1,25 @@
+diff -Nru ochusha-0.5.8.2.orig/libmodifiedgtk2/mod_notebook.c ochusha-0.5.8.2/libmodifiedgtk2/mod_notebook.c
+--- ochusha-0.5.8.2.orig/libmodifiedgtk2/mod_notebook.c 2008-03-02 07:26:57.000000000 +0000
++++ ochusha-0.5.8.2/libmodifiedgtk2/mod_notebook.c 2008-03-02 10:59:48.000000000 +0000
+@@ -2670,10 +2670,10 @@
+ ModNotebookPage *page = list->data;
+
+ if (page->last_focus_child)
+- g_object_remove_weak_pointer (G_OBJECT (page->last_focus_child), (gpointer *)&page->last_focus_child);
++ g_object_remove_weak_pointer (G_OBJECT (page->last_focus_child), (void*)&page->last_focus_child);
+
+ page->last_focus_child = GTK_WINDOW (toplevel)->focus_widget;
+- g_object_add_weak_pointer (G_OBJECT (page->last_focus_child), (gpointer *)&page->last_focus_child);
++ g_object_add_weak_pointer (G_OBJECT (page->last_focus_child), (void*)&page->last_focus_child);
+
+ break;
+ }
+@@ -2975,7 +2975,7 @@
+
+ if (page->last_focus_child)
+ {
+- g_object_remove_weak_pointer (G_OBJECT (page->last_focus_child), (gpointer *)&page->last_focus_child);
++ g_object_remove_weak_pointer (G_OBJECT (page->last_focus_child), (void*)&page->last_focus_child);
+ page->last_focus_child = NULL;
+ }
+
diff --git a/www-client/ochusha/ochusha-0.5.8.2-r3.ebuild b/www-client/ochusha/ochusha-0.5.8.2-r3.ebuild
new file mode 100644
index 000000000000..a322706f9324
--- /dev/null
+++ b/www-client/ochusha/ochusha-0.5.8.2-r3.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/ochusha/ochusha-0.5.8.2-r3.ebuild,v 1.1 2008/03/05 17:04:02 matsuu Exp $
+
+inherit flag-o-matic eutils
+
+IUSE="nls ssl"
+
+DESCRIPTION="Ochusha - 2ch viewer for GTK+"
+HOMEPAGE="http://ochusha.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/${PN}/16560/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+
+RDEPEND="virtual/xft
+ >=x11-libs/gtk+-2.2.4
+ >=dev-libs/glib-2.2.3
+ >=dev-libs/libxml2-2.5.0
+ sys-libs/zlib
+ nls? ( virtual/libintl )
+ ssl? ( dev-libs/openssl )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gentoo.diff
+ epatch "${FILESDIR}"/${P}-glib-2.10.diff
+ epatch "${FILESDIR}"/${P}-glibc2.diff
+ epatch "${FILESDIR}"/${P}-type-punning.diff
+ epatch "${FILESDIR}"/${P}-gtk-2.12.diff
+}
+
+src_compile() {
+ econf $(use_enable nls) \
+ $(use_with ssl) \
+ --enable-regex \
+ --disable-shared \
+ --enable-static \
+ --with-included-oniguruma || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+
+ rm "${D}"/usr/share/ochusha/ochusha.desktop
+
+ insinto /usr/share/applications
+ doins "${S}/gtk2/ochusha.desktop"
+ sed -i -e 's:Icon=.*:Icon=ochusha:' "${D}"/usr/share/applications/ochusha.desktop
+
+ insinto /usr/share/icons/hicolor/48x48/apps
+ newins "${S}/gtk2/ochusha48.png" ochusha.png
+ insinto /usr/share/icons/hicolor/32x32/apps
+ newins "${S}/gtk2/ochusha32.png" ochusha.png
+
+ dodoc ACKNOWLEDGEMENT AUTHORS BUGS \
+ ChangeLog INSTALL* NEWS README TODO
+}