Ticket #23956: Portfile.4

File Portfile.4, 2.7 KB (added by dsdale24@…, 14 years ago)

qscintilla Portfile

Line 
1# $Id: Portfile 65097 2010-03-22 03:03:11Z adfernandes@macports.org $
2
3PortSystem 1.0
4
5name                qscintilla
6version             2.4.4
7categories          devel
8maintainers         adfernandes openmaintainer
9description         QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor control.
10homepage            http://www.riverbankcomputing.com/software/qscintilla/
11platforms           darwin
12
13long_description    QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor control. \
14                        As well as features found in standard text editing components,          \
15                        QScintilla includes features especially useful when editing and         \
16                        debugging source code. These include support for syntax styling,        \
17                        error indicators, code completion and call tips. The selection          \
18                        margin can contain markers like those used in debuggers to indicate     \
19                        breakpoints and the current line. Styling choices are more open         \
20                        than with many editors, allowing the use of proportional fonts,         \
21                        bold and italics, multiple foreground and background colours and        \
22                        multiple fonts. See the py*-qscintilla port to install python bindings.
23
24#
25# NOTE: the version of this port must be kept in sync with the 'py*-qscintilla' port(s),
26#       since they contain the python bindings!
27#
28
29distname            QScintilla-gpl-${version}
30master_sites        http://www.riverbankcomputing.com/static/Downloads/QScintilla2/ \
31                    http://gentoo.mirrors.easynews.com/linux/gentoo/distfiles/ \
32                    http://www.gtlib.gatech.edu/pub/gentoo/distfiles/ \
33                    http://gentoo.osuosl.org/distfiles/
34
35checksums           sha1    4b6ecb8090a546b14fa4c0ce86ff2c7e97261005
36
37depends_lib         port:qt4-mac
38
39universal_variant   no
40
41set qt_dir          ${prefix}/libexec/qt4-mac
42
43configure.env       QTDIR=${qt_dir}
44configure.cmd       "cd ${worksrcpath}/Qt4; ${qt_dir}/bin/qmake qscintilla.pro; \
45                     cd ${worksrcpath}/designer-Qt4; ${qt_dir}/bin/qmake designer.pro; \
46                     echo"
47
48build.env           QTDIR=${qt_dir} CPLUS_INCLUDE_PATH=${worksrcpath}/Qt4 LIBRARY_PATH=${worksrcpath}/Qt4
49build.cmd           "cd ${worksrcpath}/Qt4; make; cd ${worksrcpath}/designer-Qt4; make; echo"
50
51destroot.env        QTDIR=${qt_dir} INSTALL_ROOT=${destroot}
52destroot.cmd        "cd ${worksrcpath}/Qt4; make install; cd ${worksrcpath}/designer-Qt4; make install; echo"
53
54post-build {
55        system "install_name_tool -id   \
56                ${qt_dir}/lib/libqscintilla2.5.dylib    \
57                ${worksrcpath}/Qt4/libqscintilla2.5.dylib"
58}
59
60livecheck.type      regex
61livecheck.url       ${master_sites}
62livecheck.regex     QScintilla-gpl-\(\\d+.\\d+.\\d+\).tar.gz