source: trunk/dports/editors/texstudio/Portfile

Last change on this file was 115966, checked in by devans@…, 4 years ago

previous depedents of poppler +qt4 +quartz: now depend on poppler-qt4-mac and drop poppler active variant checks, rebuild not required.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 115966 2014-01-15 16:51:19Z ryandesign@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-qt4-mac
27
28pre-patch {
29    # DOS to UNIX line endings so we can patch
30    reinplace "s|\r||g" ${worksrcpath}/texstudio.pro
31}
32
33patchfiles              patch-texstudio.pro.diff
34
35post-patch {
36    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/texstudio.pro
37}
38
39# error: unable to read PCH file: 'Is a directory'
40# https://bugreports.qt-project.org/browse/QTBUG-27018
41compiler.blacklist      *clang*
42
43universal_variant       no
44
45configure.cmd           ${qt_qmake_cmd}
46configure.pre_args      PREFIX=${prefix}
47configure.args-append   CONFIG+="${qt_arch_types}"
48
49build.args              CC="${configure.cc} [get_canonical_archflags cc]" \
50                        CXX="${configure.cxx} [get_canonical_archflags cxx]" \
51                        LINK="${configure.cxx} [get_canonical_archflags cxx]"
52
53destroot {
54    copy ${worksrcpath}/texstudio.app ${destroot}${applications_dir}
55    ln -s ${applications_dir}/texstudio.app/Contents/MacOS/texstudio ${destroot}${prefix}/bin/texstudio
56}
Note: See TracBrowser for help on using the repository browser.