diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-03-30 19:56:25 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-03-30 19:56:25 (GMT) |
commit | 354bb5ca671dafffd35e5177e4c8225bb8d4f48a (patch) | |
tree | 34e3e3fb1b0c7a38037df092c9546489790eacf5 | |
parent | 508282e8974c182c2240a9df5d8fd8493f75be20 (diff) | |
download | cpython-354bb5ca671dafffd35e5177e4c8225bb8d4f48a.zip cpython-354bb5ca671dafffd35e5177e4c8225bb8d4f48a.tar.gz cpython-354bb5ca671dafffd35e5177e4c8225bb8d4f48a.tar.bz2 |
Fixes issue 5270
-rw-r--r-- | Mac/Makefile.in | 7 | ||||
-rw-r--r-- | Mac/Resources/app/Info.plist.in | 10 |
2 files changed, 12 insertions, 5 deletions
diff --git a/Mac/Makefile.in b/Mac/Makefile.in index 2a485c6..3981a96 100644 --- a/Mac/Makefile.in +++ b/Mac/Makefile.in @@ -14,6 +14,7 @@ DESTDIR= LDFLAGS=@LDFLAGS@ FRAMEWORKUNIXTOOLSPREFIX=@FRAMEWORKUNIXTOOLSPREFIX@ PYTHONFRAMEWORK=@PYTHONFRAMEWORK@ +PYTHONFRAMEWORKIDENTIFIER=@PYTHONFRAMEWORKIDENTIFIER@ # These are normally glimpsed from the previous set @@ -206,6 +207,12 @@ install_Python: done; \ done $(INSTALL_PROGRAM) $(STRIPFLAG) $(BUILDPYTHON) "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)" + sed -e "s!%bundleid%!$(PYTHONFRAMEWORKIDENTIFIER)!g" \ + -e "s!%version%!`$(RUNSHARED) $(BUILDPYTHON) \ + -c 'import platform; print(platform.python_version())'`!g" \ + < "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in" \ + > "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist" + rm "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in" install_Python4way: install_Python lipo -extract i386 -extract ppc7400 -output "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)-32" "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)" diff --git a/Mac/Resources/app/Info.plist.in b/Mac/Resources/app/Info.plist.in index 1233715..bd4a54c 100644 --- a/Mac/Resources/app/Info.plist.in +++ b/Mac/Resources/app/Info.plist.in @@ -20,7 +20,7 @@ <key>CFBundleExecutable</key> <string>Python</string> <key>CFBundleGetInfoString</key> - <string>@VERSION@, (c) 2004 Python Software Foundation.</string> + <string>%version%, (c) 2004-2009 Python Software Foundation.</string> <key>CFBundleHelpBookFolder</key> <array> <string>Documentation</string> @@ -33,21 +33,21 @@ <key>CFBundleIconFile</key> <string>PythonInterpreter.icns</string> <key>CFBundleIdentifier</key> - <string>@PYTHONFRAMEWORKIDENTIFIER@.app</string> + <string>%bundleid%</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleLongVersionString</key> - <string>@VERSION@, (c) 2004-2008 Python Software Foundation.</string> + <string>%version%, (c) 2004-2009 Python Software Foundation.</string> <key>CFBundleName</key> <string>Python</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>@VERSION@</string> + <string>%version%</string> <key>CFBundleSignature</key> <string>PytX</string> <key>CFBundleVersion</key> - <string>@VERSION@</string> + <string>%version%</string> <key>CSResourcesFileMapped</key> <true/> <key>LSRequiresCarbon</key> |