so long and thanks for all the...porn?

remove pornview as it's and old, unmaintained port with code that's bad and
doesn't play nice with gtk2. there are enough ports that do the same (but
don't have the nice name)... gqview, ristretto, gthumb, gpicview, etc,etc)

as discussed with tedu@, landry@ and ajacoutot@
"at this point, I won't argue for keeping it alive." tedu@
ajacoutot@ had a long story about dragons and eating virgins, but basicly "ok"
This commit is contained in:
jasper 2008-12-01 18:19:10 +00:00
parent 8e927ce3dd
commit 7e10a77133
15 changed files with 1 additions and 377 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.222 2008/11/20 13:30:54 okan Exp $
# $OpenBSD: Makefile,v 1.223 2008/12/01 18:19:10 jasper Exp $
# $FreeBSD: Makefile,v 1.55 1997/11/03 12:12:27 tg Exp $
#
@ -145,7 +145,6 @@
SUBDIR += png2ico
SUBDIR += pngcrush
SUBDIR += pngmeta
SUBDIR += pornview
SUBDIR += potrace
SUBDIR += povray
SUBDIR += povray,no_x11

View File

@ -1,45 +0,0 @@
# $OpenBSD: Makefile,v 1.12 2008/11/14 17:16:34 landry Exp $
COMMENT= image viewer/manager
DISTNAME= pornview-0.2.0pre1
PKGNAME= ${DISTNAME}p5
CATEGORIES= graphics
HOMEPAGE= http://pornview.sourceforge.net/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pornview/}
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
FLAVORS= mplayer
FLAVOR?=
WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
Xi Xinerama Xrandr Xrender atk-1.0 c cairo expat fontconfig \
freetype glib-2.0 glitz gmodule-2.0 gobject-2.0 m pango-1.0 \
pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png z
MODULES= devel/gettext
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils
LIB_DEPENDS= charset::converters/libiconv \
gdk_pixbuf-2.0,gdk-x11-2.0,gtk-x11-2.0::x11/gtk+2
USE_X11= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-gtk2
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${LOCALBASE}/lib"
.if ${FLAVOR:L:Mmplayer}
CONFIGURE_ARGS+= --enable-mplayer
RUN_DEPENDS+= :mplayer-*:x11/mplayer
.endif
.include <bsd.port.mk>

View File

@ -1,5 +0,0 @@
MD5 (pornview-0.2.0pre1.tar.gz) = M5/ebX/wzBBTq+lRYBNz5g==
RMD160 (pornview-0.2.0pre1.tar.gz) = A6nQEjX6+/uYJdpD55+/tmouy/o=
SHA1 (pornview-0.2.0pre1.tar.gz) = OiZBKv+sbiEdqSjMRxpLG7xVsqA=
SHA256 (pornview-0.2.0pre1.tar.gz) = ZlAvk290NInc/xTkKagORnCmAiEYfDT1j4dTAimHT7k=
SIZE (pornview-0.2.0pre1.tar.gz) = 608864

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2003/07/04 20:52:20 naddy Exp $
--- Makefile.in.orig Sat Jan 4 13:53:50 2003
+++ Makefile.in Thu Jul 3 20:36:26 2003
@@ -130,7 +130,7 @@ localedir = @localedir@
SUBDIRS = icons intl po src
-desktopdir = $(datadir)/gnome/apps/Graphics
+desktopdir = $(datadir)/applications
desktop_DATA = pornview.desktop
EXTRA_DIST = config.rpath TODO $(desktop_DATA)

View File

@ -1,81 +0,0 @@
$OpenBSD: patch-configure,v 1.3 2007/03/31 12:32:35 steven Exp $
--- configure.orig Sat Jan 4 13:53:14 2003
+++ configure Sat Mar 31 14:31:53 2007
@@ -10396,7 +10396,7 @@ else
gt_save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $INCINTL"
gt_save_LIBS="$LIBS"
- LIBS="$LIBS $LIBINTL"
+ LIBS="$LIBS $LTLIBINTL $LTLIBICONV"
cat > conftest.$ac_ext <<EOF
#line 10402 "configure"
#include "confdefs.h"
@@ -10410,7 +10410,7 @@ extern
const char *_nl_expand_alias ();
int main() {
bindtextdomain ("", "");
-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)
+return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
; return 0; }
EOF
if { (eval echo configure:10417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@@ -10478,10 +10478,10 @@ echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
if test "$nls_cv_use_gnu_gettext" = "yes"; then
INTLOBJS="\$(GETTOBJS)"
- BUILD_INCLUDED_LIBINTL=yes
- USE_INCLUDED_LIBINTL=yes
- LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
- LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
+ BUILD_INCLUDED_LIBINTL=no
+ USE_INCLUDED_LIBINTL=no
+ LIBINTL="-lintl $LTLIBICONV"
+ LTLIBINTL="-lintl $LTLIBICONV"
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
fi
@@ -10549,7 +10549,7 @@ EOF
if test "$PACKAGE" = gettext; then
- BUILD_INCLUDED_LIBINTL=yes
+ BUILD_INCLUDED_LIBINTL=no
fi
@@ -10573,7 +10573,7 @@ EOF
- INTLLIBS="$LIBINTL"
+ INTLLIBS="$LTLIBINTL"
@@ -10633,7 +10633,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lintl $LIBS"
+LIBS="-lintl -liconv $LIBS"
cat > conftest.$ac_ext <<EOF
#line 10639 "configure"
#include "confdefs.h"
@@ -10667,7 +10667,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = ye
#define $ac_tr_lib 1
EOF
- LIBS="-lintl $LIBS"
+ LIBS="-lintl -liconv $LIBS"
else
echo "$ac_t""no" 1>&6
@@ -12504,7 +12504,7 @@ s%@XGETTEXT@%$XGETTEXT%g
s%@MSGMERGE@%$MSGMERGE%g
s%@ALLOCA@%$ALLOCA%g
s%@GLIBC21@%$GLIBC21%g
-s%@LIBICONV@%$LIBICONV%g
+s%@LIBICONV@%$LTLIBICONV%g
s%@LTLIBICONV@%$LTLIBICONV%g
s%@INTLBISON@%$INTLBISON%g
s%@USE_NLS@%$USE_NLS%g

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-src_comment_c,v 1.1 2008/11/14 17:16:34 landry Exp $
--- src/comment.c.orig Tue Nov 11 14:45:28 2008
+++ src/comment.c Tue Nov 11 14:46:04 2008
@@ -187,7 +187,7 @@ comment_new ()
{
Comment *comment;
- comment = COMMENT (gtk_type_new (comment_get_type ()));
+ comment = g_object_new (TYPE_COMMENT, NULL);
g_return_val_if_fail (comment, NULL);
return comment;

View File

@ -1,18 +0,0 @@
$OpenBSD: patch-src_comment_h,v 1.1 2008/11/14 17:16:34 landry Exp $
--- src/comment.h.orig Tue Nov 11 13:25:56 2008
+++ src/comment.h Tue Nov 11 13:29:24 2008
@@ -18,10 +18,10 @@
#include "image_info.h"
#define TYPE_COMMENT (comment_get_type ())
-#define COMMENT(obj) (GTK_CHECK_CAST ((obj), TYPE_COMMENT, Comment))
-#define COMMENT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), TYPE_COMMENT, CommentClass))
-#define IS_COMMENT(obj) (GTK_CHECK_TYPE ((obj), TYPE_COMMENT))
-#define IS_COMMENT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), TYPE_COMMENT))
+#define COMMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMENT, Comment))
+#define COMMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMENT, CommentClass))
+#define IS_COMMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMENT))
+#define IS_COMMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMENT))
typedef struct Comment_Tag Comment;
typedef struct CommentClass_Tag CommentClass;

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-src_support_charset_c,v 1.1 2008/11/14 17:16:34 landry Exp $
--- src/support/charset.c.orig Tue Nov 11 14:16:57 2008
+++ src/support/charset.c Tue Nov 11 14:17:13 2008
@@ -468,7 +468,7 @@ charset_conv (const gchar * src,
#ifdef USE_GTK2
{
- gint rbytes, wbytes;
+ gsize rbytes, wbytes;
return g_convert (src, -1, dest_codeset, src_codeset,
&rbytes, &wbytes, NULL);
}

View File

@ -1,30 +0,0 @@
$OpenBSD: patch-src_support_image_loader_c,v 1.1 2008/08/21 13:12:33 jasper Exp $
--- src/support/image_loader.c.orig Thu Aug 21 14:36:03 2008
+++ src/support/image_loader.c Thu Aug 21 14:36:40 2008
@@ -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)

View File

@ -1,16 +0,0 @@
$OpenBSD: patch-src_support_widgets_gtkcellrendererpixmap_c,v 1.1 2008/11/14 17:16:34 landry Exp $
--- src/support/widgets/gtkcellrendererpixmap.c.orig Tue Nov 11 12:39:57 2008
+++ src/support/widgets/gtkcellrendererpixmap.c Tue Nov 11 12:40:15 2008
@@ -59,10 +59,10 @@ enum
PROP_MASK_EXPANDER_CLOSED
};
-GtkType
+GType
gtk_cell_renderer_pixmap_get_type (void)
{
- static GtkType cell_pixmap_type = 0;
+ static GType cell_pixmap_type = 0;
if (!cell_pixmap_type)
{

View File

@ -1,29 +0,0 @@
$OpenBSD: patch-src_support_widgets_gtkcellrendererpixmap_h,v 1.1 2008/11/14 17:16:34 landry Exp $
--- src/support/widgets/gtkcellrendererpixmap.h.orig Fri Dec 13 12:02:45 2002
+++ src/support/widgets/gtkcellrendererpixmap.h Tue Nov 11 12:53:57 2008
@@ -32,11 +32,11 @@ extern "C"
#define GTK_TYPE_CELL_RENDERER_PIXMAP (gtk_cell_renderer_pixmap_get_type ())
-#define GTK_CELL_RENDERER_PIXMAP(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CELL_RENDERER_PIXMAP, GtkCellRendererPixmap))
-#define GTK_CELL_RENDERER_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_PIXMAP, GtkCellRendererPixmapClass))
-#define GTK_IS_CELL_RENDERER_PIXMAP(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CELL_RENDERER_PIXMAP))
-#define GTK_IS_CELL_RENDERER_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_PIXMAP))
-#define GTK_CELL_RENDERER_PIXMAP_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_PIXMAP, GtkCellRendererPixmapClass))
+#define GTK_CELL_RENDERER_PIXMAP(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_CELL_RENDERER_PIXMAP, GtkCellRendererPixmap))
+#define GTK_CELL_RENDERER_PIXMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_PIXMAP, GtkCellRendererPixmapClass))
+#define GTK_IS_CELL_RENDERER_PIXMAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_PIXMAP))
+#define GTK_IS_CELL_RENDERER_PIXMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_PIXMAP))
+#define GTK_CELL_RENDERER_PIXMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_PIXMAP, GtkCellRendererPixmapClass))
typedef struct GtkCellRendererPixmap_Tag GtkCellRendererPixmap;
typedef struct GtkCellRendererPixmapClass_Tag GtkCellRendererPixmapClass;
@@ -66,7 +66,7 @@ extern "C"
void (*_gtk_reserved4) (void);
};
- GtkType gtk_cell_renderer_pixmap_get_type (void);
+ GType gtk_cell_renderer_pixmap_get_type (void);
GtkCellRenderer *gtk_cell_renderer_pixmap_new (void);
#ifdef __cplusplus

View File

@ -1,75 +0,0 @@
$OpenBSD: patch-src_support_widgets_gtkmplayer_c,v 1.2 2007/03/31 12:32:35 steven Exp $
--- src/support/widgets/gtkmplayer.c.orig Fri Dec 13 12:15:21 2002
+++ src/support/widgets/gtkmplayer.c Sat Mar 31 14:31:53 2007
@@ -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, GList * arg_list,
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),

View File

@ -1,16 +0,0 @@
$OpenBSD: patch-src_support_widgets_zlist_c,v 1.1 2008/08/21 13:12:33 jasper Exp $
Fixed an out-of-bounds error. From Debian.
--- src/support/widgets/zlist.c.orig Thu Aug 21 14:37:23 2008
+++ src/support/widgets/zlist.c Thu Aug 21 14:38:27 2008
@@ -634,7 +634,8 @@ zlist_draw (GtkWidget * widget, GdkRectangle * area)
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;

View File

@ -1,12 +0,0 @@
PornView is an image/movie file viewer. Basic features:
- Browse your hard disk showing you thumbnails of image files.
- Slide Show.
- View EXIF data attached to JPEG images.
- View in fullscreen mode.
- Zoom in, out, and fit to window.
- Copy, move, delete images and folders.
- Rename images in series.
- Support movies.
- Add comments to images.
- Can open a file in an external program (customizable).
- File filtering options.

View File

@ -1,12 +0,0 @@
@comment $OpenBSD: PLIST,v 1.6 2008/08/21 13:12:33 jasper Exp $
@bin bin/pornview
share/applications/pornview.desktop
share/locale/fr/LC_MESSAGES/pornview.mo
share/locale/pl/LC_MESSAGES/pornview.mo
share/pixmaps/
share/pixmaps/pornview.png
share/pornview/
share/pornview/scripts/
share/pornview/scripts/helloworld
@exec %D/bin/update-desktop-database
@unexec %D/bin/update-desktop-database