[123974] trunk/dports/office

khindenburg at macports.org khindenburg at macports.org
Sat Aug 16 14:10:39 PDT 2014


Revision: 123974
          https://trac.macports.org/changeset/123974
Author:   khindenburg at macports.org
Date:     2014-08-16 14:10:39 -0700 (Sat, 16 Aug 2014)
Log Message:
-----------
zathura-plugin-cb: new port #43843

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

Added: trunk/dports/office/zathura-plugin-cb/Portfile
===================================================================
--- trunk/dports/office/zathura-plugin-cb/Portfile	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-cb/Portfile	2014-08-16 21:10:39 UTC (rev 123974)
@@ -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-cb
+version             0.1.2
+categories          office
+platforms           darwin
+license             zlib
+maintainers         gmail.com:starkhalo openmaintainer
+description         The zathura-ps plugin adds comic book support to zathura.
+long_description \
+    The zathura-ps plugin adds comic book support to zathura by using the \
+    libarchive library.
+
+homepage            http://pwmt.org/projects/zathura/plugins/
+
+master_sites        http://pwmt.org/projects/zathura-cb/download/
+distname            zathura-cb-${version}
+
+checksums           \
+    rmd160 3eb7c71047b7f6c3e3f4c165cdb7ad2ddea700e3 \
+    sha256 72b20e2de452ccb8428fe0007bf12cee06c3422eac8e5e3b2c0ecbc9848850e0
+
+patch.pre_args      -p1
+patchfiles          patch-Makefile.diff \
+                    patch-config.mk.diff
+
+depends_build       port:pkgconfig
+
+depends_lib         port:desktop-file-utils \
+                    port:libarchive \
+                    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-cb-(\[0-9.\]+)${extract.suffix}


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

Added: trunk/dports/office/zathura-plugin-cb/files/patch-Makefile.diff
===================================================================
--- trunk/dports/office/zathura-plugin-cb/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-cb/files/patch-Makefile.diff	2014-08-16 21:10:39 UTC (rev 123974)
@@ -0,0 +1,57 @@
+diff --git a/Makefile b/Makefile
+index cdeae8b..6d4cb3a 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 $(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
+@@ -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-cb/files/patch-config.mk.diff
===================================================================
--- trunk/dports/office/zathura-plugin-cb/files/patch-config.mk.diff	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-cb/files/patch-config.mk.diff	2014-08-16 21:10:39 UTC (rev 123974)
@@ -0,0 +1,38 @@
+diff --git a/config.mk b/config.mk
+index 63051ad..53bfc29 100644
+--- a/config.mk
++++ b/config.mk
+@@ -22,16 +22,19 @@ CAIRO_LIB ?= $(shell pkg-config --libs cairo)
+ LIBARCHIVE_INC ?= $(shell pkg-config --cflags libarchive)
+ LIBARCHIVE_LIB ?= $(shell pkg-config --libs libarchive)
+ 
+-GLIB_INC ?= $(shell pkg-config --cflags glib-2.0)
+-GLIB_LIB ?= $(shell pkg-config --libs   glib-2.0)
++GLIB_INC ?= $(shell pkg-config --cflags glib-2.0 gio-2.0)
++GLIB_LIB ?= $(shell pkg-config --libs   glib-2.0 gio-2.0)
++
++GDK_INC ?= $(shell pkg-config --cflags gdk-pixbuf-2.0 gdk-${ZATHURA_GTK_VERSION}.0)
++GDK_LIB ?= $(shell pkg-config --libs   gdk-pixbuf-2.0 gdk-${ZATHURA_GTK_VERSION}.0)
+ 
+ GIRARA_INC ?= $(shell pkg-config --cflags girara-gtk${ZATHURA_GTK_VERSION})
+ GIRARA_LIB ?= $(shell pkg-config --libs girara-gtk${ZATHURA_GTK_VERSION})
+ 
+ ZATHURA_INC ?= $(shell pkg-config --cflags zathura)
+ 
+-INCS = ${GIRARA_INC} ${GLIB_INC} ${ZATHURA_INC} ${LIBARCHIVE_INC}
+-LIBS = ${GIRARA_LIB} ${GLIB_LIB} ${LIBARCHIVE_LIB}
++INCS = ${GIRARA_INC} ${GDK_INC} ${GLIB_INC} ${ZATHURA_INC} ${LIBARCHIVE_INC}
++LIBS = ${GIRARA_LIB} ${GDK_LIB} ${GLIB_LIB} ${LIBARCHIVE_LIB}
+ 
+ # plugindir
+ PLUGINDIR ?= $(shell pkg-config --variable=plugindir zathura)
+@@ -42,6 +45,9 @@ endif
+ # 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/9c98a35b/attachment.html>


More information about the macports-changes mailing list