[98947] trunk/dports/editors

ryandesign at macports.org ryandesign at macports.org
Sun Oct 21 19:22:21 PDT 2012


Revision: 98947
          http://trac.macports.org//changeset/98947
Author:   ryandesign at macports.org
Date:     2012-10-21 19:22:21 -0700 (Sun, 21 Oct 2012)
Log Message:
-----------
texstudio: new port, version 2.5 (#36671)

Added Paths:
-----------
    trunk/dports/editors/texstudio/
    trunk/dports/editors/texstudio/Portfile
    trunk/dports/editors/texstudio/files/
    trunk/dports/editors/texstudio/files/patch-texstudio.pro.diff

Added: trunk/dports/editors/texstudio/Portfile
===================================================================
--- trunk/dports/editors/texstudio/Portfile	                        (rev 0)
+++ trunk/dports/editors/texstudio/Portfile	2012-10-22 02:22:21 UTC (rev 98947)
@@ -0,0 +1,72 @@
+# -*- 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               qt4 1.0
+
+name                    texstudio
+version                 2.5
+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 texmarker.
+
+homepage                http://texstudio.sourceforge.net/
+master_sites            sourceforge:project/texstudio/texstudio/TeXstudio%20${version}
+
+checksums               rmd160  f72a092657f4f401841611f717f99e7840ca2f63 \
+                        sha256  0e24af04aa6ab6e4b52c6c787c4a5687c3208457ad3bb5eb670b9703bb529d2a
+
+depends_lib-append      port:poppler
+
+if {![file exists ${prefix}/lib/libpoppler-qt4.dylib]} {
+    depends_lib-delete port:poppler
+    pre-configure {
+        ui_error "
+****
+**** ${name} requires port poppler installed with the variants +qt4 +quartz.
+**** Please do the following then try installing ${name} again:
+****
+****     sudo port install poppler +qt4 +quartz
+****
+
+"
+        return -code error "incompatible poppler installation"
+    }
+}
+
+worksrcdir              ${name}${version}
+
+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
+}
+
+# error: unable to read PCH file: 'Is a directory'
+compiler.blacklist      clang
+
+universal_variant       no
+
+configure.cmd           ${qt_qmake_cmd}
+configure.pre_args      PREFIX=${prefix}
+configure.args-append   CONFIG+="${qt_arch_types}"
+
+build.args              CC="${configure.cc} [get_canonical_archflags cc]" \
+                        CXX="${configure.cxx} [get_canonical_archflags cxx]" \
+                        LINK="${configure.cxx} [get_canonical_archflags cxx]"
+
+destroot {
+    copy ${worksrcpath}/texstudio.app ${destroot}${applications_dir}
+    ln -s ${applications_dir}/texstudio.app/Contents/MacOS/texstudio ${destroot}${prefix}/bin/texstudio
+}


Property changes on: trunk/dports/editors/texstudio/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/editors/texstudio/files/patch-texstudio.pro.diff
===================================================================
--- trunk/dports/editors/texstudio/files/patch-texstudio.pro.diff	                        (rev 0)
+++ trunk/dports/editors/texstudio/files/patch-texstudio.pro.diff	2012-10-22 02:22:21 UTC (rev 98947)
@@ -0,0 +1,32 @@
+--- texstudio.pro.orig	2012-10-20 17:38:24.000000000 -0500
++++ texstudio.pro	2012-10-20 17:38:24.000000000 -0500
+@@ -2,6 +2,7 @@
+ LANGUAGE = C++
+ DESTDIR = ./
+ CONFIG += qt precompile_header uitools
++CONFIG -= debug
+ exists(texmakerx_my.pri):include(texmakerx_my.pri)
+ QT += network \
+     xml \
+@@ -255,8 +256,7 @@
+     config += unix
+     
+     # #universal tiger
+-    CONFIG += link_prl \
+-        x86_64
++    CONFIG += link_prl
+     
+     # QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk
+     # QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4
+@@ -524,9 +524,8 @@
+             -lz
+     }
+     macx { 
+-        INCLUDEPATH += /usr/local/include/poppler/qt4
+-        LIBS += -L/usr/lib \
+-            -L/usr/local/lib \
++        INCLUDEPATH += @PREFIX@/include/poppler/qt4
++        LIBS += -L at PREFIX@/lib \
+             -lpoppler-qt4 \
+             -lz
+     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121021/9a48ece7/attachment.html>


More information about the macports-changes mailing list