[127947] trunk/dports/science
nicos at macports.org
nicos at macports.org
Sat Nov 8 18:37:27 PST 2014
Revision: 127947
https://trac.macports.org/changeset/127947
Author: nicos at macports.org
Date: 2014-11-08 18:37:26 -0800 (Sat, 08 Nov 2014)
Log Message:
-----------
scidavis: new port
Added Paths:
-----------
trunk/dports/science/scidavis/
trunk/dports/science/scidavis/Portfile
trunk/dports/science/scidavis/files/
trunk/dports/science/scidavis/files/patch-OriginObj.diff
trunk/dports/science/scidavis/files/patch-liborigin.diff
trunk/dports/science/scidavis/files/patch-noQtAssistant.diff
Added: trunk/dports/science/scidavis/Portfile
===================================================================
--- trunk/dports/science/scidavis/Portfile (rev 0)
+++ trunk/dports/science/scidavis/Portfile 2014-11-09 02:37:26 UTC (rev 127947)
@@ -0,0 +1,80 @@
+# -*- 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
+PortGroup qmake 1.0
+
+name scidavis
+version 1.D8
+categories science
+license GPL-2+
+maintainers nicos openmaintainer
+
+description SciDAVis is a user-friendly data analysis and visualization program \
+ primarily aimed at high-quality plotting of scientific data
+long_description ${description}
+
+platforms darwin
+homepage http://scidavis.sourceforge.net
+master_sites sourceforge:project/scidavis/SciDAVis/${version}
+distname ${name}.${version}
+
+depends_build-append port:doxygen
+
+depends_lib-append port:qwt \
+ port:qwtplot3d \
+ port:gsl \
+ port:muparser \
+ port:zlib
+
+checksums rmd160 05517e0bf730078706eaabf948c1ab91117f49a3 \
+ sha256 452b6fbd7f869e38c0dedae36fa0d2c4daddbf6b24c1b497d2ecbbedf16ebd46
+
+universal_variant no
+
+patchfiles patch-noQtAssistant.diff \
+ patch-OriginObj.diff \
+ patch-liborigin.diff
+
+pre-configure {
+ reinplace "s|/usr|${prefix}|g" ${worksrcpath}/config.pri
+ reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/exp_saturation/exp_saturation.pro
+ reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/explin/explin.pro
+ reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/fitRational0/fitRational0.pro
+ reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/fitRational1/fitRational1.pro
+ reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/planck_wavelength/planck_wavelength.pro
+
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/3rdparty/liborigin/CMakeLists.txt
+
+ reinplace "s|PRESET = linux_package|PRESET = mac_dist|g" \
+ ${worksrcpath}/config.pri
+
+ if {[variant_isset python27]} {
+ reinplace "s|system\(python|system\(${prefix}/bin/python2.7|g" \
+ ${worksrcpath}/scidavis/python.pri
+ } else {
+ reinplace "s|include( ../scidavis/python.pri )|#include( ../scidavis/python.pri )|g" \
+ ${worksrcpath}/config.pri
+ reinplace "s|-lpython2.7||g" ${worksrcpath}/config.pri
+ }
+}
+
+post-destroot {
+ #Put the application to the right folder
+ move ${destroot}${prefix}/bin/scidavis.app ${destroot}${applications_dir}/scidavis.app
+
+ if {[variant_isset python27]} {
+ move ${destroot}/opt/etc/scidavisrc.py ${destroot}${prefix}/etc/scidavisrc.py
+ }
+}
+
+variant python27 description "add support for python scripting" {
+ # Can use either py*-pyqt4 or py*-pyqt4-devel.
+ depends_lib-append port:python27 \
+ port:py27-sip \
+ path:share/py27-sip/PyQt4:py27-pyqt4
+}
+
+livecheck.type sourceforge
+livecheck.url http://sourceforge.net/projects/scidavis/files/SciDAVis/
+livecheck.regex (\[0-9.\]+\[A-Z\]+\[0-9.\])
Property changes on: trunk/dports/science/scidavis/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/science/scidavis/files/patch-OriginObj.diff
===================================================================
--- trunk/dports/science/scidavis/files/patch-OriginObj.diff (rev 0)
+++ trunk/dports/science/scidavis/files/patch-OriginObj.diff 2014-11-09 02:37:26 UTC (rev 127947)
@@ -0,0 +1,10 @@
+--- 3rdparty/liborigin/OriginObj.h.orig 2014-07-23 14:01:09.000000000 +0900
++++ 3rdparty/liborigin/OriginObj.h 2014-08-17 17:36:57.000000000 +0900
+@@ -32,6 +32,7 @@
+ #define ORIGIN_OBJ_H
+
+ #include <cstring>
++#include <string>
+ #include <ctime>
+ #include <vector>
+ #include "boost/variant.hpp"
Added: trunk/dports/science/scidavis/files/patch-liborigin.diff
===================================================================
--- trunk/dports/science/scidavis/files/patch-liborigin.diff (rev 0)
+++ trunk/dports/science/scidavis/files/patch-liborigin.diff 2014-11-09 02:37:26 UTC (rev 127947)
@@ -0,0 +1,11 @@
+--- 3rdparty/liborigin/CMakeLists.txt.orig 2014-07-23 14:01:09.000000000 +0900
++++ 3rdparty/liborigin/CMakeLists.txt 2014-11-08 12:58:16.000000000 +0900
+@@ -1,6 +1,8 @@
+ # CMakeLists.txt for liborigin
+ cmake_minimum_required(VERSION 2.8)
+
++set(CMAKE_INSTALL_PREFIX @PREFIX@)
++
+ # boost library headers
+ find_package(Boost REQUIRED)
+ include_directories(${Boost_INCLUDE_DIRS})
Added: trunk/dports/science/scidavis/files/patch-noQtAssistant.diff
===================================================================
--- trunk/dports/science/scidavis/files/patch-noQtAssistant.diff (rev 0)
+++ trunk/dports/science/scidavis/files/patch-noQtAssistant.diff 2014-11-09 02:37:26 UTC (rev 127947)
@@ -0,0 +1,11 @@
+--- config.pri.orig 2014-07-23 14:01:09.000000000 +0900
++++ config.pri 2014-08-16 18:39:18.000000000 +0900
+@@ -242,6 +242,8 @@
+ # INCLUDEPATH += ../3rdparty/liborigin2
+ # }
+
++ DEFINES += NOASSISTANT
++
+ QMAKE_EXTRA_TARGETS += mac-dist
+ mac-dist.commands = sh mkMacDist.sh
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141108/78284623/attachment-0001.html>
More information about the macports-changes
mailing list