# -*- 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           cmake 1.0
PortGroup           github 1.0

github.setup        coolwanglu pdf2htmlEX 43e3174cbc
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                pdf2htmlex
version             0.11
revision            23
categories          textproc
maintainers         iapa.in:iapain openmaintainer
license             GPL-2 GPL-3
description         A PDF to HTML converter
long_description    Convert PDF to HTML without losing formatting. \
                    Text is preserved as much as possible.

homepage            https://coolwanglu.github.io/pdf2htmlEX/

checksums           rmd160  ee5b354ad260398e9408bfe832ae184a61d4a9a3 \
                    sha256  ff745f8d78bb0dc084d5e9f8eaa6efc8f6ef1e77d6971f3a4722201f29b61f41

depends_lib-append  port:fontforge \
                    port:pkgconfig \
                    path:lib/pkgconfig/poppler.pc:poppler \
                    port:poppler-data

patchfiles          patch-poppler-0.31.diff

# blacklist compilers that don't support C++0x
compiler.blacklist  *gcc* {clang < 300}

cmake.out_of_source yes

# TODO: newer versions require FontForge 2 which is not yet in MacPorts
livecheck.type      none
