Ticket #21372: Portfile.diff

File Portfile.diff, 4.2 KB (added by adfernandes (Andrew Fernandes), 14 years ago)
  • Portfile

     
    33PortSystem 1.0
    44
    55name                qscintilla
    6 version             2.4
     6version             2.4.2
    77categories          devel
    8 maintainers         nomaintainer
     8maintainers         adfernandes openmaintainer
    99description         QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor control.
    1010homepage            http://www.riverbankcomputing.com/software/qscintilla/
    1111platforms           darwin
    1212
    13 long_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.
     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.
    2323
     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
    2429distname            QScintilla-gpl-${version}
    2530master_sites        http://www.riverbankcomputing.com/static/Downloads/QScintilla2/
    2631
    27 checksums           md5     dd69520ec91f1acb97a4eb74ddde37c9 \
    28                     sha1    17962bb64d2641f9e181b39fdca39228170488a3 \
    29                     rmd160  19e5d5c331705c217c5192b1fcac5d298942db69
     32checksums           sha1    17852eedaf3dfc8e8af32249d72130ddd3564019
    3033
    31 depends_lib         path:bin/qmake-mac:qt4-mac \
    32                     path:bin/python:python25
     34depends_lib         port:qt4-mac
    3335
    3436universal_variant   no
    3537
    3638set qt_dir          ${prefix}/libexec/qt4-mac
    3739
    38 configure.dir       ${worksrcpath}/Qt4
    39 configure.pre_args  INSTALLDIR=${prefix}/lib
    40 configure.cmd       ${qt_dir}/bin/qmake qscintilla.pro
     40configure.env       QTDIR=${qt_dir}
     41configure.cmd       "cd ${worksrcpath}/Qt4; ${qt_dir}/bin/qmake qscintilla.pro; \
     42                     cd ${worksrcpath}/designer-Qt4; ${qt_dir}/bin/qmake designer.pro; \
     43                     echo"
    4144
    42 build.dir           ${worksrcpath}/Qt4
     45build.env           QTDIR=${qt_dir} CPLUS_INCLUDE_PATH=${worksrcpath}/Qt4 LIBRARY_PATH=${worksrcpath}/Qt4
     46build.cmd           "cd ${worksrcpath}/Qt4; make; cd ${worksrcpath}/designer-Qt4; make; echo"
    4347
    44 build.env           QTDIR=${qt_dir} PREFIX=${prefix}
     48destroot.env        QTDIR=${qt_dir} INSTALL_ROOT=${destroot}
     49destroot.cmd        "cd ${worksrcpath}/Qt4; make install; cd ${worksrcpath}/designer-Qt4; make install; echo"
    4550
    4651post-build {
    4752        system "install_name_tool -id   \
     
    4954                ${worksrcpath}/Qt4/libqscintilla2.5.dylib"
    5055}
    5156
    52 post-activate {
    53         system "cd ${worksrcpath}/Python;python configure.py;make;make install"
    54 }
    55 
    56 destroot.env        QTDIR=${qt_dir} INSTALL_ROOT=${destroot}
    57 
    58 ## post-configure {
    59 ##         system "cd ${worksrcpath}/clib/qtc && qmake qtc.pro INSTALLDIR=${prefix}/lib -o Makefile"
    60 ##         reinplace "s;-lqt;-lqt-mt;" ${worksrcpath}/clib/qtc/Makefile
    61 ## }
    62 
    63 
    64 #
    65 ##EOF
     57livecheck.type      regex
     58livecheck.url       ${master_sites}
     59livecheck.regex     QScintilla-gpl-\(\\d+.\\d+.\\d+\).tar.gz