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, <Ctrl-f> for next page, <Ctrl-b> 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.
This commit is contained in:
parent
996cd43437
commit
7e9761a729
29
print/apvlv/Makefile
Normal file
29
print/apvlv/Makefile
Normal file
@ -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 <bsd.port.mk>
|
5
print/apvlv/distinfo
Normal file
5
print/apvlv/distinfo
Normal file
@ -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
|
14
print/apvlv/patches/patch-Makefile_in
Normal file
14
print/apvlv/patches/patch-Makefile_in
Normal file
@ -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:
|
32
print/apvlv/patches/patch-src_ApvlvUtil_cpp
Normal file
32
print/apvlv/patches/patch-src_ApvlvUtil_cpp
Normal file
@ -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 <sys/types.h>
|
||||
+#include <unistd.h>
|
||||
+
|
||||
#include <stdlib.h>
|
||||
#ifndef WIN32
|
||||
#include <sys/wait.h>
|
||||
@@ -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
|
||||
}
|
||||
|
6
print/apvlv/pkg/DESCR
Normal file
6
print/apvlv/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
||||
Apvlv is a PDF Viewer with vim-like keybindings.
|
||||
For example, <Ctrl-f> for next page, <Ctrl-b> 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 <Ctrl-f>
|
||||
will go forward 50 pages, typing '30' and <Ctrl-b> will go backwards 30
|
||||
pages.
|
12
print/apvlv/pkg/PLIST
Normal file
12
print/apvlv/pkg/PLIST
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user