Ticket #30269: patch-Portfile.diff

File patch-Portfile.diff, 6.7 KB (added by nicos_pavlov@…, 13 years ago)

patch to the original portfile

  • Portfile

    old new  
    22PortGroup           qt4 1.0
    33
    44name                qtiplot
    5 version             0.9.8.3
    6 revision            2
     5version             0.9.8.7
    76categories          aqua science
    87maintainers         jonas openmaintainer
    98
     
    1918homepage            http://soft.proindependent.com/qtiplot.html
    2019master_sites        http://download.berlios.de/qtiplot/
    2120
    22 distfiles           ${distname}.zip \
    23                     QTeXEngine-0.2-opensource.zip \
    24                     liborigin2-13092010.zip
     21distfiles           ${distname}.zip
    2522
    2623depends_lib-append  path:bin/qmake-mac:qt4-mac \
    2724                    port:muparser \
     
    3128                    port:zlib
    3229
    3330checksums           qtiplot-${version}.zip \
    34                     md5     c90e9dc08e03dc1cd0db19dfe8941f0c \
    35                     sha1    35dec539fb20b8c7ca121cca11f7b800b4ff0c6b \
    36                     rmd160  2b0fd5b710d2752a1a413f83cbee9daf1e88edbf \
    37                     QTeXEngine-0.2-opensource.zip \
    38                     md5     fc2fe7f3fdb9e06c00d1f5c3c3e68920 \
    39                     sha1    b484a4da7a0f3103e188539bfa6c1910dc9b55ca \
    40                     rmd160  76ff1f2f96cd6df0ea5e6965013e0db452c55f09 \
    41                     liborigin2-13092010.zip \
    42                     md5     e2b41c4d8a1e2d357dd2b5b331d31375 \
    43                     sha1    3f17d5a8c484ddb864a29a91a94d677b0b3b18d7 \
    44                     rmd160  df7f4bafc1b9815c5921c09b435f431d8a1947e6
    45 
    46 patchfiles          patch-ApplicationWindow.diff
     31                    md5     cd571f88cde988734b7acf5db9917afc \
     32                    sha1    8c4b39a2e5997b2e9a8a2ec2a41ac8395661bbe6 \
     33                    rmd160  2a69ae9c2ab836cc8170fc71eb581b605ba6e7b6
     34
     35patchfiles          patch-ApplicationWindow.diff \
     36                    patch-qti.sip.diff \
     37                    patch-scripting.pri.diff
    4738
    4839use_zip             yes
    4940
     
    6758    puts $confFD "QWT_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwt/src"
    6859    puts $confFD "QWT_LIBS = \$\$QTI_ROOT/3rdparty/qwt/lib/libqwt.a"
    6960    puts $confFD "QWT3D_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwtplot3d/include"
    70     puts $confFD "unix:QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a"
     61    puts $confFD "QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a"
    7162    puts $confFD "LIBPNG_LIBS = -lpng"
    72     puts $confFD "TEX_ENGINE_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/QTeXEngine/src"
    73     puts $confFD "TEX_ENGINE_LIBS = \$\$QTI_ROOT/3rdparty/QTeXEngine/libQTeXEngine.a"
    74     if {[variant_isset origin]} {
    75       puts $confFD "LIBORIGIN_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/liborigin2"
    76       puts $confFD "LIBORIGIN_LIBS = \$\$QTI_ROOT/3rdparty/liborigin2/liborigin2.a"
     63    # Forcing TamuAnova to nothing
     64    puts $confFD "TAMUANOVA_LIBS = "
     65    if {[variant_isset qtexengine]} {
     66      puts $confFD "TEX_ENGINE_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/QTeXEngine/src"
     67      puts $confFD "TEX_ENGINE_LIBS = \$\$QTI_ROOT/3rdparty/QTeXEngine/libQTeXEngine.a"
    7768    }
    7869
    79     # linking to deprecated library
    80     reinplace "s|<QAssistantClient>|\"qassistantclient.h\"|g" ${worksrcpath}/qtiplot/src/core/ApplicationWindow.cpp
    81 
    8270    # target specific configuration
    8371    puts $confFD "contains( TARGET, qtiplot ) \{"
    8472    puts $confFD "SCRIPTING_LANGS += muParser"; # currently you can't build without
    85     if {[variant_isset python25] || [variant_isset python26]} {
     73    if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
    8674        puts $confFD "SCRIPTING_LANGS += Python"
    8775    }
    8876    puts $confFD "DEFINES += SCRIPTING_CONSOLE"
     
    9886    sys.path.append(os.path.dirname(__file__))
    9987    " ${worksrcpath}/qtiplot/qtiplotrc.py
    10088
    101     if {[variant_isset origin]} {
    102       # prepare liborigin2
    103       copy ${workpath}/liborigin2 ${worksrcpath}/3rdparty/liborigin2
    104       reinplace "s|INCLUDEPATH += ../boost|INCLUDEPATH += ${prefix}/include|g" ${worksrcpath}/3rdparty/liborigin2/liborigin2.pro
    105       reinplace "s|lboost_thread|lboost_thread-mt|g" ${worksrcpath}/3rdparty/liborigin2/liborigin2.pro
    106       reinplace "s|liborigin|liborigin2|g" ${worksrcpath}/qtiplot/src/origin/origin.pri
    107     }
    108 
    109     # prepare qtexengine
    110     copy ${workpath}/QTeXEngine ${worksrcpath}/3rdparty/QTeXEngine
     89    if {[variant_isset qtexengine]} {
     90      # prepare qtexengine
     91      copy ${workpath}/QTeXEngine ${worksrcpath}/3rdparty/QTeXEngine
    11192
    112     # add 3rdparty to compilation
    113     reinplace "s|3rdparty/qwtplot3d \|3rdparty/qwtplot3d 3rdparty/QTeXEngine \|g" \
    114     ${worksrcpath}/qtiplot.pro
    115     if {[variant_isset origin]} {
    116       reinplace "s|3rdparty/QTeXEngine \|3rdparty/QTeXEngine 3rdparty/liborigin2 \|g" \
     93      # add 3rdparty to compilation
     94      reinplace "s|3rdparty/qwtplot3d \|3rdparty/qwtplot3d 3rdparty/QTeXEngine \|g" \
    11795      ${worksrcpath}/qtiplot.pro
     96
     97      # suppress examples which do not compile
     98      reinplace "/example/d" ${worksrcpath}/3rdparty/QTeXEngine/QTeXEngine.pro
    11899    }
    119100
    120101    # use system-wide libraries
     
    123104
    124105configure.pre_args  "PREFIX=${prefix}"
    125106configure.cmd   "LOCALSOFT=${prefix} ${qt_qmake_cmd}"
    126 configure.env-append QMAKESPEC=${qt_mkspecs_dir}/macx-g++
    127 build.env-append QMAKESPEC=${qt_mkspecs_dir}/macx-g++
    128107destroot.destdir INSTALL_ROOT=${destroot}
    129108
    130109destroot {
     
    152131        ${plugin_dir}
    153132}
    154133
    155 variant origin description "add support for originlab files" {
    156     depends_lib-append port:treehh
    157     patchfiles-append patch-importOPJ.cpp.diff
     134variant qtexengine description "add support for tex exportation" {
     135    distfiles-append  QTeXEngine-0.3-opensource.zip
     136    checksums-append  QTeXEngine-0.3-opensource.zip \
     137                      md5     d1b234623770ec6209b14d1b5137f2f1 \
     138                      sha1    971410ebc6b73f31a11cf473f4d9171c278271f0 \
     139                      rmd160  6f75f8e6355515cf5eb8a7b90b9acca8aa889129
    158140}
    159141
    160 variant python25 conflicts python26 description "add support for python26 scripting" {
     142variant python25 conflicts python26 python27 description "add support for python26 scripting" {
    161143    depends_lib-append port:python25 \
    162144                       port:py25-sip \
    163145                       port:py25-pyqt4
    164146}
    165147
    166 variant python26 conflicts python25 description "add support for python26 scripting" {
     148variant python26 conflicts python25 python27 description "add support for python26 scripting" {
    167149    depends_lib-append port:python26 \
    168150                       port:py26-sip \
    169151                       port:py26-pyqt4
    170152}
     153
     154variant python27 conflicts python25 python26 description "add support for python26 scripting" {
     155    depends_lib-append port:python27 \
     156                       port:py27-sip \
     157                       port:py27-pyqt4
     158}
     159 No newline at end of file