summaryrefslogtreecommitdiff
path: root/community/buoh
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/buoh
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/buoh')
-rw-r--r--community/buoh/ChangeLog5
-rw-r--r--community/buoh/PKGBUILD33
-rw-r--r--community/buoh/buoh-libsoup24.patch71
-rw-r--r--community/buoh/buoh.install24
4 files changed, 133 insertions, 0 deletions
diff --git a/community/buoh/ChangeLog b/community/buoh/ChangeLog
new file mode 100644
index 000000000..12ed723c2
--- /dev/null
+++ b/community/buoh/ChangeLog
@@ -0,0 +1,5 @@
+2008-04-06 Eric Belanger <eric@archlinux.org>
+
+ * buoh-0.8.2-3
+ * rebuilt against libsoup 2.4
+ * added ChangeLog
diff --git a/community/buoh/PKGBUILD b/community/buoh/PKGBUILD
new file mode 100644
index 000000000..3d4fb093f
--- /dev/null
+++ b/community/buoh/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 21921 2010-07-18 21:09:06Z lcarlier $
+# Maintainer: Eric Belanger <eric@archlinux.org>
+# Contributor: William Rea <sillywilly@gmail.com>
+
+pkgname=buoh
+pkgver=0.8.2
+pkgrel=4
+pkgdesc="A reader for online strips comics"
+arch=('i686' 'x86_64')
+url="http://buoh.steve-o.org/"
+license=('GPL')
+depends=('libgnomeui' 'libsoup>=2.4.0' 'gconf' 'hicolor-icon-theme')
+makedepends=('gettext' 'intltool' 'pkgconfig')
+install=buoh.install
+source=(http://buoh.steve-o.org/downloads/${pkgname}-${pkgver}.tar.bz2 buoh-libsoup24.patch)
+md5sums=('50474a8712ad20ab36d8f8058a4647fb' 'c44f0e1828492a5d7d8efee764558fb4')
+sha1sums=('29d702b485a901868f65116e753cb515b3e2a2c5' '012badf13e33818268b744e106bdcccfd8fc66ed')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ patch -p1 < ../buoh-libsoup24.patch
+ autoconf
+ ./configure --prefix=/usr --sysconfdir=/usr/share --disable-schemas-install
+
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ make DESTDIR=${startdir}/pkg install
+}
diff --git a/community/buoh/buoh-libsoup24.patch b/community/buoh/buoh-libsoup24.patch
new file mode 100644
index 000000000..3998f3f5f
--- /dev/null
+++ b/community/buoh/buoh-libsoup24.patch
@@ -0,0 +1,71 @@
+diff -ur buoh-0.8.2.orig/configure.in buoh-0.8.2/configure.in
+--- buoh-0.8.2.orig/configure.in 2006-10-22 17:59:48.000000000 -0400
++++ buoh-0.8.2/configure.in 2008-01-30 13:39:23.000000000 -0500
+@@ -29,13 +29,13 @@
+
+ GLIB_REQUIRED=2.6.0
+ GTK_REQUIRED=2.6.0
+-LIBSOUP_REQUIRED=2.2.0
++LIBSOUP_REQUIRED=2.4.0
+ GCONF_REQUIRED=2.2.0
+
+ PKG_CHECK_MODULES(BUOH,
+ glib-2.0 >= $GLIB_REQUIRED
+ gtk+-2.0 >= $GTK_REQUIRED
+- libsoup-2.2 >= $LIBSOUP_REQUIRED
++ libsoup-2.4 >= $LIBSOUP_REQUIRED
+ gconf-2.0 >= $GCONF_REQUIRED)
+ AC_SUBST(BUOH_CFLAGS)
+ AC_SUBST(BUOH_LIBS)
+diff -ur buoh-0.8.2.orig/src/buoh-comic-loader.c buoh-0.8.2/src/buoh-comic-loader.c
+--- buoh-0.8.2.orig/src/buoh-comic-loader.c 2006-10-21 10:56:37.000000000 -0400
++++ buoh-0.8.2/src/buoh-comic-loader.c 2008-01-30 13:41:22.000000000 -0500
+@@ -202,7 +202,7 @@
+
+ proxy_uri = buoh_get_http_proxy_uri (BUOH);
+ if (proxy_uri) {
+- SoupUri *soup_uri = soup_uri_new (proxy_uri);
++ SoupURI *soup_uri = soup_uri_new (proxy_uri);
+
+ job->session = soup_session_sync_new_with_options (SOUP_SESSION_PROXY_URI, soup_uri, NULL);
+
+@@ -235,6 +235,7 @@
+
+ static void
+ buoh_comic_loader_job_read_next (SoupMessage *msg,
++ SoupBuffer *chunk,
+ BuohComicLoaderJob *job)
+ {
+ gboolean success;
+@@ -252,15 +253,14 @@
+ msg->reason_phrase);
+ }
+
+- soup_message_set_status (msg, SOUP_STATUS_CANCELLED);
+- soup_session_cancel_message (job->session, msg);
++ soup_session_cancel_message (job->session, msg, SOUP_STATUS_CANCELLED);
+
+ return;
+ }
+
+ if (job->callback) {
+- job->callback (msg->response.body,
+- msg->response.length,
++ job->callback (chunk->data,
++ chunk->length,
+ job->callback_data);
+ }
+ }
+@@ -275,9 +275,9 @@
+ msg = soup_message_new (SOUP_METHOD_GET, job->uri);
+
+ soup_message_set_flags (msg, SOUP_MESSAGE_OVERWRITE_CHUNKS);
+- soup_message_add_handler (msg, SOUP_HANDLER_BODY_CHUNK,
+- (SoupMessageCallbackFn)buoh_comic_loader_job_read_next,
+- (gpointer) job);
++ g_signal_connect (msg, "got-chunk",
++ G_CALLBACK (buoh_comic_loader_job_read_next),
++ (gpointer) job);
+
+ buoh_debug ("resolving . . .");
+
diff --git a/community/buoh/buoh.install b/community/buoh/buoh.install
new file mode 100644
index 000000000..2c1fcdf8a
--- /dev/null
+++ b/community/buoh/buoh.install
@@ -0,0 +1,24 @@
+pkgname=buoh
+
+post_install() {
+ usr/sbin/gconfpkg --install ${pkgname}
+ update-desktop-database -q
+ gtk-update-icon-cache -f -q -t usr/share/icons/hicolor
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ usr/sbin/gconfpkg --uninstall ${pkgname}
+}
+
+post_remove() {
+ update-desktop-database -q
+ gtk-update-icon-cache -f -q -t usr/share/icons/hicolor
+}