[120312] trunk/dports/office

cal at macports.org cal at macports.org
Thu May 22 15:10:04 PDT 2014


Revision: 120312
          https://trac.macports.org/changeset/120312
Author:   cal at macports.org
Date:     2014-05-22 15:10:04 -0700 (Thu, 22 May 2014)
Log Message:
-----------
new port: zathura-plugin-pdf-poppler, closes #43579

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

Added: trunk/dports/office/zathura-plugin-pdf-poppler/Portfile
===================================================================
--- trunk/dports/office/zathura-plugin-pdf-poppler/Portfile	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-pdf-poppler/Portfile	2014-05-22 22:10:04 UTC (rev 120312)
@@ -0,0 +1,52 @@
+# -*- 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-poppler
+version             0.2.5
+categories          office
+platforms           darwin
+license             zlib
+maintainers         gmail.com:starkhalo
+description         The zathura-pdf-poppler plugin adds PDF support to zathura.
+long_description \
+    The zathura-pdf-poppler plugin adds PDF support to zathura by using the \
+    poppler rendering library.
+
+homepage            http://pwmt.org/projects/zathura/plugins/
+
+master_sites        http://pwmt.org/projects/zathura-pdf-poppler/download/
+distname            zathura-pdf-poppler-${version}
+
+checksums           \
+    rmd160 0aa1c7ae3790eb9cda56bda68a06a58ad9a52c1e \
+    sha256 60b327596d65bcd39edd5bf05b8cca8f9b658f51e626611ea99247a49b860cac
+
+patchfiles          patch-Makefile.diff \
+                    patch-config.mk.diff
+
+depends_build       port:pkgconfig
+
+depends_lib         port:poppler \
+                    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}
+
+livecheck.type      regex
+livecheck.url       ${master_sites}
+livecheck.regex     (\\d\\.\\d\\.\\d)


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

Added: trunk/dports/office/zathura-plugin-pdf-poppler/files/patch-Makefile.diff
===================================================================
--- trunk/dports/office/zathura-plugin-pdf-poppler/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-pdf-poppler/files/patch-Makefile.diff	2014-05-22 22:10:04 UTC (rev 120312)
@@ -0,0 +1,54 @@
+--- /Users/harciga/dev/ports/office/zathura-plugin-pdf-poppler/work/zathura-pdf-poppler-0.2.5/Makefile	2014-02-17 08:24:51.000000000 -0600
++++ Makefile	2014-05-04 20:27:38.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,${DESTDIR}${PLUGINDIR}/pdf.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-poppler/files/patch-config.mk.diff
===================================================================
--- trunk/dports/office/zathura-plugin-pdf-poppler/files/patch-config.mk.diff	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-pdf-poppler/files/patch-config.mk.diff	2014-05-22 22:10:04 UTC (rev 120312)
@@ -0,0 +1,12 @@
+--- config.mk	2014-02-17 08:24:51.000000000 -0600
++++ /Users/harciga/dev/zathura-pdf-poppler/config.mk	2014-05-04 18:55:42.000000000 -0500
+@@ -37,6 +37,9 @@
+ # flags
+ CFLAGS += -std=c99 -fPIC -pedantic -Wall -Wno-format-zero-length $(INCS)
+ 
++# linker flags
++LDFLAGS += -fPIC -fno-common
++
+ # debug
+ DFLAGS ?= -g
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140522/92ce2510/attachment.html>


More information about the macports-changes mailing list