[138542] trunk/dports/office

khindenburg at macports.org khindenburg at macports.org
Sat Jul 11 12:50:11 PDT 2015


Revision: 138542
          https://trac.macports.org/changeset/138542
Author:   khindenburg at macports.org
Date:     2015-07-11 12:50:11 -0700 (Sat, 11 Jul 2015)
Log Message:
-----------
zathura-plugin-pdf-mupdf: new port #47871

Added Paths:
-----------
    trunk/dports/office/zathura-plugin-pdf-mupdf/
    trunk/dports/office/zathura-plugin-pdf-mupdf/Portfile
    trunk/dports/office/zathura-plugin-pdf-mupdf/files/
    trunk/dports/office/zathura-plugin-pdf-mupdf/files/patch-Makefile.diff
    trunk/dports/office/zathura-plugin-pdf-mupdf/files/patch-config.mk.diff

Added: trunk/dports/office/zathura-plugin-pdf-mupdf/Portfile
===================================================================
--- trunk/dports/office/zathura-plugin-pdf-mupdf/Portfile	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-pdf-mupdf/Portfile	2015-07-11 19:50:11 UTC (rev 138542)
@@ -0,0 +1,60 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                zathura-plugin-pdf-mupdf
+version             0.2.8
+categories          office
+platforms           darwin
+license             zlib
+maintainers         gmail.com:starkhalo \
+                    openmaintainer
+conflicts           zathura-plugin-pdf-poppler
+description         The zathura-pdf-mupdf plugin adds PDF support to zathura.
+long_description \
+    The zathura-pdf-mupdf plugin adds PDF support to zathura by using the \
+    mupdf rendering library.
+
+homepage            http://pwmt.org/projects/zathura/plugins/
+
+master_sites        http://pwmt.org/projects/zathura-pdf-mupdf/download/
+distname            zathura-pdf-mupdf-${version}
+
+checksums           rmd160  c5fb22a9b571ae2086e43d5f56a42f092002f2a9 \
+                    sha256  9f8b92762cdad14a2a587744c758edc0e1003be6a0c1511486065bdc91a66910
+
+patchfiles          patch-Makefile.diff \
+                    patch-config.mk.diff
+
+depends_build       port:pkgconfig \
+                    path:lib/libmujs.a:mupdf
+
+depends_lib         port:desktop-file-utils \
+                    port:mupdf \
+                    port:openjpeg \
+                    path:lib/libgirara-gtk3.dylib:girara \
+                    path:bin/zathura:zathura
+
+use_configure       no
+
+variant universal   {}
+
+build.args          PREFIX=${prefix}
+build.env           CC=${configure.cc} \
+                    CXX=${configure.cxx} \
+                    CPP=${configure.cpp} \
+                    CFLAGS="[get_canonical_archflags cc]" \
+                    LDFLAGS="[get_canonical_archflags ld]" \
+                    VERBOSE=1
+
+eval destroot.env   ${build.env}
+eval destroot.args  ${build.args}
+
+post-activate {
+    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
+}
+
+livecheck.type      regex
+livecheck.url       ${master_sites}
+livecheck.regex     (\\d\\.\\d\\.\\d)


Property changes on: trunk/dports/office/zathura-plugin-pdf-mupdf/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/office/zathura-plugin-pdf-mupdf/files/patch-Makefile.diff
===================================================================
--- trunk/dports/office/zathura-plugin-pdf-mupdf/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-pdf-mupdf/files/patch-Makefile.diff	2015-07-11 19:50:11 UTC (rev 138542)
@@ -0,0 +1,54 @@
+--- Makefile.orig	2015-05-27 22:57:06.000000000 -0500
++++ Makefile	2015-05-27 22:57:14.000000000 -0500
+@@ -18,7 +18,7 @@
+ CPPFLAGS += "-DVERSION_MINOR=${VERSION_MINOR}"
+ CPPFLAGS += "-DVERSION_REV=${VERSION_REV}"
+ 
+-all: options ${PLUGIN}.so
++all: options ${PLUGIN}.dylib
+ 
+ zathura-version-check:
+ ifneq ($(ZATHURA_VERSION_CHECK), 0)
+@@ -46,16 +46,16 @@
+ ${OBJECTS}:  config.mk zathura-version-check
+ ${DOBJECTS}: config.mk zathura-version-check
+ 
+-${PLUGIN}.so: ${OBJECTS}
++${PLUGIN}.dylib: ${OBJECTS}
+ 	$(ECHO) LD $@
+-	$(QUIET)${CC} -shared ${LDFLAGS} -o $@ $(OBJECTS) ${LIBS}
++	$(QUIET)${CC} -Wl,-dylib_install_name,${PLUGIN}.dylib -Wl,-bundle_loader,${PREFIX}/bin/zathura -bundle ${LDFLAGS} -o $@ $(OBJECTS) ${LIBS}
+ 
+ ${PLUGIN}-debug.so: ${DOBJECTS}
+ 	$(ECHO) LD $@
+ 	$(QUIET)${CC} -shared ${LDFLAGS} -o $@ $(DOBJECTS) ${LIBS}
+ 
+ clean:
+-	$(QUIET)rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN).so $(PLUGIN)-debug.so \
++	$(QUIET)rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN).dylib $(PLUGIN)-debug.so \
+ 		doc .depend ${PROJECT}-${VERSION}.tar.gz zathura-version-check
+ 
+ debug: options ${PLUGIN}-debug.so
+@@ -75,18 +75,18 @@
+ install: all
+ 	$(ECHO) installing ${PLUGIN} plugin
+ 	$(QUIET)mkdir -p ${DESTDIR}${PLUGINDIR}
+-	$(QUIET)cp -f ${PLUGIN}.so ${DESTDIR}${PLUGINDIR}
++	$(QUIET)cp -f ${PLUGIN}.dylib ${DESTDIR}${PLUGINDIR}
+ 	$(QUIET)mkdir -m 755 -p ${DESTDIR}${DESKTOPPREFIX}
+ 	$(ECHO) installing desktop file
+ 	$(QUIET)install -m 644 ${PROJECT}.desktop ${DESTDIR}${DESKTOPPREFIX}
+ 
+ uninstall:
+ 	$(ECHO) uninstalling ${PLUGIN} plugin
+-	$(QUIET)rm -f ${DESTDIR}${PLUGINDIR}/${PLUGIN}.so
+-	$(QUIET)rmdir --ignore-fail-on-non-empty ${DESTDIR}${PLUGINDIR} 2> /dev/null
++	$(QUIET)rm -f ${DESTDIR}${PLUGINDIR}/${PLUGIN}.dylib
++	$(QUIET)-rmdir ${DESTDIR}${PLUGINDIR} 2> /dev/null
+ 	$(ECHO) removing desktop file
+ 	$(QUIET)rm -f ${DESTDIR}${DESKTOPPREFIX}/${PROJECT}.desktop
+-	$(QUIET)rmdir --ignore-fail-on-non-empty ${DESTDIR}${DESKTOPPREFIX} 2> /dev/null
++	$(QUIET)-rmdir ${DESTDIR}${DESKTOPPREFIX} 2> /dev/null
+ 
+ -include $(wildcard .depend/*.dep)
+ 

Added: trunk/dports/office/zathura-plugin-pdf-mupdf/files/patch-config.mk.diff
===================================================================
--- trunk/dports/office/zathura-plugin-pdf-mupdf/files/patch-config.mk.diff	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-pdf-mupdf/files/patch-config.mk.diff	2015-07-11 19:50:11 UTC (rev 138542)
@@ -0,0 +1,11 @@
+--- config.mk.original	2015-05-27 23:48:00.000000000 -0500
++++ config.mk	2015-05-27 23:48:07.000000000 -0500
+@@ -35,7 +35,7 @@
+ MUPDF_LIB ?= -lmupdf -lmujs
+ 
+ INCS = ${GTK_INC} ${GIRARA_INC} ${OPENSSL_INC} ${ZATHURA_INC}
+-LIBS = ${GTK_LIB} ${GIRARA_LIB} ${MUPDF_LIB} ${OPENSSL_LIB} -ljbig2dec -lopenjp2 -ljpeg
++LIBS = ${GTK_LIB} ${GIRARA_LIB} ${MUPDF_LIB} ${OPENSSL_LIB} -ljbig2dec -lopenjp2 -ljpeg -lz
+ 
+ # flags
+ CFLAGS += -std=c99 -fPIC -pedantic -Wall -Wno-format-zero-length $(INCS)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150711/cdc4ed53/attachment.html>


More information about the macports-changes mailing list