New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80967


Ignore:
Timestamp:
07/22/11 10:33:46 (4 years ago)
Author:
macsforever2000@…
Message:

qtiplot: Update to version 0.9.8.7. Add python27 variant. (#30269)

Location:
trunk/dports/aqua/qtiplot
Files:
2 added
3 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/qtiplot/Portfile

    r79078 r80967  
    66 
    77name                qtiplot 
    8 version             0.9.8.3 
    9 revision            2 
     8version             0.9.8.7 
    109categories          aqua science 
    1110maintainers         jonas openmaintainer 
     
    2322master_sites        http://download.berlios.de/qtiplot/ 
    2423 
    25 distfiles           ${distname}.zip \ 
    26                     QTeXEngine-0.2-opensource.zip \ 
    27                     liborigin2-13092010.zip 
     24distfiles           ${distname}.zip 
    2825 
    2926depends_lib-append  path:bin/qmake-mac:qt4-mac \ 
     
    3532 
    3633checksums           qtiplot-${version}.zip \ 
    37                     md5     c90e9dc08e03dc1cd0db19dfe8941f0c \ 
    38                     sha1    35dec539fb20b8c7ca121cca11f7b800b4ff0c6b \ 
    39                     rmd160  2b0fd5b710d2752a1a413f83cbee9daf1e88edbf \ 
    40                     QTeXEngine-0.2-opensource.zip \ 
    41                     md5     fc2fe7f3fdb9e06c00d1f5c3c3e68920 \ 
    42                     sha1    b484a4da7a0f3103e188539bfa6c1910dc9b55ca \ 
    43                     rmd160  76ff1f2f96cd6df0ea5e6965013e0db452c55f09 \ 
    44                     liborigin2-13092010.zip \ 
    45                     md5     e2b41c4d8a1e2d357dd2b5b331d31375 \ 
    46                     sha1    3f17d5a8c484ddb864a29a91a94d677b0b3b18d7 \ 
    47                     rmd160  df7f4bafc1b9815c5921c09b435f431d8a1947e6 
     34                    md5     cd571f88cde988734b7acf5db9917afc \ 
     35                    sha1    8c4b39a2e5997b2e9a8a2ec2a41ac8395661bbe6 \ 
     36                    rmd160  2a69ae9c2ab836cc8170fc71eb581b605ba6e7b6 
    4837 
    49 patchfiles          patch-ApplicationWindow.diff 
     38patchfiles          patch-ApplicationWindow.diff \ 
     39                    patch-qti.sip.diff \ 
     40                    patch-scripting.pri.diff 
    5041 
    5142use_zip             yes 
     
    7162    puts $confFD "QWT_LIBS = \$\$QTI_ROOT/3rdparty/qwt/lib/libqwt.a" 
    7263    puts $confFD "QWT3D_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwtplot3d/include" 
    73     puts $confFD "unix:QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a" 
     64    puts $confFD "QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a" 
    7465    puts $confFD "LIBPNG_LIBS = -lpng" 
    75     puts $confFD "TEX_ENGINE_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/QTeXEngine/src" 
    76     puts $confFD "TEX_ENGINE_LIBS = \$\$QTI_ROOT/3rdparty/QTeXEngine/libQTeXEngine.a" 
    77     if {[variant_isset origin]} { 
    78       puts $confFD "LIBORIGIN_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/liborigin2" 
    79       puts $confFD "LIBORIGIN_LIBS = \$\$QTI_ROOT/3rdparty/liborigin2/liborigin2.a" 
     66    # Forcing TamuAnova to nothing 
     67    puts $confFD "TAMUANOVA_LIBS = "  
     68    if {[variant_isset qtexengine]} { 
     69      puts $confFD "TEX_ENGINE_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/QTeXEngine/src" 
     70      puts $confFD "TEX_ENGINE_LIBS = \$\$QTI_ROOT/3rdparty/QTeXEngine/libQTeXEngine.a" 
    8071    } 
    81  
    82     # linking to deprecated library 
    83     reinplace "s|<QAssistantClient>|\"qassistantclient.h\"|g" ${worksrcpath}/qtiplot/src/core/ApplicationWindow.cpp 
    8472 
    8573    # target specific configuration 
    8674    puts $confFD "contains( TARGET, qtiplot ) \{" 
    8775    puts $confFD "SCRIPTING_LANGS += muParser"; # currently you can't build without 
    88     if {[variant_isset python25] || [variant_isset python26]} { 
     76    if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} { 
    8977        puts $confFD "SCRIPTING_LANGS += Python" 
    9078    } 
     
    10290    " ${worksrcpath}/qtiplot/qtiplotrc.py 
    10391 
    104     if {[variant_isset origin]} { 
    105       # prepare liborigin2 
    106       copy ${workpath}/liborigin2 ${worksrcpath}/3rdparty/liborigin2 
    107       reinplace "s|INCLUDEPATH += ../boost|INCLUDEPATH += ${prefix}/include|g" ${worksrcpath}/3rdparty/liborigin2/liborigin2.pro 
    108       reinplace "s|lboost_thread|lboost_thread-mt|g" ${worksrcpath}/3rdparty/liborigin2/liborigin2.pro 
    109       reinplace "s|liborigin|liborigin2|g" ${worksrcpath}/qtiplot/src/origin/origin.pri 
    110     } 
     92    if {[variant_isset qtexengine]} { 
     93      # prepare qtexengine 
     94      copy ${workpath}/QTeXEngine ${worksrcpath}/3rdparty/QTeXEngine 
    11195 
    112     # prepare qtexengine 
    113     copy ${workpath}/QTeXEngine ${worksrcpath}/3rdparty/QTeXEngine 
     96      # add 3rdparty to compilation 
     97      reinplace "s|3rdparty/qwtplot3d \|3rdparty/qwtplot3d 3rdparty/QTeXEngine \|g" \ 
     98      ${worksrcpath}/qtiplot.pro 
    11499 
    115     # add 3rdparty to compilation 
    116     reinplace "s|3rdparty/qwtplot3d \|3rdparty/qwtplot3d 3rdparty/QTeXEngine \|g" \ 
    117     ${worksrcpath}/qtiplot.pro 
    118     if {[variant_isset origin]} { 
    119       reinplace "s|3rdparty/QTeXEngine \|3rdparty/QTeXEngine 3rdparty/liborigin2 \|g" \ 
    120       ${worksrcpath}/qtiplot.pro 
     100      # suppress examples which do not compile 
     101      reinplace "/example/d" ${worksrcpath}/3rdparty/QTeXEngine/QTeXEngine.pro 
    121102    } 
    122103 
     
    127108configure.pre_args  "PREFIX=${prefix}" 
    128109configure.cmd   "LOCALSOFT=${prefix} ${qt_qmake_cmd}" 
    129 configure.env-append QMAKESPEC=${qt_mkspecs_dir}/macx-g++ 
    130 build.env-append QMAKESPEC=${qt_mkspecs_dir}/macx-g++ 
    131110destroot.destdir INSTALL_ROOT=${destroot} 
    132111 
     
    156135} 
    157136 
    158 variant origin description "add support for originlab files" { 
    159     depends_lib-append port:treehh 
    160     patchfiles-append patch-importOPJ.cpp.diff 
     137variant qtexengine description "add support for tex exportation" { 
     138    distfiles-append  QTeXEngine-0.3-opensource.zip 
     139    checksums-append  QTeXEngine-0.3-opensource.zip \ 
     140                      md5     d1b234623770ec6209b14d1b5137f2f1 \ 
     141                      sha1    971410ebc6b73f31a11cf473f4d9171c278271f0 \ 
     142                      rmd160  6f75f8e6355515cf5eb8a7b90b9acca8aa889129 
    161143} 
    162144 
    163 variant python25 conflicts python26 description "add support for python26 scripting" { 
     145variant python25 conflicts python26 python27 description "add support for python26 scripting" { 
    164146    depends_lib-append port:python25 \ 
    165147                       port:py25-sip \ 
     
    167149} 
    168150 
    169 variant python26 conflicts python25 description "add support for python26 scripting" { 
     151variant python26 conflicts python25 python27 description "add support for python26 scripting" { 
    170152    depends_lib-append port:python26 \ 
    171153                       port:py26-sip \ 
    172154                       port:py26-pyqt4 
    173155} 
     156 
     157variant python27 conflicts python25 python26 description "add support for python26 scripting" { 
     158    depends_lib-append port:python27 \ 
     159                       port:py27-sip \ 
     160                       port:py27-pyqt4 
     161} 
  • trunk/dports/aqua/qtiplot/files/patch-ApplicationWindow.diff

    r74646 r80967  
    1 --- qtiplot/src/core/ApplicationWindow.cpp.orig 2010-10-12 08:53:20.000000000 +0200 
    2 +++ qtiplot/src/core/ApplicationWindow.cpp      2010-11-10 22:19:52.000000000 +0100 
    3 @@ -171,7 +171,7 @@ 
     1--- qtiplot/src/core/ApplicationWindow.cpp.orig 2011-07-14 13:24:58.000000000 +0200 
     2+++ qtiplot/src/core/ApplicationWindow.cpp      2011-07-20 20:41:23.000000000 +0200 
     3@@ -173,7 +173,7 @@ 
    44 #include <QVarLengthArray> 
    55 #include <QList> 
     
    1010 #include <QSpinBox> 
    1111 #include <QMdiArea> 
    12 @@ -352,7 +352,7 @@ 
     12@@ -347,7 +347,7 @@ 
    1313        insertTranslatedStrings(); 
    1414        disableToolbars(); 
     
    1717+       //assistant = new QAssistantClient( QString(), this ); 
    1818  
    19         actionNextWindow = new QAction(QIcon(":/next.png"), tr("&Next","next window"), this); 
    20         actionNextWindow->setShortcut( tr("F5","next window shortcut") ); 
    21 @@ -11169,10 +11169,10 @@ 
     19        connect(tablesDepend, SIGNAL(activated(int)), this, SLOT(showTable(int))); 
     20  
     21@@ -11325,10 +11325,10 @@ 
    2222        } 
    2323  
     
    3434  
    3535 void ApplicationWindow::showHelp() 
    36 @@ -11203,8 +11203,8 @@ 
     36@@ -11359,8 +11359,8 @@ 
    3737        } 
    3838  
Note: See TracChangeset for help on using the changeset viewer.