From 713c916f297fcf9e9d74614267c89695c8849948 Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Thu, 4 Sep 2014 09:04:08 +0000 Subject: [PATCH] Zathura plugin to view PDF using the MuPDF rendering engine. WWW: http://pwmt.org/projects/zathura-pdf-mupdf/ PR: ports/193144 Submitted by: Zsolt Udvari --- graphics/Makefile | 1 + graphics/zathura-pdf-mupdf/Makefile | 33 ++++++++++++++++++++++++++++ graphics/zathura-pdf-mupdf/distinfo | 2 ++ graphics/zathura-pdf-mupdf/pkg-descr | 3 +++ graphics/zathura-pdf-mupdf/pkg-plist | 3 +++ 5 files changed, 42 insertions(+) create mode 100644 graphics/zathura-pdf-mupdf/Makefile create mode 100644 graphics/zathura-pdf-mupdf/distinfo create mode 100644 graphics/zathura-pdf-mupdf/pkg-descr create mode 100644 graphics/zathura-pdf-mupdf/pkg-plist diff --git a/graphics/Makefile b/graphics/Makefile index 284f469a9773..8ec761b2622d 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1050,6 +1050,7 @@ SUBDIR += yed SUBDIR += zathura SUBDIR += zathura-djvu + SUBDIR += zathura-pdf-mupdf SUBDIR += zathura-pdf-poppler SUBDIR += zbar SUBDIR += zgv diff --git a/graphics/zathura-pdf-mupdf/Makefile b/graphics/zathura-pdf-mupdf/Makefile new file mode 100644 index 000000000000..8997a579e08a --- /dev/null +++ b/graphics/zathura-pdf-mupdf/Makefile @@ -0,0 +1,33 @@ +# Created by: Zsolt Udvari +# $FreeBSD$ + +PORTNAME= zathura-pdf-mupdf +PORTVERSION= 0.2.6 +CATEGORIES= graphics +MASTER_SITES= http://pwmt.org/projects/zathura-pdf-mupdf/download/ + +MAINTAINER= udvzsolt@gmail.com +COMMENT= MuPDF render PDF plugin for Zathura PDF viewer + +LICENSE= pwmt +LICENSE_NAME= pwmt license +LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE_PERMS= dist-mirror pkg-mirror auto-accept + +BUILD_DEPENDS= zathura:${PORTSDIR}/graphics/zathura \ + mupdf>=1.5_1,1:${PORTSDIR}/graphics/mupdf +RUN_DEPENDS= zathura:${PORTSDIR}/graphics/zathura + +MAKE_ARGS= MUPDF_LIB=-lmupdf_pic OPENSSL_INC=-I${OPENSSLINC} \ + OPENSSL_LIB="-L${OPENSSL_LIB} -lcrypto" + +USES= desktop-file-utils gmake pkgconfig +USE_GNOME= glib20 gtk30 +USE_OPENSSL= yes + +CONFLICTS_INSTALL= zathura-pdf-poppler-[0-9]* + +post-install: + ${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/zathura/pdf.so + +.include diff --git a/graphics/zathura-pdf-mupdf/distinfo b/graphics/zathura-pdf-mupdf/distinfo new file mode 100644 index 000000000000..3ba31cd42a6e --- /dev/null +++ b/graphics/zathura-pdf-mupdf/distinfo @@ -0,0 +1,2 @@ +SHA256 (zathura-pdf-mupdf-0.2.6.tar.gz) = 5df94b6f906008b5f3bca770a552da6d2917d6b8d3e4b3049cb7001302041b20 +SIZE (zathura-pdf-mupdf-0.2.6.tar.gz) = 9094 diff --git a/graphics/zathura-pdf-mupdf/pkg-descr b/graphics/zathura-pdf-mupdf/pkg-descr new file mode 100644 index 000000000000..403bdbbcf33b --- /dev/null +++ b/graphics/zathura-pdf-mupdf/pkg-descr @@ -0,0 +1,3 @@ +Zathura plugin to view PDF using the MuPDF rendering engine. + +WWW: http://pwmt.org/projects/zathura-pdf-mupdf/ diff --git a/graphics/zathura-pdf-mupdf/pkg-plist b/graphics/zathura-pdf-mupdf/pkg-plist new file mode 100644 index 000000000000..4cd2cb87b30c --- /dev/null +++ b/graphics/zathura-pdf-mupdf/pkg-plist @@ -0,0 +1,3 @@ +lib/zathura/pdf.so +share/applications/zathura-pdf-mupdf.desktop +@dirrmtry lib/zathura