[48297] trunk/dports/aqua

jonas at macports.org jonas at macports.org
Wed Mar 18 11:12:31 PDT 2009


Revision: 48297
          http://trac.macports.org/changeset/48297
Author:   jonas at macports.org
Date:     2009-03-18 11:12:31 -0700 (Wed, 18 Mar 2009)
Log Message:
-----------
qtiplot: new port for data analysis and scientific plotting

Added Paths:
-----------
    trunk/dports/aqua/qtiplot/
    trunk/dports/aqua/qtiplot/Portfile

Added: trunk/dports/aqua/qtiplot/Portfile
===================================================================
--- trunk/dports/aqua/qtiplot/Portfile	                        (rev 0)
+++ trunk/dports/aqua/qtiplot/Portfile	2009-03-18 18:12:31 UTC (rev 48297)
@@ -0,0 +1,87 @@
+# -*- 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
+# $Id$
+
+PortSystem  1.0
+
+name                qtiplot
+version             0.9.7.5
+categories          aqua science
+maintainers         fs.ei.tum.de:jonas openmaintainer
+
+description         Data Analysis and Scientific Plotting
+long_description    Similar to Origin or SigmaPlot, QtiPlot can be used to \
+                    present 2D and 3D data and has various data analysis functions \
+                    like curve fitting. Plotting of 3D data can be rendered using \
+                    OpenGL using the Qwt3D libraries.\
+                    It's a full-featured data analysis and plotting package available \
+                    on Linux, Windows and Mac OS X platforms that supports python scripting.
+
+platforms           darwin
+homepage            http://soft.proindependent.com/qtiplot.html
+master_sites        http://download.berlios.de/qtiplot/
+use_bzip2           yes
+
+depends_lib         port:qt4-mac \
+                    port:muparser \
+                    port:boost \
+                    port:gsl \
+                    port:libpng \
+                    port:python25 \
+                    port:py25-sip \
+                    port:py25-pyqt4
+                    # TODO variants to build without python or other python version
+
+checksums           md5     8ca64ee66d1a843828b7cfda3d1a7b00 \
+                    sha1    cc1ee2d44f78664ff549db1b6e808b51cb53ca3a \
+                    rmd160  abdfb58e279a54b10c525770fa54fd578c544dde
+
+pre-configure {
+    # don't step into the manual dir, there is no "make all"
+    reinplace "/manual/d" ${worksrcpath}/qtiplot.pro
+    # fix include path's
+    reinplace "/INCLUDEPATH.*muparser/d" ${worksrcpath}/qtiplot/qtiplot.pro
+    reinplace "/INCLUDEPATH.*boost/d" ${worksrcpath}/qtiplot/qtiplot.pro
+    reinplace "/INCLUDEPATH.*png/d" ${worksrcpath}/qtiplot/qtiplot.pro
+    reinplace "/INCLUDEPATH.*gsl/d" ${worksrcpath}/qtiplot/qtiplot.pro \
+                                    ${worksrcpath}/fitPlugins/explin/explin.pro \
+                                    ${worksrcpath}/fitPlugins/exp_saturation/exp_saturation.pro \
+                                    ${worksrcpath}/fitPlugins/fitRational0/fitRational0.pro \
+                                    ${worksrcpath}/fitPlugins/fitRational1/fitRational1.pro
+    # fix lib path's
+    reinplace "/LIBS.*3rdparty.*gsl/d" ${worksrcpath}/qtiplot/qtiplot.pro \
+                                       ${worksrcpath}/fitPlugins/explin/explin.pro \
+                                       ${worksrcpath}/fitPlugins/exp_saturation/exp_saturation.pro \
+                                       ${worksrcpath}/fitPlugins/fitRational0/fitRational0.pro \
+                                       ${worksrcpath}/fitPlugins/fitRational1/fitRational1.pro
+    reinplace "/LIBS.*3rdparty.*muparser/d" ${worksrcpath}/qtiplot/qtiplot.pro
+    reinplace "/LIBS.*3rdparty.*boost/d" ${worksrcpath}/qtiplot/qtiplot.pro
+    reinplace "/LIBS.*3rdparty.*png/d" ${worksrcpath}/qtiplot/qtiplot.pro
+
+    # fix a bug in the python init script
+    # append the current path *before* import __main__, else __file__ points to math.so after the import if this module
+    reinplace "/import __main__/ i\\
+    import sys, os.path\\
+    sys.path.append(os.path.dirname(__file__))
+    " ${worksrcpath}/qtiplot/qtiplotrc.py
+}
+
+configure.pre_args  "PREFIX=${prefix}"
+configure.args  "'INCLUDEPATH += ${prefix}/include' 'LIBS += -L${prefix}/libs -lgsl -lgslcblas -lmuparser -lboost_date_time-mt -lboost_thread-mt'"
+configure.cmd   "LOCALSOFT=${prefix} ${prefix}/libexec/qt4-mac/bin/qmake"
+destroot.destdir INSTALL_ROOT=${destroot}
+
+post-destroot {
+    # install the applocation bundle and create a symlink for cli invokation
+    xinstall -d ${destroot}${applications_dir}
+    copy "${worksrcpath}/qtiplot/qtiplot.app" ${destroot}${applications_dir}
+    # in this dir python tries to store .pyc files, so it has to be writable
+    file attributes ${destroot}${applications_dir}/qtiplot.app/Contents/MacOS -permissions ugo+w
+    ln -s ${applications_dir}/qtiplot.app/Contents/MacOS/qtiplot ${destroot}${prefix}/bin/qtiplot
+    # install some resources
+    xinstall -W ${worksrcpath}/qtiplot/ \
+        qti_wordlist.txt \
+        qtiUtil.py \
+        qtiplotrc.py \
+        ${destroot}${applications_dir}/qtiplot.app/Contents/MacOS/
+}
+


Property changes on: trunk/dports/aqua/qtiplot/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090318/78cba557/attachment.html>


More information about the macports-changes mailing list