[138007] users/elelay/ports
elelay at macports.org
elelay at macports.org
Thu Jun 25 12:57:55 PDT 2015
Revision: 138007
https://trac.macports.org/changeset/138007
Author: elelay at macports.org
Date: 2015-06-25 12:57:55 -0700 (Thu, 25 Jun 2015)
Log Message:
-----------
changes for gwyddion gtk-osx-application-gtk2
Added Paths:
-----------
users/elelay/ports/science/
users/elelay/ports/science/gwyddion/
users/elelay/ports/science/gwyddion/Portfile
users/elelay/ports/science/gwyddion/files/
users/elelay/ports/science/gwyddion/files/Info.plist
users/elelay/ports/science/gwyddion/files/gwyddion
users/elelay/ports/science/gwyddion/files/gwyddion.icns
users/elelay/ports/science/gwyddion/files/gwyddion.quartz
users/elelay/ports/science/gwyddion/files/patch-gtk-osx-application-gtk2.diff
Added: users/elelay/ports/science/gwyddion/Portfile
===================================================================
--- users/elelay/ports/science/gwyddion/Portfile (rev 0)
+++ users/elelay/ports/science/gwyddion/Portfile 2015-06-25 19:57:55 UTC (rev 138007)
@@ -0,0 +1,93 @@
+# -*- 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 gwyddion
+version 2.41
+categories science x11
+platforms darwin
+license gpl-2
+# revision 1
+maintainers rowue gwyddion.net:yeti
+description Software for SPM Analysis
+
+long_description \
+ Gwyddion is a modular program for SPM (scanning probe microscopy) data \
+ visualization and analysis. It uses gtk2 for the user interface.
+
+homepage http://gwyddion.net
+# master_sites sourceforge
+master_sites sourceforge:project/gwyddion/gwyddion/${version}
+use_xz yes
+use_parallel_build yes
+
+checksums sha256 dcccba56231d6553ded5ba3613f70e4b71f4365e6482e65c69b4eea8bb4d8afa \
+ rmd160 cb5e9aa32a28d339c31d41dadfbe8c64d8581fd9
+
+depends_build port:pkgconfig
+
+depends_lib port:gtk2 \
+ port:libxml2 \
+ port:fftw-3 \
+ port:gtkglext
+
+configure.args --disable-desktop-file-update \
+ --x-include=${prefix}/include \
+ --x-lib=${prefix}/lib
+
+variant quartz description { Build gwyddion with quartz gl support } {
+ depends_lib-append port:gtk-osx-application-gtk2
+ patchfiles-append patch-gtk-osx-application-gtk2.diff
+}
+
+variant pygwy description { Build gwyddion with python support } {
+ ui_msg "For console python support you have to set DYLD_FALLBACK_LIBRARY_PATH to $prefix/lib"
+ set python.prefix ${frameworks_dir}/Python.framework/Versions/2.7
+ configure.pkg_config_path ${python.prefix}/lib/pkgconfig
+ depends_lib-append port:py-pygtk \
+ port:python27
+ configure.cflags-append -I${python.prefix}/include
+}
+
+variant debug description { Enable debugging } {
+ configure.cflags-append "-O0 -g"
+}
+
+post-destroot {
+ xinstall -m 755 -d ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS
+ if {[variant_isset quartz]} {
+ xinstall ${filespath}/gwyddion.quartz ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS/gwyddion
+ reinplace "s|@PREFIX@|${prefix}|" ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS/gwyddion
+ } else {
+ xinstall ${filespath}/gwyddion ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS
+ reinplace "s|@APPDIR@|${applications_dir}|" ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS/gwyddion
+ reinplace "s|@PREFIX@|${prefix}|" ${destroot}${applications_dir}/gwyddion.app/Contents/MacOS/gwyddion
+ }
+ if {[variant_isset pygwy]} {
+ set python.prefix ${frameworks_dir}/Python.framework/Versions/2.7
+ set python.site_packages ${python.prefix}/lib/python2.7/site-packages/
+ xinstall -m 755 -d ${destroot}${python.site_packages}
+ move ${destroot}${prefix}/lib/python2.7/site-packages/gwy.so ${destroot}${python.site_packages}
+ move ${destroot}${prefix}/lib/python2.7/site-packages/gwy.la ${destroot}${python.site_packages}
+ }
+ xinstall -m 755 -d ${destroot}${applications_dir}/gwyddion.app/Contents/Resources
+ xinstall -m 0644 ${filespath}/gwyddion.icns ${destroot}${applications_dir}/gwyddion.app/Contents/Resources
+ xinstall -m 0644 ${filespath}/Info.plist ${destroot}${applications_dir}/gwyddion.app/Contents/
+ reinplace "s|@VERSION@|${version}|" ${destroot}${applications_dir}/gwyddion.app/Contents/Info.plist
+ system "echo 'APPL????' > ${destroot}${applications_dir}/gwyddion.app/Contents/PkgInfo"
+}
+
+post-activate {
+ system "${prefix}/bin/update-mime-database ${prefix}/share/mime ; true"
+}
+
+platform darwin 8 {
+ post-activate {
+ if {[file exists ${prefix}/lib/pkgconfig/gl.pc]} {
+ if {![variant_isset quartz]} {
+ ui_msg "openGL support currently requires you to use MacPorts' X11 server (xorg-server) rather than Apple's."
+ }
+ }
+ }
+}
Property changes on: users/elelay/ports/science/gwyddion/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/elelay/ports/science/gwyddion/files/Info.plist
===================================================================
(Binary files differ)
Property changes on: users/elelay/ports/science/gwyddion/files/Info.plist
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: users/elelay/ports/science/gwyddion/files/gwyddion
===================================================================
--- users/elelay/ports/science/gwyddion/files/gwyddion (rev 0)
+++ users/elelay/ports/science/gwyddion/files/gwyddion 2015-06-25 19:57:55 UTC (rev 138007)
@@ -0,0 +1,8 @@
+#!/bin/bash
+if [ -x @APPDIR@/X11.app/Contents/MacOS/X11 ]; then
+ open -a @APPDIR@/X11.app/Contents/MacOS/X11 @PREFIX@/bin/gwyddion
+elif [ -x /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 ]; then
+ open -a /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 @PREFIX@/bin/gwyddion
+else
+ open -a /Applications/Utilities/X11.app/Contents/MacOS/X11 @PREFIX@/bin/gwyddion
+fi
Property changes on: users/elelay/ports/science/gwyddion/files/gwyddion
___________________________________________________________________
Added: svn:executable
+ *
Added: users/elelay/ports/science/gwyddion/files/gwyddion.icns
===================================================================
(Binary files differ)
Property changes on: users/elelay/ports/science/gwyddion/files/gwyddion.icns
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: users/elelay/ports/science/gwyddion/files/gwyddion.quartz
===================================================================
--- users/elelay/ports/science/gwyddion/files/gwyddion.quartz (rev 0)
+++ users/elelay/ports/science/gwyddion/files/gwyddion.quartz 2015-06-25 19:57:55 UTC (rev 138007)
@@ -0,0 +1,2 @@
+#!/bin/bash
+exec @PREFIX@/bin/gwyddion
Property changes on: users/elelay/ports/science/gwyddion/files/gwyddion.quartz
___________________________________________________________________
Added: svn:executable
+ *
Added: users/elelay/ports/science/gwyddion/files/patch-gtk-osx-application-gtk2.diff
===================================================================
--- users/elelay/ports/science/gwyddion/files/patch-gtk-osx-application-gtk2.diff (rev 0)
+++ users/elelay/ports/science/gwyddion/files/patch-gtk-osx-application-gtk2.diff 2015-06-25 19:57:55 UTC (rev 138007)
@@ -0,0 +1,46 @@
+--- configure.old 2015-06-25 21:54:31.000000000 +0200
++++ configure 2015-06-25 21:54:48.000000000 +0200
+@@ -19616,12 +19616,12 @@
+ pkg_cv_GTK_MAC_CFLAGS="$GTK_MAC_CFLAGS"
+ else
+ if test -n "$PKG_CONFIG" && \
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration\""; } >&5
+- ($PKG_CONFIG --exists --print-errors "gtk-mac-integration") 2>&5
++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration-gtk2\""; } >&5
++ ($PKG_CONFIG --exists --print-errors "gtk-mac-integration-gtk2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+- pkg_cv_GTK_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration" 2>/dev/null`
++ pkg_cv_GTK_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration-gtk2" 2>/dev/null`
+ else
+ pkg_failed=yes
+ fi
+@@ -19634,12 +19634,12 @@
+ pkg_cv_GTK_MAC_LIBS="$GTK_MAC_LIBS"
+ else
+ if test -n "$PKG_CONFIG" && \
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration\""; } >&5
+- ($PKG_CONFIG --exists --print-errors "gtk-mac-integration") 2>&5
++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration-gtk2\""; } >&5
++ ($PKG_CONFIG --exists --print-errors "gtk-mac-integration-gtk2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+- pkg_cv_GTK_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration" 2>/dev/null`
++ pkg_cv_GTK_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration-gtk2" 2>/dev/null`
+ else
+ pkg_failed=yes
+ fi
+@@ -19658,9 +19658,9 @@
+ _pkg_short_errors_supported=no
+ fi
+ if test $_pkg_short_errors_supported = yes; then
+- GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk-mac-integration"`
++ GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk-mac-integration-gtk2"`
+ else
+- GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk-mac-integration"`
++ GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk-mac-integration-gtk2"`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$GTK_MAC_PKG_ERRORS" >&5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150625/678a019a/attachment.html>
More information about the macports-changes
mailing list