diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2008-03-05 17:04:03 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2008-03-05 17:04:03 +0000 |
commit | d5f3935609afee2c8a122f153e7d6ee7019758ff (patch) | |
tree | 092a164b9e5966ffe87db1f5d2f862e51ddcf07d /www-client | |
parent | Keyword ~x86. (diff) | |
download | gentoo-2-d5f3935609afee2c8a122f153e7d6ee7019758ff.tar.gz gentoo-2-d5f3935609afee2c8a122f153e7d6ee7019758ff.tar.bz2 gentoo-2-d5f3935609afee2c8a122f153e7d6ee7019758ff.zip |
Fixed to work with gtk+-2.12.1, bug #199495.
(Portage version: 2.1.4.4)
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/ochusha/ChangeLog | 11 | ||||
-rw-r--r-- | www-client/ochusha/files/ochusha-0.5.8.2-glibc2.diff | 12 | ||||
-rw-r--r-- | www-client/ochusha/files/ochusha-0.5.8.2-gtk-2.12.diff | 193 | ||||
-rw-r--r-- | www-client/ochusha/files/ochusha-0.5.8.2-type-punning.diff | 25 | ||||
-rw-r--r-- | www-client/ochusha/ochusha-0.5.8.2-r3.ebuild | 64 |
5 files changed, 303 insertions, 2 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/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 +} |