# ChangeLog for www-client/ochusha
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/ochusha/ChangeLog,v 1.13 2005/12/03 17:05:53 tgall Exp $
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/ochusha/ChangeLog,v 1.14 2006/06/17 12:30:01 usata Exp $
+
+*ochusha-0.5.8.2-r1 (17 Jun 2006)
+
+ 17 Jun 2006; Mamoru KOMACHI <usata@gentoo.org>
+ +files/ochusha-0.5.8.2-gentoo.diff, -ochusha-0.5.8.ebuild,
+ +ochusha-0.5.8.2-r1.ebuild:
+ Added a patch to enable posting after the BBS system change.
03 Dec 2005; Tom Gall <tgall@gentoo.org>
ochusha-0.5.8.2.ebuild:
--- /dev/null
+diff -urN ochusha-0.5.8.2/lib/ochusha_board_2ch.c ochusha-0.5.8.2-cookie/lib/ochusha_board_2ch.c
+--- ochusha-0.5.8.2/lib/ochusha_board_2ch.c 2005-08-21 00:01:15.000000000 +0900
++++ ochusha-0.5.8.2-cookie/lib/ochusha_board_2ch.c 2006-06-17 21:11:07.000000000 +0900
+@@ -981,7 +981,7 @@
+ if (board->cookie != NULL)
+ G_FREE(board->cookie);
+ if (cookie != NULL)
+- board->cookie = G_STRDUP(cookie);
++ board->cookie = g_strconcat(cookie, "; hana=mogera", NULL);
+ else
+ board->cookie = NULL;
+ }
+diff -urN ochusha-0.5.8.2/lib/ochusha_thread_2ch.c ochusha-0.5.8.2-cookie/lib/ochusha_thread_2ch.c
+--- ochusha-0.5.8.2/lib/ochusha_thread_2ch.c 2005-09-09 22:18:20.000000000 +0900
++++ ochusha-0.5.8.2-cookie/lib/ochusha_thread_2ch.c 2006-06-17 21:10:22.000000000 +0900
+@@ -1883,7 +1883,7 @@
+ && broker->config->login_2ch)
+ query = g_strdup_printf("submit=%%8F%%91%%82%%AB%%8D%%9E%%82%%DE&FROM=%s&mail=%s&MESSAGE=%s&bbs=%s&key=%s&sid=%s&time=%ld", from, mail, message, bbs, key, broker->config->session_id_2ch, time);
+ else
+- query = g_strdup_printf("submit=%%8F%%91%%82%%AB%%8D%%9E%%82%%DE&FROM=%s&mail=%s&MESSAGE=%s&bbs=%s&key=%s&time=%ld", from, mail, message, bbs, key, time);
++ query = g_strdup_printf("hana=mogera&submit=%%8F%%91%%82%%AB%%8D%%9E%%82%%DE&FROM=%s&mail=%s&MESSAGE=%s&bbs=%s&key=%s&time=%ld", from, mail, message, bbs, key, time);
+ }
+
+ if (query == NULL)
+@@ -1903,7 +1903,7 @@
+ && broker->config->login_2ch)
+ query = g_strdup_printf("submit=%%91%%53%%90%%D3%%94%%43%%82%%F0%%95%%89%%82%%A4%%82%%B1%%82%%C6%%82%%F0%%8F%%B3%%91%%F8%%82%%B5%%82%%C4%%8F%%91%%82%%AB%%8D%%9E%%82%%DE&FROM=%s&mail=%s&MESSAGE=%s&bbs=%s&key=%s&sid=%s&time=%ld", from, mail, message, bbs, key, broker->config->session_id_2ch, time);
+ else
+- query = g_strdup_printf("submit=%%91%%53%%90%%D3%%94%%43%%82%%F0%%95%%89%%82%%A4%%82%%B1%%82%%C6%%82%%F0%%8F%%B3%%91%%F8%%82%%B5%%82%%C4%%8F%%91%%82%%AB%%8D%%9E%%82%%DE&FROM=%s&mail=%s&MESSAGE=%s&bbs=%s&key=%s&time=%ld", from, mail, message, bbs, key, time);
++ query = g_strdup_printf("hana=mogera&submit=%%91%%53%%90%%D3%%94%%43%%82%%F0%%95%%89%%82%%A4%%82%%B1%%82%%C6%%82%%F0%%8F%%B3%%91%%F8%%82%%B5%%82%%C4%%8F%%91%%82%%AB%%8D%%9E%%82%%DE&FROM=%s&mail=%s&MESSAGE=%s&bbs=%s&key=%s&time=%ld", from, mail, message, bbs, key, time);
+ }
+ sleep(30);
+ post_result = ochusha_utils_2ch_try_post(broker, thread->board,
--- /dev/null
+# Copyright 1999-2006 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-r1.ebuild,v 1.1 2006/06/17 12:30:01 usata 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="~ppc ~ppc64 ~x86"
+
+DEPEND="virtual/xft
+ >=x11-libs/gtk+-2.2.4
+ >=dev-libs/glib-2.2.3
+ >=dev-libs/libxml2-2.5.0
+ >=gnome-base/libghttp-1.0.9
+ sys-libs/zlib
+ nls? ( sys-devel/gettext )
+ ssl? ( dev-libs/openssl )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.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
+
+ dodoc ABOUT-NLS ACKNOWLEDGEMENT AUTHORS BUGS \
+ ChangeLog INSTALL* NEWS README TODO
+}