pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/pornview Imported pornview from pkgsrc-wip.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e54e377fe770
branches:  trunk
changeset: 507913:e54e377fe770
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Feb 11 13:06:43 2006 +0000

description:
Imported pornview from pkgsrc-wip.

PornView is an image and movie viewer/manager with thumbnail previews.
Additional features includes thumbnail caching, directory tree views,
adjustable zoom, fullscreen view, and slideshow mode.

PornView contains no objectionable content.

This package is built with GTK+ 1.0 support.

Packaged by David Howland.

diffstat:

 graphics/pornview/DESCR            |   7 +++
 graphics/pornview/Makefile         |  12 ++++++
 graphics/pornview/Makefile.common  |  30 +++++++++++++++
 graphics/pornview/PLIST            |  12 ++++++
 graphics/pornview/TODO             |   2 +
 graphics/pornview/distinfo         |  10 +++++
 graphics/pornview/options.mk       |  23 +++++++++++
 graphics/pornview/patches/patch-aa |  31 +++++++++++++++
 graphics/pornview/patches/patch-ab |  13 ++++++
 graphics/pornview/patches/patch-ac |  14 +++++++
 graphics/pornview/patches/patch-ad |  76 ++++++++++++++++++++++++++++++++++++++
 graphics/pornview/patches/patch-ae |  12 ++++++
 12 files changed, 242 insertions(+), 0 deletions(-)

diffs (290 lines):

diff -r f80005fdfff3 -r e54e377fe770 graphics/pornview/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pornview/DESCR   Sat Feb 11 13:06:43 2006 +0000
@@ -0,0 +1,7 @@
+PornView is an image and movie viewer/manager with thumbnail previews.
+Additional features includes thumbnail caching, directory tree views,
+adjustable zoom, fullscreen view, and slideshow mode.
+
+PornView contains no objectionable content.
+
+This package is built with GTK+ 1.0 support.
diff -r f80005fdfff3 -r e54e377fe770 graphics/pornview/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pornview/Makefile        Sat Feb 11 13:06:43 2006 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $
+#
+
+.include "Makefile.common"
+
+COMMENT+=              (GTK+ 1.0 interface)
+
+CONFLICTS=             pornview-gtk2-[0-9]*
+
+.include "../../graphics/gdk-pixbuf/buildlink3.mk"
+.include "../../x11/gtk/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r f80005fdfff3 -r e54e377fe770 graphics/pornview/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pornview/Makefile.common Sat Feb 11 13:06:43 2006 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $
+#
+
+PKGNAME=       pornview-0.2.0pre1
+DISTNAME=      pornview_0.2pre1.orig
+CATEGORIES=    graphics
+MASTER_SITES=  ${MASTER_SITE_DEBIAN:=pool/main/p/pornview/}
+
+MAINTAINER=    dhowland%users.sourceforge.net@localhost
+HOMEPAGE=      http://pornview.sourceforge.net/
+COMMENT=       GTK+ image viewer
+
+WRKSRC=                        ${WRKDIR}/pornview-0.2.0pre1
+
+BUILD_USES_MSGFMT=     yes
+
+DISTINFO_FILE=         ${.CURDIR}/../../graphics/pornview/distinfo
+PATCHDIR=              ${.CURDIR}/../../graphics/pornview/patches
+PLIST_SRC=             ${.CURDIR}/../../graphics/pornview/PLIST
+
+GNU_CONFIGURE=         yes
+USE_DIRS+=             gnome2-1.5
+USE_LIBTOOL=           yes
+USE_PKGLOCALEDIR=      yes
+
+.include "../../graphics/pornview/options.mk"
+
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../textproc/intltool/buildlink3.mk"
diff -r f80005fdfff3 -r e54e377fe770 graphics/pornview/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pornview/PLIST   Sat Feb 11 13:06:43 2006 +0000
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $
+bin/pornview
+share/gnome/apps/Graphics/pornview.desktop
+${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/pornview.mo
+${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/pornview.mo
+share/pixmaps/pornview.png
+share/pornview/scripts/helloworld
+@dirrm share/pornview/scripts
+@dirrm share/pornview
+@comment in xdg-dirs: @dirrm share/pixmaps
+@comment in gnome2-dirs: @dirrm share/gnome/apps/Graphics
+@comment in gnome2-dirs: @dirrm share/gnome/apps
diff -r f80005fdfff3 -r e54e377fe770 graphics/pornview/TODO
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pornview/TODO    Sat Feb 11 13:06:43 2006 +0000
@@ -0,0 +1,2 @@
+Dumps core when compiled with xine support (NetBSD 2.1.0/i386).
+Patch it to use pkgsrc's libexif?
diff -r f80005fdfff3 -r e54e377fe770 graphics/pornview/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pornview/distinfo        Sat Feb 11 13:06:43 2006 +0000
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $
+
+SHA1 (pornview_0.2pre1.orig.tar.gz) = 3a26412affac6e211da928cc471a4b1bbc55b2a0
+RMD160 (pornview_0.2pre1.orig.tar.gz) = 03a9d01235fafbfb9825da43e79fbfb66a2ecbfa
+Size (pornview_0.2pre1.orig.tar.gz) = 608864 bytes
+SHA1 (patch-aa) = c9a6092bb57619250433b3a80923431d96cfdc19
+SHA1 (patch-ab) = b0c59a238eced5a2480d7c10c06f5c800e087f39
+SHA1 (patch-ac) = a0fc989c301f92e28910251397a73d621a25f4f5
+SHA1 (patch-ad) = 7ba8d060156213552bf1e86143547c692ce4705f
+SHA1 (patch-ae) = 4f87f6357642d5c37baf5124668aeb46e4c2825d
diff -r f80005fdfff3 -r e54e377fe770 graphics/pornview/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pornview/options.mk      Sat Feb 11 13:06:43 2006 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: options.mk,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.pornview
+PKG_SUPPORTED_OPTIONS=         exif
+PKG_OPTIONS_OPTIONAL_GROUPS=   movie
+PKG_OPTIONS_GROUP.movie=       mplayer xine
+PKG_SUGGESTED_OPTIONS=         exif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mexif)
+CONFIGURE_ARGS+=       --enable-exif
+.else
+CONFIGURE_ARGS+=       --disable-exif
+.endif
+
+.if !empty(PKG_OPTIONS:Mmplayer)
+DEPENDS+=              mplayer>=1.0rc3:../../multimedia/mplayer
+CONFIGURE_ARGS+=       --enable-mplayer
+.elif !empty(PKG_OPTIONS:Mxine)
+.  include "../../multimedia/xine-lib/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-xine
+.endif
diff -r f80005fdfff3 -r e54e377fe770 graphics/pornview/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pornview/patches/patch-aa        Sat Feb 11 13:06:43 2006 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $
+
+--- src/support/image_loader.c.orig    2002-12-16 17:45:36.000000000 +0000
++++ src/support/image_loader.c
+@@ -81,7 +81,7 @@ static void
+ image_loader_stop (ImageLoader * il)
+ {
+ #ifdef USE_GTK2
+-    GError *err;
++    GError *err = NULL;
+ #endif
+ 
+     if (!il)
+@@ -174,7 +174,7 @@ cb_image_loader_idle (gpointer data)
+     gint    c;
+ 
+ #ifdef USE_GTK2
+-    GError *err;
++    GError *err = NULL;
+ #endif
+ 
+     if (!il)
+@@ -241,7 +241,7 @@ image_loader_begin (ImageLoader * il)
+     int     b;
+ 
+ #ifdef USE_GTK2
+-    GError *err;
++    GError *err = NULL;
+ #endif
+ 
+     if (!il->loader || il->pixbuf)
diff -r f80005fdfff3 -r e54e377fe770 graphics/pornview/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pornview/patches/patch-ab        Sat Feb 11 13:06:43 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $
+
+--- src/support/widgets/gtkxine.c.orig 2003-01-03 22:48:21.000000000 +0000
++++ src/support/widgets/gtkxine.c
+@@ -632,7 +632,7 @@ gtk_xine_unrealize (GtkWidget * widget)
+      */
+     if (this->vo_driver != NULL)
+       xine_close_video_driver (this->xine, this->vo_driver);
+-    if (this->vo_driver != NULL)
++    if (this->ao_driver != NULL)
+       xine_close_audio_driver (this->xine, this->ao_driver);
+ 
+     /*
diff -r f80005fdfff3 -r e54e377fe770 graphics/pornview/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pornview/patches/patch-ac        Sat Feb 11 13:06:43 2006 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $
+
+--- src/support/widgets/zlist.c.orig   2002-12-13 10:52:56.000000000 +0000
++++ src/support/widgets/zlist.c
+@@ -634,7 +634,8 @@ zlist_draw (GtkWidget * widget, GdkRecta
+                                          CELL_X_FROM_COL (list, j), area->y,
+                                          list->cell_x_pad, area->height);
+ 
+-              cell = ZLIST_CELL_FROM_INDEX (list, idx);
++              if (idx < list->cell_count)
++                  cell = ZLIST_CELL_FROM_INDEX (list, idx);
+ 
+               cell_area.x = CELL_X_FROM_COL (list, j) + list->cell_x_pad;
+               cell_area.y = CELL_Y_FROM_ROW (list, i) + list->cell_y_pad;
diff -r f80005fdfff3 -r e54e377fe770 graphics/pornview/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pornview/patches/patch-ad        Sat Feb 11 13:06:43 2006 +0000
@@ -0,0 +1,76 @@
+$NetBSD: patch-ad,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $
+
+--- src/support/widgets/gtkmplayer.c.orig      2002-12-13 11:15:21.000000000 +0000
++++ src/support/widgets/gtkmplayer.c
+@@ -30,6 +30,7 @@
+ #include <errno.h>
+ #include <ctype.h>
+ #include <math.h>
++#include <signal.h>
+ 
+ #include <gtk/gtk.h>
+ #include <gdk/gdkx.h>
+@@ -72,9 +73,9 @@ struct ChildContext_Tag
+     int     stderr_fd;
+     int     stdin_fd;
+ 
+-    gchar   stdout[GTK_MPLAYER_BUF_SIZE];
++    gchar   stdoutb[GTK_MPLAYER_BUF_SIZE];
+     gint    stdout_size;
+-    gchar   stderr[GTK_MPLAYER_BUF_SIZE];
++    gchar   stderrb[GTK_MPLAYER_BUF_SIZE];
+     gint    stderr_size;
+ 
+     ProcessLineFunc process_line_fn;
+@@ -1049,13 +1050,13 @@ start_command (GtkMPlayer * player, GLis
+     context->stdout_fd = out_fd[0];
+     fcntl (context->stdout_fd, F_SETFL, O_NONBLOCK);
+     close (out_fd[1]);
+-    context->stdout[0] = '\0';
++    context->stdoutb[0] = '\0';
+     context->stdout_size = 0;
+ 
+     context->stderr_fd = err_fd[0];
+     fcntl (context->stderr_fd, F_SETFL, O_NONBLOCK);
+     close (err_fd[1]);
+-    context->stderr[0] = '\0';
++    context->stderrb[0] = '\0';
+     context->stderr_size = 0;
+ 
+     context->stdin_fd = in_fd[1];
+@@ -1193,7 +1194,7 @@ process_output (ChildContext * context)
+ 
+     if (size > 0 && size < GTK_MPLAYER_BUF_SIZE)
+     {
+-      memcpy (buf, context->stderr, size);
++      memcpy (buf, context->stderrb, size);
+       next = buf + size;
+     }
+     else
+@@ -1211,7 +1212,7 @@ process_output (ChildContext * context)
+       size += MIN (GTK_MPLAYER_BUF_SIZE - 1, n);
+ 
+       process_lines (context, buf, size,
+-                     context->stderr, &context->stderr_size, TRUE);
++                     context->stderrb, &context->stderr_size, TRUE);
+     }
+ 
+     /*
+@@ -1221,7 +1222,7 @@ process_output (ChildContext * context)
+ 
+     if (size > 0 && size < GTK_MPLAYER_BUF_SIZE)
+     {
+-      memcpy (buf, context->stdout, size);
++      memcpy (buf, context->stdoutb, size);
+       next = buf + size;
+     }
+     else
+@@ -1240,7 +1241,7 @@ process_output (ChildContext * context)
+     pos = context->player->pos;
+ 
+     process_lines (context, buf, size,
+-                 context->stdout, &context->stdout_size, FALSE);
++                 context->stdoutb, &context->stdout_size, FALSE);
+ 
+     if (fabs (context->player->pos - pos) > 0.1)
+       gtk_signal_emit (GTK_OBJECT (context->player),
diff -r f80005fdfff3 -r e54e377fe770 graphics/pornview/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pornview/patches/patch-ae        Sat Feb 11 13:06:43 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ae,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $
+
+--- src/support/widgets/gtkxine.h.orig 2002-12-29 20:29:13.000000000 +0000
++++ src/support/widgets/gtkxine.h
+@@ -20,6 +20,7 @@
+ 
+ #ifdef ENABLE_XINE
+ 
++#include <pthread.h>
+ #include <X11/X.h>
+ #include <X11/Xlib.h>
+ #include <X11/extensions/XShm.h>



Home | Main Index | Thread Index | Old Index