# -*- 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 PortGroup github 1.0 github.setup texstudio-org texstudio 2.12.16 revision 1 categories editors platforms darwin license GPL-2+ maintainers nomaintainer supported_archs i386 x86_64 description TeX editor long_description TeXstudio is a TeX editor forked off Texmaker. homepage https://www.texstudio.org/ checksums rmd160 733310adc8cb0051cee45a79984264db8c75d772 \ sha256 1dc60cd1f71457b305e9fb71be677149bea00f8896bc2475b47895e1e74342e0 \ size 34527614 depends_lib-append port:poppler-qt5 \ port:hunspell \ port:quazip # dvipng is used to preview math equations, etc. depends_run-append port:dvipng qt5.depends_component qtsvg qtscript pre-patch { # DOS to UNIX line endings so we can patch reinplace "s|\r||g" ${worksrcpath}/texstudio.pro } patchfiles patch-texstudio.pro.diff post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/texstudio.pro } configure.args-append USE_SYSTEM_QUAZIP=1 USE_SYSTEM_HUNSPELL=1 universal_variant no destroot { copy ${worksrcpath}/texstudio.app ${destroot}${applications_dir} ln -s ${applications_dir}/texstudio.app/Contents/MacOS/texstudio ${destroot}${prefix}/bin/texstudio }