From 7e9761a729742015e0cb15d8070d19b4251063f4 Mon Sep 17 00:00:00 2001 From: landry Date: Thu, 13 May 2010 16:05:05 +0000 Subject: [PATCH] Import apvlv 0.0.9.6, A PDF Viewer Like Vim. Apvlv is a PDF Viewer with vim-like keybindings using poppler rendering library (that means it won't render pdf that evince and epdfview already don't render). For example, for next page, to previous page, 'k','j','h','l' to scrolling a page up, down, left or right, and so on. It support lots of other shortcuts explained in the provided pdf documentation, shown when starting it without arguments. --- print/apvlv/Makefile | 29 +++++++++++++++++++ print/apvlv/distinfo | 5 ++++ print/apvlv/patches/patch-Makefile_in | 14 +++++++++ print/apvlv/patches/patch-src_ApvlvUtil_cpp | 32 +++++++++++++++++++++ print/apvlv/pkg/DESCR | 6 ++++ print/apvlv/pkg/PLIST | 12 ++++++++ 6 files changed, 98 insertions(+) create mode 100644 print/apvlv/Makefile create mode 100644 print/apvlv/distinfo create mode 100644 print/apvlv/patches/patch-Makefile_in create mode 100644 print/apvlv/patches/patch-src_ApvlvUtil_cpp create mode 100644 print/apvlv/pkg/DESCR create mode 100644 print/apvlv/pkg/PLIST diff --git a/print/apvlv/Makefile b/print/apvlv/Makefile new file mode 100644 index 00000000000..cb513ac5191 --- /dev/null +++ b/print/apvlv/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2010/05/13 16:05:05 landry Exp $ + +COMMENT= lightweight PDF document viewer with vi bindings + +DISTNAME= apvlv-0.0.9.6 +CATEGORIES= print +HOMEPAGE= http://code.google.com/p/apvlv/ + +MASTER_SITES= http://apvlv.googlecode.com/files/ + +# GPLv2 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes +WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 c cairo expat fontconfig +WANTLIB += freetype gio-2.0 glib-2.0 glitz gmodule-2.0 gobject-2.0 +WANTLIB += m pango-1.0 pangocairo-1.0 pangoft2-1.0 +WANTLIB += pixman-1 png pthread-stubs stdc++ xcb z + +LIB_DEPENDS= gtk-x11-2.0.>=0.14,gdk-x11-2.0.>=0.14,gdk_pixbuf-2.0.>=0.14::x11/gtk+2 \ + poppler.>=3,poppler-glib.>=3::print/poppler + +CONFIGURE_STYLE=gnu +CONFIGURE_ARGS+=--without-djvu + +.include diff --git a/print/apvlv/distinfo b/print/apvlv/distinfo new file mode 100644 index 00000000000..08544769c01 --- /dev/null +++ b/print/apvlv/distinfo @@ -0,0 +1,5 @@ +MD5 (apvlv-0.0.9.6.tar.gz) = YSjwy4bS17Bjwv7tBKtfkA== +RMD160 (apvlv-0.0.9.6.tar.gz) = hclGzt+HuybpM2GucextTiUl3OA= +SHA1 (apvlv-0.0.9.6.tar.gz) = 0j7zjLeRZdAYubn1j7Rj1XFHzyU= +SHA256 (apvlv-0.0.9.6.tar.gz) = XWNjv1fShpZ5skbPz4ODNXgkI+DCqIkvj9xk4FZNmvM= +SIZE (apvlv-0.0.9.6.tar.gz) = 215077 diff --git a/print/apvlv/patches/patch-Makefile_in b/print/apvlv/patches/patch-Makefile_in new file mode 100644 index 00000000000..4fd67de55f8 --- /dev/null +++ b/print/apvlv/patches/patch-Makefile_in @@ -0,0 +1,14 @@ +$OpenBSD: patch-Makefile_in,v 1.1.1.1 2010/05/13 16:05:05 landry Exp $ +--- Makefile.in.orig Tue May 4 09:16:21 2010 ++++ Makefile.in Tue May 4 09:17:44 2010 +@@ -711,8 +711,8 @@ uninstall-man: uninstall-man1 + + + install-exec-local: +- mkdir -p $(DESTDIR)$(sysconfdir) +- $(INSTALL) -m 0644 apvlvrc.example $(DESTDIR)$(sysconfdir)/apvlvrc ++ mkdir -p $(DESTDIR)/${TRUEPREFIX}/share/examples/apvlv ++ $(INSTALL) -m 0644 apvlvrc.example $(DESTDIR)/${TRUEPREFIX}/share/examples/apvlv/apvlvrc + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/print/apvlv/patches/patch-src_ApvlvUtil_cpp b/print/apvlv/patches/patch-src_ApvlvUtil_cpp new file mode 100644 index 00000000000..2a4ce6e93e3 --- /dev/null +++ b/print/apvlv/patches/patch-src_ApvlvUtil_cpp @@ -0,0 +1,32 @@ +$OpenBSD: patch-src_ApvlvUtil_cpp,v 1.1.1.1 2010/05/13 16:05:05 landry Exp $ +HOME and PWD are not always set in env. +--- src/ApvlvUtil.cpp.orig Tue Apr 20 03:01:33 2010 ++++ src/ApvlvUtil.cpp Tue May 4 10:44:58 2010 +@@ -28,6 +28,9 @@ + + #include "ApvlvUtil.hpp" + ++#include ++#include ++ + #include + #ifndef WIN32 + #include +@@ -84,7 +87,7 @@ namespace apvlv + gchar *home = + g_win32_get_package_installation_directory_of_module (NULL); + #else +- char *home = getenv ("HOME"); ++ const gchar *home = g_get_home_dir(); + #endif + g_snprintf (abpath, sizeof abpath, "%s%s", home, ++path); + } +@@ -95,7 +98,7 @@ namespace apvlv + GetCurrentDirectoryA (sizeof cpath, cpath); + g_snprintf (abpath, sizeof abpath, "%s\\%s", cpath, path); + #else +- snprintf (abpath, sizeof abpath, "%s/%s", getenv ("PWD"), path); ++ snprintf (abpath, sizeof abpath, "%s/%s", g_get_current_dir(), path); + #endif + } + diff --git a/print/apvlv/pkg/DESCR b/print/apvlv/pkg/DESCR new file mode 100644 index 00000000000..95757d179d3 --- /dev/null +++ b/print/apvlv/pkg/DESCR @@ -0,0 +1,6 @@ +Apvlv is a PDF Viewer with vim-like keybindings. +For example, for next page, to previous page, +'k','j','h','l' to scrolling a page up, down, left or right, and so on. +It also understands quantifiers like vim, so typing '50' and +will go forward 50 pages, typing '30' and will go backwards 30 +pages. diff --git a/print/apvlv/pkg/PLIST b/print/apvlv/pkg/PLIST new file mode 100644 index 00000000000..bbe0700ee62 --- /dev/null +++ b/print/apvlv/pkg/PLIST @@ -0,0 +1,12 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2010/05/13 16:05:05 landry Exp $ +@bin bin/apvlv +@man man/man1/apvlv.1 +share/doc/apvlv/ +share/doc/apvlv/Startup.pdf +share/doc/apvlv/apvlvrc.example +share/doc/apvlv/dir.png +share/doc/apvlv/pdf.png +share/doc/apvlv/reg.png +share/examples/apvlv/ +share/examples/apvlv/apvlvrc +@sample ${SYSCONFDIR}/apvlvrc