[120419] trunk/dports/office

ryandesign at macports.org ryandesign at macports.org
Tue May 27 16:05:25 PDT 2014


Revision: 120419
          https://trac.macports.org/changeset/120419
Author:   ryandesign at macports.org
Date:     2014-05-27 16:05:25 -0700 (Tue, 27 May 2014)
Log Message:
-----------
zathura-plugin-djvu: new port, version 0.2.3 (#43836)

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

Added: trunk/dports/office/zathura-plugin-djvu/Portfile
===================================================================
--- trunk/dports/office/zathura-plugin-djvu/Portfile	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-djvu/Portfile	2014-05-27 23:05:25 UTC (rev 120419)
@@ -0,0 +1,57 @@
+# -*- 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-djvu
+version             0.2.3
+categories          office
+platforms           darwin
+maintainers         gmail.com:starkhalo openmaintainer
+license             zlib
+
+description         The zathura-djvu plugin adds DjVu support to zathura.
+
+long_description    The zathura-djvu plugin adds DjVu support to zathura by \
+                    using the djvulibre library.
+
+homepage            http://pwmt.org/projects/zathura/plugins/
+master_sites        http://pwmt.org/projects/zathura-djvu/download/
+distname            zathura-djvu-${version}
+
+checksums           rmd160  30e683a033410ccbb2d494f8ef00e06f40158ee5 \
+                    sha256  c16e82d525012b788fd01c4189df93708fcffffb7dd34ca09db55005d644ed89
+
+patch.pre_args      -p1
+patchfiles          patch-Makefile.diff \
+                    patch-config.mk.diff
+
+depends_build       port:pkgconfig
+
+depends_lib         port:desktop-file-utils \
+                    port:djvulibre \
+                    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       [lindex ${master_sites} 0]
+livecheck.regex     zathura-djvu-(\[0-9.\]+)${extract.suffix}


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

Added: trunk/dports/office/zathura-plugin-djvu/files/patch-Makefile.diff
===================================================================
--- trunk/dports/office/zathura-plugin-djvu/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-djvu/files/patch-Makefile.diff	2014-05-27 23:05:25 UTC (rev 120419)
@@ -0,0 +1,57 @@
+diff --git a/Makefile b/Makefile
+index f4d4d6b..d468f3e 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-djvu/files/patch-config.mk.diff
===================================================================
--- trunk/dports/office/zathura-plugin-djvu/files/patch-config.mk.diff	                        (rev 0)
+++ trunk/dports/office/zathura-plugin-djvu/files/patch-config.mk.diff	2014-05-27 23:05:25 UTC (rev 120419)
@@ -0,0 +1,14 @@
+diff --git a/config.mk b/config.mk
+index fec4dee..7cdb149 100644
+--- a/config.mk
++++ b/config.mk
+@@ -40,6 +40,9 @@ LIBS = ${GIRARA_LIB} ${GLIB_LIB} ${DJVU_LIB}
+ # flags
+ CFLAGS += -std=c99 -fPIC -pedantic -Wall -Wno-format-zero-length -Wextra $(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/20140527/d4bce086/attachment.html>


More information about the macports-changes mailing list