[149146] trunk/dports/math
mcalhoun at macports.org
mcalhoun at macports.org
Wed Jun 1 16:41:20 PDT 2016
Revision: 149146
https://trac.macports.org/changeset/149146
Author: mcalhoun at macports.org
Date: 2016-06-01 16:41:20 -0700 (Wed, 01 Jun 2016)
Log Message:
-----------
octave family: writing to a plist file with /usr/bin/defaults is deprecated; use PlistBuddy instead (possible fix of #51424)
Modified Paths:
--------------
trunk/dports/math/octave/Portfile
trunk/dports/math/octave-devel/Portfile
Modified: trunk/dports/math/octave/Portfile
===================================================================
--- trunk/dports/math/octave/Portfile 2016-06-01 23:39:34 UTC (rev 149145)
+++ trunk/dports/math/octave/Portfile 2016-06-01 23:41:20 UTC (rev 149146)
@@ -375,18 +375,25 @@
#NSHumanReadableCopyright ''
#LSUIElement 1
set values "
- CFBundleDevelopmentRegion English
- CFBundleExecutable Octave
- CFBundleIconFile Octave.icns
- CFBundleDocumentTypes {-array \'{\"CFBundleTypeExtensions\" = (\"m\"); \"CFBundleTypeOSTypes\" = (\"Mfile\"); \"CFBundleTypeRole\" = \"Editor\";}\'}
- CFBundleIdentifier org.octave.Octave
- CFBundleInfoDictionaryVersion 6.0
- CFBundleSignature Octave
- CFBundleVersion ${version}
- CFBundleShortVersionString ${version}
+ CFBundleDevelopmentRegion string English
+ CFBundleExecutable string Octave
+ CFBundleIconFile string Octave.icns
+ CFBundleIdentifier string org.octave.Octave
+ CFBundleInfoDictionaryVersion string 6.0
+ CFBundleSignature string Octave
+ CFBundleVersion string ${version}
+ CFBundleShortVersionString string ${version}
+ CFBundleDocumentTypes array {}
+ CFBundleDocumentTypes: dict {}
+ CFBundleDocumentTypes:0:CFBundleTypeRole string \"Editor\"
+ CFBundleDocumentTypes:0:CFBundleTypeExtensions array {}
+ CFBundleDocumentTypes:0:CFBundleTypeExtensions: string \"m\"
+ CFBundleDocumentTypes:0:CFBundleTypeOSTypes array {}
+ CFBundleDocumentTypes:0:CFBundleTypeOSTypes: string \"Mfile\"
"
- foreach {key value} ${values} {
- system "/usr/bin/defaults write ${worksrcpath}/${appName}/Contents/Info ${key} ${value}"
+
+ foreach {key type value} ${values} {
+ system -W "${worksrcpath}/${appName}/Contents" "/usr/libexec/PlistBuddy -c \"Add :${key} ${type} ${value}\" Info.plist"
}
# have Info.plist be human readable
Modified: trunk/dports/math/octave-devel/Portfile
===================================================================
--- trunk/dports/math/octave-devel/Portfile 2016-06-01 23:39:34 UTC (rev 149145)
+++ trunk/dports/math/octave-devel/Portfile 2016-06-01 23:41:20 UTC (rev 149146)
@@ -527,18 +527,25 @@
#NSHumanReadableCopyright ''
#LSUIElement 1
set values "
- CFBundleDevelopmentRegion English
- CFBundleExecutable Octave
- CFBundleIconFile Octave.icns
- CFBundleDocumentTypes {-array \'{\"CFBundleTypeExtensions\" = (\"m\"); \"CFBundleTypeOSTypes\" = (\"Mfile\"); \"CFBundleTypeRole\" = \"Editor\";}\'}
- CFBundleIdentifier org.octave.Octave
- CFBundleInfoDictionaryVersion 6.0
- CFBundleSignature Octave
- CFBundleVersion ${version}
- CFBundleShortVersionString ${version}
+ CFBundleDevelopmentRegion string English
+ CFBundleExecutable string Octave
+ CFBundleIconFile string Octave.icns
+ CFBundleIdentifier string org.octave.Octave
+ CFBundleInfoDictionaryVersion string 6.0
+ CFBundleSignature string Octave
+ CFBundleVersion string ${version}
+ CFBundleShortVersionString string ${version}
+ CFBundleDocumentTypes array {}
+ CFBundleDocumentTypes: dict {}
+ CFBundleDocumentTypes:0:CFBundleTypeRole string \"Editor\"
+ CFBundleDocumentTypes:0:CFBundleTypeExtensions array {}
+ CFBundleDocumentTypes:0:CFBundleTypeExtensions: string \"m\"
+ CFBundleDocumentTypes:0:CFBundleTypeOSTypes array {}
+ CFBundleDocumentTypes:0:CFBundleTypeOSTypes: string \"Mfile\"
"
- foreach {key value} ${values} {
- system "/usr/bin/defaults write ${worksrcpath}/${appName}/Contents/Info ${key} ${value}"
+
+ foreach {key type value} ${values} {
+ system -W "${worksrcpath}/${appName}/Contents" "/usr/libexec/PlistBuddy -c \"Add :${key} ${type} ${value}\" Info.plist"
}
# have Info.plist be human readable
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160601/af3fc5b0/attachment-0001.html>
More information about the macports-changes
mailing list