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

name                texmaker
version             5.1.4
revision            0
checksums           rmd160  9f8fb10034edd223727dc93a39b9f43c3bac5471 \
                    sha256  320504d62b71b591c06b7d0b1202ac750a3112fe2ca328e30580055eb308fea6 \
                    size    15277027

categories          tex editors
license             GPL-2
maintainers         {harens @harens} openmaintainer

description         Free cross-platform LaTeX editor since 2003
long_description    Texmaker is a free, modern and cross-platform LaTeX editor \
                    that integrates many tools needed to develop documents with LaTeX, \
                    in just one application.

master_sites        https://www.xm1math.net/texmaker/
homepage            ${master_sites}
use_bzip2           yes

qt5.depends_component \
                    qtwebengine

depends_run         port:ghostscript \
                    port:texlive

patchfiles          implicit.patch \
                    zutil.h.patch

destroot {
    copy ${worksrcpath}/${name}.app ${destroot}${applications_dir}
}

notes "
To allow ${name} to find the tex commands, add the following to Preferences -> Commands -> Add to PATH:
  ${prefix}/bin
"

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex DOWNLOAD version (\[0-9.\]+)
