source: trunk/dports/devel/qscintilla/Portfile

Last change on this file was 150903, checked in by michaelld@…, 14 months ago

Qsci: update to 2.9.3.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 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 150903 2016-08-01 19:05:11Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup           qt4 1.0
6
7name                qscintilla
8
9# NOTE: The version of this port must be kept in sync with the
10# 'py*-qscintilla' port(s), since they contain the python bindings!
11
12version             2.9.3
13checksums           rmd160 18c5ae739a3d62e55bf35b98a3ab893cb278e3e6 \
14                    sha256 98aab93d73b05635867c2fc757acb383b5856a0b416e3fd7659f1879996ddb7e
15
16categories          devel
17license             {GPL-2 GPL-3 OpenSSLException}
18maintainers         michaelld openmaintainer
19description         QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor control.
20homepage            http://www.riverbankcomputing.com/software/qscintilla/
21platforms           darwin
22
23long_description    QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor control. \
24                        As well as features found in standard text editing components,          \
25                        QScintilla includes features especially useful when editing and         \
26                        debugging source code. These include support for syntax styling,        \
27                        error indicators, code completion and call tips. The selection          \
28                        margin can contain markers like those used in debuggers to indicate     \
29                        breakpoints and the current line. Styling choices are more open         \
30                        than with many editors, allowing the use of proportional fonts,         \
31                        bold and italics, multiple foreground and background colours and        \
32                        multiple fonts. See the py*-qscintilla port to install python bindings.
33
34distname            QScintilla_gpl-${version}
35master_sites        sourceforge:pyqt
36
37# fix up QMake .pro files for +debug, if selected; also fixed up the
38# library and header paths to include .. and ../Qt4 before others.
39patchfiles-append   patch-add_debug.diff
40
41patchfiles-append   patch-remove_extern.diff
42
43post-patch {
44    # allow for universal and non-native building, if desired, by
45    # fixing up the QMake .pro files.
46    reinplace "s/@ARCHES@/${qt_arch_types}/" \
47        ${worksrcpath}/Qt4Qt5/qscintilla.pro
48    reinplace "s/@ARCHES@/${qt_arch_types}/" \
49        ${worksrcpath}/designer-Qt4Qt5/designer.pro
50
51    # fix up 'Platform.h's, to avoid a conflict with the port 'tidy's
52    # 'platform.h'.
53    foreach fixfile [exec grep -lr \"Platform\.h\" ${worksrcpath}] {
54        reinplace -locale C "s@\"Platform\.h\"@\"include/Platform\.h\"@g" ${fixfile}
55    }
56
57    # fix up .pro files to handle debug and release
58    set build_type "release"
59    if {[variant_isset debug]} {
60        set build_type "debug_and_release build_all"
61    }
62    reinplace "s/@BUILD_TYPE@/${build_type}/" \
63        ${worksrcpath}/designer-Qt4Qt5/designer.pro
64    reinplace "s/@BUILD_TYPE@/${build_type}/" \
65        ${worksrcpath}/Qt4Qt5/qscintilla.pro
66
67    # drop in a simple QMake file, for easy building
68    copy ${filespath}/Qsci.pro ${worksrcpath}
69
70    # rename QMake .pro files in subdirs to work with top-level file
71    move ${worksrcpath}/Qt4Qt5/qscintilla.pro \
72        ${worksrcpath}/Qt4Qt5/Qt4Qt5.pro
73    move ${worksrcpath}/designer-Qt4Qt5/designer.pro \
74        ${worksrcpath}/designer-Qt4Qt5/designer-Qt4Qt5.pro
75}
76
77# QMake does not handle this flag.
78configure.universal_args-delete --disable-dependency-tracking
79configure.args-delete  --disable-dependency-tracking
80
81configure.pre_args
82configure.cmd ${qt_qmake_cmd}
83
84# allow ccache, if specified by the user
85pre-build {
86    if {[tbool configure.ccache]} {
87        build.post_args "CCACHE=ccache"
88    }
89}
90
91variant debug \
92description {Produce both release and debug library and plugin} {}
93
94livecheck.type      regex
95livecheck.url       ${homepage}download
96livecheck.regex     >QScintilla\[_-\]gpl-\(\[0-9.\]+\)${extract.suffix}<
Note: See TracBrowser for help on using the repository browser.