Modified: trunk/dports/math/octave/Portfile (149145 => 149146)
--- 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 (149145 => 149146)
--- 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