# -*- 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 cmake 1.0 PortGroup github 1.0 github.setup TeXworks texworks 0.6.1 release- revision 3 # github.setup TeXworks texworks # set git_date 20160425 # version 0.6.1-git-${git_date} platforms darwin categories editors tex maintainers mojca openmaintainer license GPL-2 description Editor for TeX documents long_description TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc) documents, \ with a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean, \ simple interface accessible to casual and non-technical users. checksums rmd160 7d5a0f8a81ccf3eecc5eee13b07c746c148ef4f1 \ sha256 bbd90806a8f164eaabf53bc9e74bd8e28f6a3ef6174f9228a506554601d98c4c depends_build-append \ port:pkgconfig depends_lib port:fontconfig \ port:hunspell \ port:lua \ port:poppler \ port:texlive-bin \ port:zlib # texlive-bin is needed for synctex (but maybe there is some workaround?) # not sure why zlib is needed cmake.out_of_source yes configure.args-append -DWITH_LUA=ON \ -DWITH_MUPDF=OFF \ -DWITH_POPPLER=ON \ -DWITH_PYTHON=OFF \ -DQTPDF_VIEWER=OFF variant qt4 description {Build against Qt 4} { PortGroup qt4 1.0 depends_lib-append port:poppler-qt4-mac configure.args-append -DDESIRED_QT_VERSION=4 } variant qt5 description {Build against Qt 5} { PortGroup qt5 1.0 depends_lib-append port:poppler-qt5 configure.args-append -DDESIRED_QT_VERSION=5 } # not properly tested yet variant qtpdf description {Build with an experimental PDF viewer} { # and zlib depends_lib-append port:freetype configure.args-replace -DQTPDF_VIEWER=OFF -DQTPDF_VIEWER=ON } if { ![variant_isset qt5]} { default_variants +qt4 } post-destroot { # alternatively set the DESTDIR straight to ${destroot}${applications_dir} move ${destroot}${prefix}/TeXworks.app ${destroot}${applications_dir} }