]> granicus.if.org Git - python/commitdiff
Fix some minor issues with the generated application bundles on MacOSX
authorRonald Oussoren <ronaldoussoren@mac.com>
Thu, 18 May 2006 09:04:15 +0000 (09:04 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Thu, 18 May 2006 09:04:15 +0000 (09:04 +0000)
Mac/OSX/IDLE/Info.plist [new file with mode: 0644]
Mac/OSX/IDLE/Makefile.in
Mac/OSX/Makefile.in
Mac/OSX/PythonLauncher/English.lproj/InfoPlist.strings [deleted file]
Mac/OSX/PythonLauncher/Info.plist
Mac/OSX/PythonLauncher/Makefile.in
Mac/OSXResources/app/Resources/PythonApplet.icns

diff --git a/Mac/OSX/IDLE/Info.plist b/Mac/OSX/IDLE/Info.plist
new file mode 100644 (file)
index 0000000..bbe2ea1
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>CFBundleDevelopmentRegion</key>
+       <string>English</string>
+       <key>CFBundleDocumentTypes</key>
+       <array>
+               <dict>
+                       <key>CFBundleTypeExtensions</key>
+                       <array>
+                               <string>py</string>
+                               <string>pyw</string>
+                       </array>
+                       <key>CFBundleTypeIconFile</key>
+                       <string>PythonSource.icns</string>
+                       <key>CFBundleTypeName</key>
+                       <string>Python Script</string>
+                       <key>CFBundleTypeRole</key>
+                       <string>Editor</string>
+               </dict>
+               <dict>
+                       <key>CFBundleTypeExtensions</key>
+                       <array>
+                               <string>pyc</string>
+                               <string>pyo</string>
+                       </array>
+                       <key>CFBundleTypeIconFile</key>
+                       <string>PythonCompiled.icns</string>
+                       <key>CFBundleTypeName</key>
+                       <string>Python Bytecode Document</string>
+                       <key>CFBundleTypeRole</key>
+                       <string>Editor</string>
+               </dict>
+       </array>
+       <key>CFBundleExecutable</key>
+       <string>IDLE</string>
+       <key>CFBundleGetInfoString</key>
+       <string>2.5, © 001-2006 Python Software Foundation</string>
+       <key>CFBundleIconFile</key>
+       <string>IDLE.icns</string>
+       <key>CFBundleIdentifier</key>
+       <string>org.python.IDLE</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundleName</key>
+       <string>IDLE</string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+       <key>CFBundleShortVersionString</key>
+       <string>2.5</string>
+       <key>CFBundleVersion</key>
+       <string>2.5</string>
+</dict>
+</plist>
index 26ecad4d41fa22524cf709e96c7638791f364c4b..a429277e4f6dbb812320045c799f8137235e95e0 100644 (file)
@@ -1,3 +1,4 @@
+prefix=@prefix@
 CC=@CC@
 LD=@CC@
 BASECFLAGS=@BASECFLAGS@
@@ -27,7 +28,8 @@ all: IDLE.app
 install: IDLE.app
        test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)"
        -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
-       cp -r IDLE.app "$(DESTDIR)$(PYTHONAPPSDIR)"
+       cp -PR IDLE.app "$(DESTDIR)$(PYTHONAPPSDIR)"
+       touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
 
 clean:
        rm -rf IDLE.app
@@ -40,9 +42,11 @@ IDLE.app:  \
        $(RUNSHARED) $(BUILDPYTHON) $(BUNDLEBULDER) \
                --builddir=. \
                --name=IDLE \
+               --link-exec \
+               --plist=$(srcdir)/Info.plist \
                --mainprogram=$(srcdir)/idlemain.py \
                --iconfile=$(srcdir)/../Icons/IDLE.icns \
-               --bundle-id=org.python.IDLE \
                --resource=$(srcdir)/../Icons/PythonSource.icns \
                --resource=$(srcdir)/../Icons/PythonCompiled.icns \
+               --python=$(prefix)/Resources/Python.app/Contents/MacOS/Python \
                build
index 80aaa02d170d67f6fbe5ed4fb6adcabf942130b4..14b7f515b577311a1e7d32a9984039eb86fd007e 100644 (file)
@@ -74,9 +74,10 @@ install_versionedtools:
        for fn in idle pydoc python-config ;\
        do \
                mv "$(DESTDIR)$(prefix)/bin/$${fn}" "$(DESTDIR)$(prefix)/bin/$${fn}$(VERSION)"  ;\
-               ln -sf "$${fn}$(VERSION)" "$${fn}" ;\
+               ln -sf "$${fn}$(VERSION)" "$(DESTDIR)$(prefix)/bin/$${fn}" ;\
        done
-       rm -f "$(DESTDIR)$(prefix)/bin/smtpd.py"
+       mv "$(DESTDIR)$(prefix)/bin/smtpd.py" "$(DESTDIR)$(prefix)/bin/smtpd$(VERSION).py" 
+       ln -sf "smtpd$(VERSION).py" "$(DESTDIR)$(prefix)/bin/smtpd.py"
 
 
 pythonw: $(srcdir)/Tools/pythonw.c
@@ -142,7 +143,7 @@ install_BuildApplet:
        $(BUILDPYTHON) $(srcdir)/../scripts/BuildApplet.py \
                --destroot "$(DESTDIR)" \
                --python $(INSTALLED_PYTHONAPP) \
-               --output "$(DESTDIR)$(PYTHONAPPSDIR)/BuildApplet.app" \
+               --output "$(DESTDIR)$(PYTHONAPPSDIR)/Build Applet.app" \
                $(srcdir)/../scripts/BuildApplet.py
 
 MACLIBDEST=$(LIBDEST)/plat-mac
@@ -221,9 +222,9 @@ installextras:
 
 
 checkapplepython:
-       @if ! $(BUILDPYTHON) $(srcdir)/Mac/OSX/fixapplepython23.py -n; then \
+       @if ! $(BUILDPYTHON) $(srcdir)/fixapplepython23.py -n; then \
                echo "* WARNING: Apple-installed Python 2.3 will have trouble building extensions from now on."; \
-               echo "* WARNING: Run $(srcdir)/Mac/OSX/fixapplepython23.py with \"sudo\" to fix this."; \
+               echo "* WARNING: Run $(srcdir)/fixapplepython23.py with \"sudo\" to fix this."; \
        fi
 
 
diff --git a/Mac/OSX/PythonLauncher/English.lproj/InfoPlist.strings b/Mac/OSX/PythonLauncher/English.lproj/InfoPlist.strings
deleted file mode 100644 (file)
index 40b6185..0000000
Binary files a/Mac/OSX/PythonLauncher/English.lproj/InfoPlist.strings and /dev/null differ
index 5e9e45727109f258ad6b34165862c891b3079154..1dd795f776609192c6dcb2c56d66d317dcdfa114 100644 (file)
@@ -40,7 +40,7 @@
        <key>CFBundleExecutable</key>
        <string>PythonLauncher</string>
        <key>CFBundleGetInfoString</key>
-       <string>2.5, © 2001-2006 Python Software Foundation</string>
+       <string>2.5, © 001-2006 Python Software Foundation</string>
        <key>CFBundleIconFile</key>
        <string>PythonLauncher.icns</string>
        <key>CFBundleIdentifier</key>
@@ -48,7 +48,7 @@
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundleName</key>
-       <string>PythonLauncher</string>
+       <string>Python Launcher</string>
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
index 41ea9d52a04a58f25d92aa9567c0ad29ebf91a15..e6dacb3c5e083cdeab33157e8e87efed71f969ac 100644 (file)
@@ -29,6 +29,7 @@ install: Python\ Launcher.app
        test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)"
        -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
        cp -r "Python Launcher.app" "$(DESTDIR)$(PYTHONAPPSDIR)"
+       touch "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
 
 clean:
        rm -f *.o "Python Launcher"
index e959c432889e7750f84c6d690090d40cb58ebe9e..c8aad9fc37a27872bae18af78b1623bfb8f9a9f7 100644 (file)
Binary files a/Mac/OSXResources/app/Resources/PythonApplet.icns and b/Mac/OSXResources/app/Resources/PythonApplet.icns differ