[119466] trunk/dports/science/gwyddion
rowue at macports.org
rowue at macports.org
Sat Apr 26 12:06:18 PDT 2014
Revision: 119466
https://trac.macports.org/changeset/119466
Author: rowue at macports.org
Date: 2014-04-26 12:06:18 -0700 (Sat, 26 Apr 2014)
Log Message:
-----------
gwyddion: pygwy console support
Modified Paths:
--------------
trunk/dports/science/gwyddion/Portfile
Added Paths:
-----------
trunk/dports/science/gwyddion/files/patch-modules-pygwy-gwy.c.diff
Modified: trunk/dports/science/gwyddion/Portfile
===================================================================
--- trunk/dports/science/gwyddion/Portfile 2014-04-26 18:40:13 UTC (rev 119465)
+++ trunk/dports/science/gwyddion/Portfile 2014-04-26 19:06:18 UTC (rev 119466)
@@ -42,6 +42,7 @@
}
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 \
@@ -67,6 +68,13 @@
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/
Added: trunk/dports/science/gwyddion/files/patch-modules-pygwy-gwy.c.diff
===================================================================
--- trunk/dports/science/gwyddion/files/patch-modules-pygwy-gwy.c.diff (rev 0)
+++ trunk/dports/science/gwyddion/files/patch-modules-pygwy-gwy.c.diff 2014-04-26 19:06:18 UTC (rev 119466)
@@ -0,0 +1,13 @@
+Index: modules/pygwy/gwy.c
+===================================================================
+--- modules/pygwy/gwy.c (revision 16160)
++++ modules/pygwy/gwy.c (working copy)
+@@ -94,7 +94,7 @@
+ guint i;
+
+ for (i = 0; i < G_N_ELEMENTS(gwyddion_libs); i++) {
+- gchar *filename = g_strconcat(gwyddion_libs[i], ".", G_MODULE_SUFFIX,
++ gchar *filename = g_strconcat(gwyddion_libs[i], ".dylib",
+ NULL);
+ GModule *modhandle = g_module_open(filename, G_MODULE_BIND_LAZY);
+ if (!modhandle) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140426/60e2b822/attachment.html>
More information about the macports-changes
mailing list