[133899] trunk/dports/science/kst

nicos at macports.org nicos at macports.org
Sun Mar 15 08:11:16 PDT 2015


Revision: 133899
          https://trac.macports.org/changeset/133899
Author:   nicos at macports.org
Date:     2015-03-15 08:11:16 -0700 (Sun, 15 Mar 2015)
Log Message:
-----------
kst: update to 2.0.8,
significant rewrite of the port,
taking maintainership
(fixes #24479)

Modified Paths:
--------------
    trunk/dports/science/kst/Portfile

Added Paths:
-----------
    trunk/dports/science/kst/files/
    trunk/dports/science/kst/files/patch-CMakeLists.diff

Modified: trunk/dports/science/kst/Portfile
===================================================================
--- trunk/dports/science/kst/Portfile	2015-03-15 14:44:55 UTC (rev 133898)
+++ trunk/dports/science/kst/Portfile	2015-03-15 15:11:16 UTC (rev 133899)
@@ -1,40 +1,49 @@
 # -*- 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
+PortSystem       1.0
+PortGroup        qt4 1.0
+PortGroup        cmake 1.0
 
 name             kst
-version          1.7.0
+version          2.0.8
 
 categories       science
 platforms        darwin
-maintainers      nomaintainer
+maintainers      nicos openmaintainer
 license          GPL-2
 
 description      Plots scientific data
 long_description Kst is the fastest real-time large-dataset viewing and plotting tool available and has basic data analysis functionality. Kst contains many powerful built-in features and is expandable with plugins and extensions.
 
 homepage         http://kst.kde.org/
-master_sites     ftp://ftp.oregonstate.edu/pub/kde/stable/apps/KDE3.x/scientific/	\
-                 http://kde.mirrors.tds.net/pub/kde/stable/apps/KDE3.x/scientific/
-#master_sites     kde:stable/scientific
+master_sites     http://downloads.sourceforge.net/project/kst/Kst%20${version}
+distname         Kst-${version}
 
-checksums        md5    69db059134c9f9df0875ce89f5b178f7 \
-                 sha1   95eb30b5be96311949cfa6743da15465abc3a904 \
-                 rmd160 be479b3ab82d2758bcb0fb1acda5a390cfc6157b
+checksums           rmd160  b4ed06ddbb4b2680d14e1ac5e8a310bcdd6f737c \
+                    sha256  cefbfd3e3710771985e08f02a397ef8ab407168fa8415d2c3c5740c031af18c6
 
-depends_lib      port:kde4-baseapps \
-                 port:gsl
+#Not using fixup_bundle from cmake
+patchfiles       patch-CMakeLists.diff
 
-configure.args   --without-arts \
-                 --with-sqlite=${prefix} \
-                 --with-qt-dir=${prefix} \
-                 --with-qt-libraries=${prefix}/lib/qt3/lib \
-                 --with-qt-includes=${prefix}/lib/qt3/include/ \
-                 --enable-mac
-#                 --enable-qtopia \
-#                 --enable-embedded
+depends_build    port:pkgconfig
 
+depends_lib      port:gsl \
+                 port:cfitsio \
+                 port:matio
+
+configure.args-append    -Dkst_install_prefix=${applications_dir} \
+                         -Dkst_install_libdir=lib \
+                         -Dkst_release=ON \
+                         -Dkst_clang=ON \
+                         -Dkst_3rdparty=ON
+
+post-destroot {
+    move ${destroot}${applications_dir}/share/kst ${destroot}${prefix}/share
+    delete file ${destroot}${prefix}/lib
+    copy ${worksrcpath}/build/lib ${destroot}${prefix}
+}
+
 livecheck.type          regex
-livecheck.url           ${homepage}download.html
-livecheck.regex         The current stable release of kst is (\[0-9.\]\\.\[0-9.\]\\.\[0-9.\]).
+livecheck.url           http://sourceforge.net/projects/kst/files/
+livecheck.regex         Kst (\[0-9.\]\\.\[0-9.\]\\.\[0-9.\]).

Added: trunk/dports/science/kst/files/patch-CMakeLists.diff
===================================================================
--- trunk/dports/science/kst/files/patch-CMakeLists.diff	                        (rev 0)
+++ trunk/dports/science/kst/files/patch-CMakeLists.diff	2015-03-15 15:11:16 UTC (rev 133899)
@@ -0,0 +1,38 @@
+--- CMakeLists.txt.orig	2015-03-15 22:42:14.000000000 +0900
++++ CMakeLists.txt	2015-03-15 22:42:23.000000000 +0900
+@@ -487,35 +487,6 @@
+ # Found this:
+ # http://www.purplekarrot.net/blog/dputCMake.html
+ 
+-
+-if(APPLE)
+-    # We start from build/bin/kst2.app, all is build into the final bundle folder
+-    # On the mac the pathes to needed shared libraries are hardcoded in the binary/library
+-    # which could be changed by the macro 'fixup_bundle'
+-    # libs which are hardcoded are resolved automatically
+-    # but the plugins must be passed as extra argument because they are not hardcoded in the binary
+-
+-    set(bundle_dir ${kst_build_dir}/bin)
+-    set(contents_dir ${kst_binary_name}.app/Contents)
+-
+-    set(app ${bundle_dir}/${kst_binary_name}.app)
+-    install(DIRECTORY "${QT_PLUGINS_DIR}/imageformats" DESTINATION ${bundle_dir}/${contents_dir}/plugins COMPONENT Runtime)
+-
+-    install(CODE
+-        "file(GLOB qt_plugins \"${bundle_dir}/${contents_dir}/plugins/imageformats/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
+-        file(GLOB kst_plugins \"${bundle_dir}/${contents_dir}/plugins/*${CMAKE_SHARED_MODULE_SUFFIX}\")
+-        set(libs \${qt_plugins} \${kst_plugins})
+-        include(BundleUtilities)
+-        fixup_bundle(\"${app}\" \"\${libs}\" \"${dir}\") "
+-        COMPONENT RUNTIME)
+-
+-    file(WRITE ${CMAKE_BINARY_DIR}/qt.conf "")
+-    install(FILES ${CMAKE_BINARY_DIR}/qt.conf DESTINATION ${contents_dir}/Resources COMPONENT Runtime)
+-
+-    set(CPACK_GENERATOR DragNDrop)
+-endif()
+-
+-
+ include(CPack)
+ 
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150315/78690bb5/attachment-0001.html>


More information about the macports-changes mailing list