[123975] trunk/dports/office

khindenburg at macports.org khindenburg at macports.org
Sat Aug 16 14:25:18 PDT 2014


Revision: 123975
          https://trac.macports.org/changeset/123975
Author:   khindenburg at macports.org
Date:     2014-08-16 14:25:18 -0700 (Sat, 16 Aug 2014)
Log Message:
-----------
zathura-plugin-ps: new port #43842

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

Added: trunk/dports/office/zathura-plugin-ps/Portfile
===================================================================
--- trunk/dports/office/zathura-plugin-ps/Portfile	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-ps/Portfile	2014-08-16 21:25:18 UTC (rev 123975)
@@ -0,0 +1,58 @@
+# -*- 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-ps
+version             0.2.2
+categories          office
+platforms           darwin
+license             zlib
+maintainers         gmail.com:starkhalo openmaintainer
+description         The zathura-ps plugin adds PostScript support to zathura.
+long_description \
+    The zathura-ps plugin adds PostScript support to zathura by using the \
+    libspectre library.
+
+homepage            http://pwmt.org/projects/zathura/plugins/
+
+master_sites        http://pwmt.org/projects/zathura-ps/download/
+distname            zathura-ps-${version}
+
+checksums           \
+    rmd160 f6492979bc5d91b1963bc973d626ed72bebff87f \
+    sha256 e6546261db03b0b6b6499a8e109dc9ff3b8eb8b154ce45f5c6284c1e76d1d7a8
+
+patch.pre_args      -p1
+patchfiles          patch-Makefile.diff \
+                    patch-config.mk.diff
+
+depends_build       port:pkgconfig
+
+depends_lib         port:desktop-file-utils \
+                    port:libspectre \
+                    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     zathura-ps-(\[0-9.\]+)${extract.suffix}


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

Added: trunk/dports/office/zathura-plugin-ps/files/patch-Makefile.diff
===================================================================
--- trunk/dports/office/zathura-plugin-ps/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-ps/files/patch-Makefile.diff	2014-08-16 21:25:18 UTC (rev 123975)
@@ -0,0 +1,57 @@
+diff --git a/Makefile b/Makefile
+index bd53080..19e3208 100644
+--- a/Makefile
++++ b/Makefile
+@@ -20,7 +20,7 @@ CPPFLAGS += "-DVERSION_MAJOR=${VERSION_MAJOR}"
+ 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)
+@@ -48,16 +48,16 @@ options:
+ ${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 doc .depend \
++	$(QUIET)rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN).dylib doc .depend \
+ 		${PROJECT}-${VERSION}.tar.gz ${PLUGIN}-debug.so zathura-version-check
+ 
+ debug: options ${PLUGIN}-debug.so
+@@ -77,7 +77,7 @@ doc: clean
+ 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}
+@@ -85,11 +85,11 @@ install: all
+ 
+ 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-ps/files/patch-config.mk.diff
===================================================================
--- trunk/dports/office/zathura-plugin-ps/files/patch-config.mk.diff	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-ps/files/patch-config.mk.diff	2014-08-16 21:25:18 UTC (rev 123975)
@@ -0,0 +1,14 @@
+diff --git a/config.mk b/config.mk
+index 38ed50f..a45896b 100644
+--- a/config.mk
++++ b/config.mk
+@@ -40,6 +40,9 @@ LIBS = ${GLIB_LIB} ${SPECTRE_LIB} ${GIRARA_LIB}
+ # 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/20140816/23b123bd/attachment.html>


More information about the macports-changes mailing list