source: trunk/dports/editors/texstudio/Portfile @ 110671

Last change on this file since 110671 was 110671, checked in by jeremyhu@…, 7 years ago

texstudio: Adjust blacklisting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- 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
2# $Id: Portfile 110671 2013-09-03 05:49:44Z jeremyhu@macports.org $
3
4PortSystem              1.0
5PortGroup               qt4 1.0
6
7name                    texstudio
8version                 2.5.1
9categories              editors
10platforms               darwin
11license                 GPL-2+
12maintainers             nomaintainer
13supported_archs         i386 x86_64
14
15description             TeX editor
16
17long_description        texstudio is a TeX editor forked off texmarker.
18
19homepage                http://texstudio.sourceforge.net/
20master_sites            sourceforge:project/texstudio/texstudio/TeXstudio%20${version}
21extract.suffix          .orig.tar.gz
22
23checksums               rmd160  e2b90518a60b4c70771a4885e920a324d68ceb60 \
24                        sha256  7f7ae53818d74a06fffef81e1aa9552badd85045a9953b13f28d15b393962015
25
26depends_lib-append      port:poppler
27
28if {![file exists ${prefix}/lib/libpoppler-qt4.dylib]} {
29    depends_lib-delete port:poppler
30    pre-configure {
31        ui_error "
32****
33**** ${name} requires port poppler installed with the variants +qt4 +quartz.
34**** Please do the following then try installing ${name} again:
35****
36****     sudo port install poppler +qt4 +quartz
37****
38
39"
40        return -code error "incompatible poppler installation"
41    }
42}
43
44pre-patch {
45    # DOS to UNIX line endings so we can patch
46    reinplace "s|\r||g" ${worksrcpath}/texstudio.pro
47}
48
49patchfiles              patch-texstudio.pro.diff
50
51post-patch {
52    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/texstudio.pro
53}
54
55# error: unable to read PCH file: 'Is a directory'
56# https://bugreports.qt-project.org/browse/QTBUG-27018
57compiler.blacklist      *clang*
58
59universal_variant       no
60
61configure.cmd           ${qt_qmake_cmd}
62configure.pre_args      PREFIX=${prefix}
63configure.args-append   CONFIG+="${qt_arch_types}"
64
65build.args              CC="${configure.cc} [get_canonical_archflags cc]" \
66                        CXX="${configure.cxx} [get_canonical_archflags cxx]" \
67                        LINK="${configure.cxx} [get_canonical_archflags cxx]"
68
69destroot {
70    copy ${worksrcpath}/texstudio.app ${destroot}${applications_dir}
71    ln -s ${applications_dir}/texstudio.app/Contents/MacOS/texstudio ${destroot}${prefix}/bin/texstudio
72}
Note: See TracBrowser for help on using the repository browser.