[146531] trunk/dports/editors

mojca at macports.org mojca at macports.org
Thu Mar 10 21:07:48 PST 2016


Revision: 146531
          https://trac.macports.org/changeset/146531
Author:   mojca at macports.org
Date:     2016-03-10 21:07:48 -0800 (Thu, 10 Mar 2016)
Log Message:
-----------
texworks: new port (closes #16055)

Added Paths:
-----------
    trunk/dports/editors/texworks/
    trunk/dports/editors/texworks/Portfile

Added: trunk/dports/editors/texworks/Portfile
===================================================================
--- trunk/dports/editors/texworks/Portfile	                        (rev 0)
+++ trunk/dports/editors/texworks/Portfile	2016-03-11 05:07:48 UTC (rev 146531)
@@ -0,0 +1,49 @@
+# -*- 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
+
+set git_date        20160308
+github.setup        TeXworks texworks 3d12bb7
+version             0.5.0-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  734b57a9b824eb4ffdb47d1485d41cfea7f66dca \
+                    sha256  e0570a3242079fa4ab52500ec234f582a17e15b51f8d04c5da16111f9fc48def
+
+depends_lib         port:hunspell \
+                    port:zlib
+
+cmake.out_of_source yes
+
+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 (doesn't work properly yet)} {
+    PortGroup               qt5 1.0
+    # https://trac.macports.org/ticket/47025
+    depends_lib-append      port:poppler-qt5-mac
+    configure.args-append   -DDESIRED_QT_VERSION=5
+}
+
+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}
+}


Property changes on: trunk/dports/editors/texworks/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160310/7e1c4dda/attachment.html>


More information about the macports-changes mailing list