[149650] trunk/dports/textproc

cal at macports.org cal at macports.org
Tue Jun 28 10:13:58 PDT 2016


Revision: 149650
          https://trac.macports.org/changeset/149650
Author:   cal at macports.org
Date:     2016-06-28 10:13:58 -0700 (Tue, 28 Jun 2016)
Log Message:
-----------
new port: wkhtmltopdf, a CLI html to pdf converter

Closes #44842

Added Paths:
-----------
    trunk/dports/textproc/wkhtmltopdf/
    trunk/dports/textproc/wkhtmltopdf/Portfile
    trunk/dports/textproc/wkhtmltopdf/files/
    trunk/dports/textproc/wkhtmltopdf/files/patch-src_image_image.pro-use-osx-loader-variable.diff
    trunk/dports/textproc/wkhtmltopdf/files/patch-src_lib_lib.pro-set-install-name.diff
    trunk/dports/textproc/wkhtmltopdf/files/patch-src_pdf_pdf.pro-use-osx-loader-variable.diff

Added: trunk/dports/textproc/wkhtmltopdf/Portfile
===================================================================
--- trunk/dports/textproc/wkhtmltopdf/Portfile	                        (rev 0)
+++ trunk/dports/textproc/wkhtmltopdf/Portfile	2016-06-28 17:13:58 UTC (rev 149650)
@@ -0,0 +1,33 @@
+# -*- 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
+PortGroup           github 1.0
+PortGroup           qmake5 1.0
+
+github.setup        wkhtmltopdf wkhtmltopdf 0.12.3.2
+checksums           rmd160  67017d05e0455e26e39cf8c6307a3665d0dec853 \
+                    sha256  547111465b61b2aa0e1a658209b53682259c038100552ba40dba4e74b12c5d5d
+
+maintainers         cal openmaintainer
+categories          textproc www
+platforms           darwin
+
+homepage            http://wkhtmltopdf.org/
+license             LGPL-3+
+description         Convert HTML to PDF using Webkit
+long_description    \
+    wkhtmltopdf and wkhtmltoimage are open source (LGPLv3) command line tools \
+    to render HTML into PDF and various image formats using the Qt WebKit \
+    rendering engine. These run entirely "headless" and do not require \
+    a display or display service.
+
+depends_lib-append  port:qt5-qtwebkit \
+                    port:qt5-qtsvg
+
+patchfiles          patch-src_image_image.pro-use-osx-loader-variable.diff \
+                    patch-src_lib_lib.pro-set-install-name.diff \
+                    patch-src_pdf_pdf.pro-use-osx-loader-variable.diff
+
+configure.pre_args-append \
+                    "INSTALLBASE=${prefix}"


Property changes on: trunk/dports/textproc/wkhtmltopdf/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/textproc/wkhtmltopdf/files/patch-src_image_image.pro-use-osx-loader-variable.diff
===================================================================
--- trunk/dports/textproc/wkhtmltopdf/files/patch-src_image_image.pro-use-osx-loader-variable.diff	                        (rev 0)
+++ trunk/dports/textproc/wkhtmltopdf/files/patch-src_image_image.pro-use-osx-loader-variable.diff	2016-06-28 17:13:58 UTC (rev 149650)
@@ -0,0 +1,17 @@
+Use DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH on OS X
+
+OS X does not use LD_LIBRARY_PATH to define additional loader paths. To find
+the wkhtmltox library before installation, DYLD_LIBRARY_PATH needs to be set.
+
+Upstream-Status: Pending
++++ src/image/image.pro.orig	2016-06-28 18:50:52.000000000 +0200
+--- src/image/image.pro	2016-06-28 18:51:19.000000000 +0200
+@@ -32,6 +32,8 @@
+ }
+ 
+ macx {
++    man.extra=DYLD_LIBRARY_PATH=../../bin/ ../../bin/wkhtmltoimage --manpage | gzip > $(INSTALL_ROOT)$$INSTALLBASE/share/man/man1/wkhtmltoimage.1.gz
++
+     CONFIG -= app_bundle
+ }
+ 

Added: trunk/dports/textproc/wkhtmltopdf/files/patch-src_lib_lib.pro-set-install-name.diff
===================================================================
--- trunk/dports/textproc/wkhtmltopdf/files/patch-src_lib_lib.pro-set-install-name.diff	                        (rev 0)
+++ trunk/dports/textproc/wkhtmltopdf/files/patch-src_lib_lib.pro-set-install-name.diff	2016-06-28 17:13:58 UTC (rev 149650)
@@ -0,0 +1,20 @@
+Set library install name on OS X
+
+Libraries on OS X contain their own installation path as so-called "install
+name". Set this to the installation path to make sure wkhtmltopdf can find its
+libraries regardless of where it is installed.
+
+Upstream-Status: Pending
+--- src/lib/lib.pro.orig	2016-06-28 18:59:19.000000000 +0200
++++ src/lib/lib.pro	2016-06-28 19:03:32.000000000 +0200
+@@ -33,6 +33,10 @@
+    INSTALLS += headers
+ }
+ 
++macx {
++    QMAKE_LFLAGS_SONAME = -Wl,-install_name,$$INSTALLBASE/lib/
++}
++
+ windows {
+    TARGET_EXT=.dll
+ }

Added: trunk/dports/textproc/wkhtmltopdf/files/patch-src_pdf_pdf.pro-use-osx-loader-variable.diff
===================================================================
--- trunk/dports/textproc/wkhtmltopdf/files/patch-src_pdf_pdf.pro-use-osx-loader-variable.diff	                        (rev 0)
+++ trunk/dports/textproc/wkhtmltopdf/files/patch-src_pdf_pdf.pro-use-osx-loader-variable.diff	2016-06-28 17:13:58 UTC (rev 149650)
@@ -0,0 +1,17 @@
+Use DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH on OS X
+
+OS X does not use LD_LIBRARY_PATH to define additional loader paths. To find
+the wkhtmltox library before installation, DYLD_LIBRARY_PATH needs to be set.
+
+Upstream-Status: Pending
+--- src/pdf/pdf.pro.orig	2016-06-28 18:41:21.000000000 +0200
++++ src/pdf/pdf.pro	2016-06-28 18:43:33.000000000 +0200
+@@ -32,6 +32,8 @@
+ }
+ 
+ macx {
++    man.extra=DYLD_LIBRARY_PATH=../../bin ../../bin/wkhtmltopdf --manpage | gzip > $(INSTALL_ROOT)$$INSTALLBASE/share/man/man1/wkhtmltopdf.1.gz
++
+     CONFIG -= app_bundle
+ }
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160628/ec41a8cc/attachment.html>


More information about the macports-changes mailing list