View | Details | Raw Unified | Return to bug 161500
Collapse All | Expand All

(-)b/graphics/apvlv/Makefile (-8 / +24 lines)
Lines 2-25 Link Here
2
# Date created:                03 May 2010
2
# Date created:                03 May 2010
3
# Whom:                        Ju Pengfei <jupengfei@gmail.com>
3
# Whom:                        Ju Pengfei <jupengfei@gmail.com>
4
#
4
#
5
# $FreeBSD: ports/graphics/apvlv/Makefile,v 1.5 2011/09/21 16:48:41 tabthorpe Exp $
5
# $FreeBSD:$
6
#
6
#
7
7
8
PORTNAME=	apvlv
8
PORTNAME=	apvlv
9
PORTVERSION=	0.0.9.8
9
PORTVERSION=	0.1.2
10
PORTREVISION=	2
11
CATEGORIES=	graphics
10
CATEGORIES=	graphics
12
MASTER_SITES=	GOOGLE_CODE
11
DISTNAME=	${PORTNAME}-${PORTVERSION}-Source
12
MASTER_SITES=	http://github.com/downloads/naihe2010/apvlv/
13
13
14
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	Apvlv is a PDF Viewer Under Linux and its behaviour like Vim
15
COMMENT=	Apvlv is a PDF/DJVU Viewer and its behaviour like Vim
16
17
LICENSE=	GPLv2
16
18
17
LIB_DEPENDS=	poppler-glib.6:${PORTSDIR}/graphics/poppler-gtk
19
LIB_DEPENDS=	poppler-glib.6:${PORTSDIR}/graphics/poppler-gtk
18
20
19
GNU_CONFIGURE=	yes
21
USE_CMAKE=	yes
20
USE_GMAKE=	yes
22
MAKE_JOBS_SAFE=	yes
21
CONFIGURE_ARGS=	--with-sysconfdir=${PREFIX}/etc
23
CMAKE_ARGS+=	-DSYSCONFDIR=${PREFIX}/etc \
24
		-DMANDIR=${MANPREFIX}/man \
25
		-DDOCDIR=${DOCSDIR} \
26
		-DAPVLV_WITH_UMD=OFF
22
27
23
MAN1=		apvlv.1
28
MAN1=		apvlv.1
24
29
30
OPTIONS=	DJVU	"Enable DJVU support"	off
31
32
.include <bsd.port.options.mk>
33
34
.if defined(WITHOUT_DJVU)
35
CMAKE_ARGS+=	-DAPVLV_WITH_DJVU=OFF
36
.else
37
CMAKE_ARGS+=	-DAPVLV_WITH_DJVU=ON
38
LIB_DEPENDS+=	djvulibre.24:${PORTSDIR}/graphics/djvulibre-nox11
39
.endif
40
25
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)b/graphics/apvlv/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (apvlv-0.0.9.8.tar.gz) = adb2ac18e3e75c51b2a5e378d67837b0c15b87e1e3aad05f3501565c4671f902
1
SHA256 (apvlv-0.1.2-Source.tar.gz) = 65f010287dd98644d25997f95054bc95abc22fd8d5e2d7bc3b3b59978fbb470a
2
SIZE (apvlv-0.0.9.8.tar.gz) = 219536
2
SIZE (apvlv-0.1.2-Source.tar.gz) = 331595
(-)b/graphics/apvlv/files/patch-src_ApvlvDir.cpp (+11 lines)
Added Link Here
1
--- src/ApvlvDir.cpp.orig	2011-06-24 11:30:12.000000000 +0400
2
+++ src/ApvlvDir.cpp	2011-10-11 22:07:59.000000000 +0400
3
@@ -49,7 +49,7 @@
4
   realname = NULL;
5
 
6
   GtkTreeIter nitr[1];
7
-  gtk_tree_store_append (dir->mStore, itr, ir);
8
+  gtk_tree_store_append (dir->mStore, nitr, ir);
9
   *itr = *nitr;
10
 
11
   GdkPixbuf *pix = gdk_pixbuf_new_from_file_at_size (iconreg.c_str (), 40,
(-)b/graphics/apvlv/files/patch-src_ApvlvFile.cpp (-13 / +13 lines)
Lines 1-14 Link Here
1
--- src/ApvlvFile.cpp.orig	2011-08-12 10:22:23.000000000 +0200
1
--- src/ApvlvFile.cpp.orig	2011-06-24 11:30:12.000000000 +0400
2
+++ src/ApvlvFile.cpp	2011-08-12 10:24:26.000000000 +0200
2
+++ src/ApvlvFile.cpp	2011-10-10 01:01:26.000000000 +0400
3
@@ -273,9 +273,9 @@ ApvlvPDF::ApvlvPDF (const char *filename
3
@@ -302,9 +302,9 @@
4
 
4
 
5
   bool ApvlvPDF::pagetext (int pn, int x1, int y1, int x2, int y2, char **out)
5
 bool ApvlvPDF::pagetext (int pn, int x1, int y1, int x2, int y2, char **out)
6
   {
6
 {
7
-    PopplerRectangle rect = { x1, y1, x2, y2 };
7
-  PopplerRectangle rect = { x1, y1, x2, y2 };
8
     PopplerPage *page = poppler_document_get_page (mDoc, pn);
8
   PopplerPage *page = poppler_document_get_page (mDoc, pn);
9
-    *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect);
9
-  *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect);
10
+    PopplerRectangle rect = { x1, y2, x2, y1 };
10
+  PopplerRectangle rect = { x1, y2, x2, y1 };
11
+    *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect);
11
+  *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect);
12
     if (*out != NULL)
12
   if (*out != NULL)
13
       {
13
     {
14
 	return true;
14
       return true;
(-)b/graphics/apvlv/pkg-descr (-2 / +2 lines)
Lines 1-3 Link Here
1
Apvlv is a PDF Viewer and its behaviour like Vim.
1
Apvlv is a PDF/DJVU Viewer and its behaviour like Vim.
2
2
3
WWW: http://code.google.com/p/apvlv/
3
WWW: http://naihe2010.github.com/apvlv/
(-)b/graphics/apvlv/pkg-plist (-4 / +5 lines)
Lines 1-9 Link Here
1
bin/apvlv
1
bin/apvlv
2
etc/apvlvrc
2
etc/apvlvrc
3
%%DOCSDIR%%/apvlvrc.example
4
%%DOCSDIR%%/reg.png
5
%%DOCSDIR%%/dir.png
6
%%DOCSDIR%%/pdf.png
7
%%DOCSDIR%%/Startup.pdf
3
%%DOCSDIR%%/Startup.pdf
8
%%DOCSDIR%%/Startup.tex
4
%%DOCSDIR%%/Startup.tex
5
%%DOCSDIR%%/apvlvrc.example
6
%%DOCSDIR%%/icons/dir.png
7
%%DOCSDIR%%/icons/pdf.png
8
%%DOCSDIR%%/icons/reg.png
9
@dirrm %%DOCSDIR%%/icons
9
@dirrm %%DOCSDIR%%
10
@dirrm %%DOCSDIR%%

Return to bug 161500