# -*- 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
github.setup TeXworks texworks 0.6.2 release-
# github.setup TeXworks texworks <sha>
# version 0.6.2-git-${git_date}
maintainers {mojca @mojca} openmaintainer
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 1882b85801f6c07e703ac2448af94196d47c58ed \
sha256 12da6827fd34efd087a840bc5db1a5bee587a956dd6548ff5d1b6b6eee9739c9 \
depends_lib port:fontconfig \
# not sure why zlib is needed
configure.args-append -DWITH_LUA=ON \
-DPREFER_BUNDLED_SYNCTEX=ON
variant qt4 description {Build against Qt 4} {
depends_lib-append port:poppler-qt4-mac
configure.args-append -DDESIRED_QT_VERSION=4
configure.env-append PKG_CONFIG_PATH="${prefix}/libexec/poppler-qt4-mac/lib/pkgconfig:${prefix}/lib/pkgconfig"
# TODO: doesn't work at the moment
variant qt5 description {Build against Qt 5} {
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} {
depends_lib-append port:freetype
configure.args-replace -DQTPDF_VIEWER=OFF -DQTPDF_VIEWER=ON