# -*- 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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           qmake5 1.0

qt5.depends_component qtwebkit qtsvg

github.setup        wkhtmltopdf wkhtmltopdf 0.12.3.2
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums           rmd160  67017d05e0455e26e39cf8c6307a3665d0dec853 \
                    sha256  547111465b61b2aa0e1a658209b53682259c038100552ba40dba4e74b12c5d5d

maintainers         nomaintainer
categories          textproc www

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.

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}"
