Add files for building Mac OSX App
authorPete Fotheringham <pete.fotheringham@codethink.co.uk>
Fri, 30 Dec 2011 10:49:58 +0000 (10:49 +0000)
committerPete Fotheringham <pete.fotheringham@codethink.co.uk>
Fri, 30 Dec 2011 11:18:52 +0000 (11:18 +0000)
60 files changed:
mac/Info-gtk-demo.plist [new file with mode: 0644]
mac/Info-pygtk-demo.plist [new file with mode: 0644]
mac/gtkrc [new file with mode: 0644]
mac/icons/Person.icns [moved from src/mac/icons/Person.icns with 100% similarity]
mac/icons/avatar-default.icns [moved from src/mac/icons/avatar-default.icns with 100% similarity]
mac/icons/avatar-default.png [moved from src/mac/icons/avatar-default.png with 100% similarity]
mac/icons/edit-clear-symbolic.icns [moved from src/mac/icons/edit-clear-symbolic.icns with 100% similarity]
mac/icons/edit-find-symbolic.icns [moved from src/mac/icons/edit-find-symbolic.icns with 100% similarity]
mac/icons/edit-find.png [moved from src/mac/icons/edit-find.png with 100% similarity]
mac/icons/process-stop.png [moved from src/mac/icons/process-stop.png with 100% similarity]
mac/icons/system-search.png [moved from src/mac/icons/system-search.png with 100% similarity]
mac/launcher.sh [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Info.plist [new file with mode: 0644]
mac/moonshot-ui.app/Contents/MacOS/moonshot-ui [new file with mode: 0755]
mac/moonshot-ui.app/Contents/MacOS/moonshot-ui-bin [new file with mode: 0755]
mac/moonshot-ui.app/Contents/PkgInfo [new file with mode: 0644]
mac/moonshot-ui.app/Contents/Resources/etc/gtk-2.0/gdk-pixbuf.loaders [new file with mode: 0644]
mac/moonshot-ui.app/Contents/Resources/etc/gtk-2.0/gtk.immodules [new file with mode: 0644]
mac/moonshot-ui.app/Contents/Resources/etc/gtk-2.0/gtkrc [new file with mode: 0644]
mac/moonshot-ui.app/Contents/Resources/etc/pango/pango.modules [new file with mode: 0644]
mac/moonshot-ui.app/Contents/Resources/etc/pango/pangorc [new file with mode: 0644]
mac/moonshot-ui.app/Contents/Resources/lib/charset.alias [new file with mode: 0644]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libclearlooks.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libcrux-engine.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libglide.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libhcengine.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libindustrial.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libmist.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libpixmap.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libredmond95.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libthinice.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-file.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-lpr.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/modules/libferret.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/modules/libgail.so [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libatk-1.0.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libcairo.2.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libexpat.1.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libfontconfig.1.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libfreetype.6.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libgailutil.18.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libgdk-quartz-2.0.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libgdk_pixbuf-2.0.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libgee.2.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libgio-2.0.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libglib-2.0.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libgmodule-2.0.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libgobject-2.0.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libgthread-2.0.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libgtk-quartz-2.0.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libiconv.2.dylib [new file with mode: 0644]
mac/moonshot-ui.app/Contents/Resources/lib/libintl.8.dylib [new file with mode: 0644]
mac/moonshot-ui.app/Contents/Resources/lib/libpango-1.0.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libpangocairo-1.0.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libpangoft2-1.0.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libpixman-1.0.dylib [new file with mode: 0755]
mac/moonshot-ui.app/Contents/Resources/lib/libpng14.14.dylib [new file with mode: 0755]
mac/moonshot-ui.bundle [new file with mode: 0644]
mac/moonshot-ui.plist [new file with mode: 0644]

diff --git a/mac/Info-gtk-demo.plist b/mac/Info-gtk-demo.plist
new file mode 100644 (file)
index 0000000..a47c60d
--- /dev/null
@@ -0,0 +1,30 @@
+<?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>CFBundleExecutable</key>
+    <string>GtkDemo</string>
+    <key>CFBundleGetInfoString</key>
+    <string>2.16.2, (C) 1997-2009 The GTK+ Team http://www.gtk.org</string>
+    <key>CFBundleIconFile</key>
+    <string>Giggle.icns</string>
+    <key>CFBundleIdentifier</key>
+    <string>org.gtk.demo</string>
+    <key>CFBundleInfoDictionaryVersion</key>
+    <string>6.0</string>
+    <key>CFBundlePackageType</key>
+    <string>APPL</string>
+    <key>CFBundleShortVersionString</key>
+    <string>2.16.2</string>
+    <key>CFBundleSignature</key>
+    <string>????</string>
+    <key>CFBundleVersion</key>
+    <string>2.16.2</string>
+    <key>NSHumanReadableCopyright</key>
+    <string>Copyright 1997 - 2009 The GTK+ Tean, GNU General Public License.</string>
+    <key>LSMinimumSystemVersion</key>
+    <string>10.4</string>
+</dict>
+</plist>
diff --git a/mac/Info-pygtk-demo.plist b/mac/Info-pygtk-demo.plist
new file mode 100644 (file)
index 0000000..37876b4
--- /dev/null
@@ -0,0 +1,30 @@
+<?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>CFBundleExecutable</key>
+    <string>PyGtkDemo</string>
+    <key>CFBundleGetInfoString</key>
+    <string>2.16.0, (C) 1997-2009 The GTK+ Team http://www.gtk.org</string>
+    <key>CFBundleIconFile</key>
+    <string>Giggle.icns</string>
+    <key>CFBundleIdentifier</key>
+    <string>org.gtk.demo</string>
+    <key>CFBundleInfoDictionaryVersion</key>
+    <string>6.0</string>
+    <key>CFBundlePackageType</key>
+    <string>APPL</string>
+    <key>CFBundleShortVersionString</key>
+    <string>2.16.0</string>
+    <key>CFBundleSignature</key>
+    <string>????</string>
+    <key>CFBundleVersion</key>
+    <string>2.16.0</string>
+    <key>NSHumanReadableCopyright</key>
+    <string>Copyright 1997 - 2009 The GTK+ Tean, GNU General Public License.</string>
+    <key>LSMinimumSystemVersion</key>
+    <string>10.5</string>
+</dict>
+</plist>
diff --git a/mac/gtkrc b/mac/gtkrc
new file mode 100644 (file)
index 0000000..ba5477c
--- /dev/null
+++ b/mac/gtkrc
@@ -0,0 +1,2 @@
+gtk-icon-theme-name = "Tango"
+gtk-enable-mnemonics = 0
diff --git a/mac/launcher.sh b/mac/launcher.sh
new file mode 100755 (executable)
index 0000000..d92f9e5
--- /dev/null
@@ -0,0 +1,168 @@
+#!/bin/sh
+
+if test "x$GTK_DEBUG_LAUNCHER" != x; then
+    set -x
+fi
+
+if test "x$GTK_DEBUG_GDB" != x; then
+    EXEC="gdb --args"
+else
+    EXEC=exec
+fi
+
+name=`basename "$0"`
+tmp="$0"
+tmp=`dirname "$tmp"`
+tmp=`dirname "$tmp"`
+bundle=`dirname "$tmp"`
+bundle_contents="$bundle"/Contents
+bundle_res="$bundle_contents"/Resources
+bundle_lib="$bundle_res"/lib
+bundle_bin="$bundle_res"/bin
+bundle_data="$bundle_res"/share
+bundle_etc="$bundle_res"/etc
+
+export DYLD_LIBRARY_PATH="$bundle_lib"
+export XDG_CONFIG_DIRS="$bundle_etc"/xdg
+export XDG_DATA_DIRS="$bundle_data"
+export GTK_DATA_PREFIX="$bundle_res"
+export GTK_EXE_PREFIX="$bundle_res"
+export GTK_PATH="$bundle_res"
+
+export GTK2_RC_FILES="$bundle_etc/gtk-2.0/gtkrc"
+export GTK_IM_MODULE_FILE="$bundle_etc/gtk-2.0/gtk.immodules"
+export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-2.0/gdk-pixbuf.loaders"
+export PANGO_RC_FILE="$bundle_etc/pango/pangorc"
+
+APP=name
+I18NDIR="$bundle_data/locale"
+# Set the locale-related variables appropriately:
+unset LANG LC_MESSAGES LC_MONETARY LC_COLLATE
+
+# Has a language ordering been set?
+# If so, set LC_MESSAGES and LANG accordingly; otherwise skip it.
+# First step uses sed to clean off the quotes and commas, to change - to _, and change the names for the chinese scripts from "Hans" to CN and "Hant" to TW.
+APPLELANGUAGES=`defaults read .GlobalPreferences AppleLanguages | sed -En   -e 's/\-/_/' -e 's/Hant/TW/' -e 's/Hans/CN/' -e 's/[[:space:]]*\"?([[:alnum:]_]+)\"?,?/\1/p' `
+if test "$APPLELANGUAGES"; then
+    # A language ordering exists.
+    # Test, item per item, to see whether there is an corresponding locale.
+    for L in $APPLELANGUAGES; do
+       #test for exact matches:
+       if test -f "$I18NDIR/${L}/LC_MESSAGES/$APP.mo"; then
+           export LANG=$L
+            break
+        fi
+       #This is a special case, because often the original strings are in US
+       #English and there is no translation file.
+       if test "x$L" == "xen_US"; then
+           export LANG=$L
+           break
+       fi
+       #OK, now test for just the first two letters:
+        if test -f "$I18NDIR/${L:0:2}/LC_MESSAGES/$APP.mo"; then
+           export LANG=${L:0:2}
+           break
+       fi
+       #Same thing, but checking for any english variant.
+       if test "x${L:0:2}" == "xen"; then
+           export LANG=$L
+           break
+       fi;
+    done  
+fi
+unset APPLELANGUAGES L
+
+# If we didn't get a language from the language list, try the Collation preference, in case it's the only setting that exists.
+APPLECOLLATION=`defaults read .GlobalPreferences AppleCollationOrder`
+if test -z ${LANG} -a -n $APPLECOLLATION; then
+    if test -f "$I18NDIR/${APPLECOLLATION:0:2}/LC_MESSAGES/$APP.mo"; then
+       export LANG=${APPLECOLLATION:0:2}
+    fi
+fi
+if test ! -z $APPLECOLLATION; then
+    export LC_COLLATE=$APPLECOLLATION
+fi
+unset APPLECOLLATION
+
+# Continue by attempting to find the Locale preference.
+APPLELOCALE=`defaults read .GlobalPreferences AppleLocale`
+
+if test -f "$I18NDIR/${APPLELOCALE:0:5}/LC_MESSAGES/$APP.mo"; then
+    if test -z $LANG; then 
+        export LANG="${APPLELOCALE:0:5}"
+    fi
+
+elif test -z $LANG -a -f "$I18NDIR/${APPLELOCALE:0:2}/LC_MESSAGES/$APP.mo"; then
+    export LANG="${APPLELOCALE:0:2}"
+fi
+
+#Next we need to set LC_MESSAGES. If at all possilbe, we want a full
+#5-character locale to avoid the "Locale not supported by C library"
+#warning from Gtk -- even though Gtk will translate with a
+#two-character code.
+if test -n $LANG; then 
+#If the language code matches the applelocale, then that's the message
+#locale; otherwise, if it's longer than two characters, then it's
+#probably a good message locale and we'll go with it.
+    if test $LANG == ${APPLELOCALE:0:5} -o $LANG != ${LANG:0:2}; then
+       export LC_MESSAGES=$LANG
+#Next try if the Applelocale is longer than 2 chars and the language
+#bit matches $LANG
+    elif test $LANG == ${APPLELOCALE:0:2} -a $APPLELOCALE > ${APPLELOCALE:0:2}; then
+       export LC_MESSAGES=${APPLELOCALE:0:5}
+#Fail. Get a list of the locales in $PREFIX/share/locale that match
+#our two letter language code and pick the first one, special casing
+#english to set en_US
+    elif test $LANG == "en"; then
+       export LC_MESSAGES="en_US"
+    else
+       LOC=`find $PREFIX/share/locale -name $LANG???`
+       for L in $LOC; do 
+           export LC_MESSAGES=$L
+       done
+    fi
+else
+#All efforts have failed, so default to US english
+    export LANG="en_US"
+    export LC_MESSAGES="en_US"
+fi
+CURRENCY=`echo $APPLELOCALE |  sed -En 's/.*currency=([[:alpha:]]+).*/\1/p'`
+if test "x$CURRENCY" != "x"; then 
+#The user has set a special currency. Gtk doesn't install LC_MONETARY files, but Apple does in /usr/share/locale, so we're going to look there for a locale to set LC_CURRENCY to.
+    if test -f /usr/local/share/$LC_MESSAGES/LC_MONETARY; then
+       if test -a `cat /usr/local/share/$LC_MESSAGES/LC_MONETARY` == $CURRENCY; then
+           export LC_MONETARY=$LC_MESSAGES
+       fi
+    fi
+    if test -z "$LC_MONETARY"; then 
+       FILES=`find /usr/share/locale -name LC_MONETARY -exec grep -H $CURRENCY {} \;`
+       if test -n "$FILES"; then 
+           export LC_MONETARY=`echo $FILES | sed -En 's%/usr/share/locale/([[:alpha:]_]+)/LC_MONETARY.*%\1%p'`
+       fi
+    fi
+fi
+#No currency value means that the AppleLocale governs:
+if test -z "$LC_MONETARY"; then
+    LC_MONETARY=${APPLELOCALE:0:5}
+fi
+#For Gtk, which only looks at LC_ALL:
+export LC_ALL=$LC_MESSAGES
+
+unset APPLELOCALE FILES LOC
+
+if test -f "$bundle_lib/charset.alias"; then
+    export CHARSETALIASDIR="$bundle_lib"
+fi
+
+# Extra arguments can be added in environment.sh.
+EXTRA_ARGS=
+if test -f "$bundle_res/environment.sh"; then
+  source "$bundle_res/environment.sh"
+fi
+
+# Strip out the argument added by the OS.
+if /bin/expr "x$1" : '^x-psn_' > /dev/null; then
+    shift 1
+fi
+
+$EXEC "$bundle_contents/MacOS/$name-bin" "$@" $EXTRA_ARGS
diff --git a/mac/moonshot-ui.app/Contents/Info.plist b/mac/moonshot-ui.app/Contents/Info.plist
new file mode 100644 (file)
index 0000000..445cb80
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>CFBundleExecutable</key>
+       <string>moonshot-ui</string>
+       <key>CFBundleGetInfoString</key>
+       <string>0.3, Copyright 2006-2007 Imendio AB</string>
+       <key>CFBundleIconFile</key>
+       <string>Giggle.icns</string>
+       <key>CFBundleIdentifier</key>
+       <string>com.imendio.Giggle</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+       <key>CFBundleShortVersionString</key>
+       <string>0.3</string>
+       <key>CFBundleSignature</key>
+       <string>????</string>
+       <key>CFBundleVersion</key>
+       <string>0.3</string>
+       <key>NSHumanReadableCopyright</key>
+       <string>Copyright 2006-2007 Imendio AB, GNU General Public License.</string>
+       <key>LSMinimumSystemVersion</key>
+       <string>10.4</string>
+</dict>
+</plist>
diff --git a/mac/moonshot-ui.app/Contents/MacOS/moonshot-ui b/mac/moonshot-ui.app/Contents/MacOS/moonshot-ui
new file mode 100755 (executable)
index 0000000..d92f9e5
--- /dev/null
@@ -0,0 +1,168 @@
+#!/bin/sh
+
+if test "x$GTK_DEBUG_LAUNCHER" != x; then
+    set -x
+fi
+
+if test "x$GTK_DEBUG_GDB" != x; then
+    EXEC="gdb --args"
+else
+    EXEC=exec
+fi
+
+name=`basename "$0"`
+tmp="$0"
+tmp=`dirname "$tmp"`
+tmp=`dirname "$tmp"`
+bundle=`dirname "$tmp"`
+bundle_contents="$bundle"/Contents
+bundle_res="$bundle_contents"/Resources
+bundle_lib="$bundle_res"/lib
+bundle_bin="$bundle_res"/bin
+bundle_data="$bundle_res"/share
+bundle_etc="$bundle_res"/etc
+
+export DYLD_LIBRARY_PATH="$bundle_lib"
+export XDG_CONFIG_DIRS="$bundle_etc"/xdg
+export XDG_DATA_DIRS="$bundle_data"
+export GTK_DATA_PREFIX="$bundle_res"
+export GTK_EXE_PREFIX="$bundle_res"
+export GTK_PATH="$bundle_res"
+
+export GTK2_RC_FILES="$bundle_etc/gtk-2.0/gtkrc"
+export GTK_IM_MODULE_FILE="$bundle_etc/gtk-2.0/gtk.immodules"
+export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-2.0/gdk-pixbuf.loaders"
+export PANGO_RC_FILE="$bundle_etc/pango/pangorc"
+
+APP=name
+I18NDIR="$bundle_data/locale"
+# Set the locale-related variables appropriately:
+unset LANG LC_MESSAGES LC_MONETARY LC_COLLATE
+
+# Has a language ordering been set?
+# If so, set LC_MESSAGES and LANG accordingly; otherwise skip it.
+# First step uses sed to clean off the quotes and commas, to change - to _, and change the names for the chinese scripts from "Hans" to CN and "Hant" to TW.
+APPLELANGUAGES=`defaults read .GlobalPreferences AppleLanguages | sed -En   -e 's/\-/_/' -e 's/Hant/TW/' -e 's/Hans/CN/' -e 's/[[:space:]]*\"?([[:alnum:]_]+)\"?,?/\1/p' `
+if test "$APPLELANGUAGES"; then
+    # A language ordering exists.
+    # Test, item per item, to see whether there is an corresponding locale.
+    for L in $APPLELANGUAGES; do
+       #test for exact matches:
+       if test -f "$I18NDIR/${L}/LC_MESSAGES/$APP.mo"; then
+           export LANG=$L
+            break
+        fi
+       #This is a special case, because often the original strings are in US
+       #English and there is no translation file.
+       if test "x$L" == "xen_US"; then
+           export LANG=$L
+           break
+       fi
+       #OK, now test for just the first two letters:
+        if test -f "$I18NDIR/${L:0:2}/LC_MESSAGES/$APP.mo"; then
+           export LANG=${L:0:2}
+           break
+       fi
+       #Same thing, but checking for any english variant.
+       if test "x${L:0:2}" == "xen"; then
+           export LANG=$L
+           break
+       fi;
+    done  
+fi
+unset APPLELANGUAGES L
+
+# If we didn't get a language from the language list, try the Collation preference, in case it's the only setting that exists.
+APPLECOLLATION=`defaults read .GlobalPreferences AppleCollationOrder`
+if test -z ${LANG} -a -n $APPLECOLLATION; then
+    if test -f "$I18NDIR/${APPLECOLLATION:0:2}/LC_MESSAGES/$APP.mo"; then
+       export LANG=${APPLECOLLATION:0:2}
+    fi
+fi
+if test ! -z $APPLECOLLATION; then
+    export LC_COLLATE=$APPLECOLLATION
+fi
+unset APPLECOLLATION
+
+# Continue by attempting to find the Locale preference.
+APPLELOCALE=`defaults read .GlobalPreferences AppleLocale`
+
+if test -f "$I18NDIR/${APPLELOCALE:0:5}/LC_MESSAGES/$APP.mo"; then
+    if test -z $LANG; then 
+        export LANG="${APPLELOCALE:0:5}"
+    fi
+
+elif test -z $LANG -a -f "$I18NDIR/${APPLELOCALE:0:2}/LC_MESSAGES/$APP.mo"; then
+    export LANG="${APPLELOCALE:0:2}"
+fi
+
+#Next we need to set LC_MESSAGES. If at all possilbe, we want a full
+#5-character locale to avoid the "Locale not supported by C library"
+#warning from Gtk -- even though Gtk will translate with a
+#two-character code.
+if test -n $LANG; then 
+#If the language code matches the applelocale, then that's the message
+#locale; otherwise, if it's longer than two characters, then it's
+#probably a good message locale and we'll go with it.
+    if test $LANG == ${APPLELOCALE:0:5} -o $LANG != ${LANG:0:2}; then
+       export LC_MESSAGES=$LANG
+#Next try if the Applelocale is longer than 2 chars and the language
+#bit matches $LANG
+    elif test $LANG == ${APPLELOCALE:0:2} -a $APPLELOCALE > ${APPLELOCALE:0:2}; then
+       export LC_MESSAGES=${APPLELOCALE:0:5}
+#Fail. Get a list of the locales in $PREFIX/share/locale that match
+#our two letter language code and pick the first one, special casing
+#english to set en_US
+    elif test $LANG == "en"; then
+       export LC_MESSAGES="en_US"
+    else
+       LOC=`find $PREFIX/share/locale -name $LANG???`
+       for L in $LOC; do 
+           export LC_MESSAGES=$L
+       done
+    fi
+else
+#All efforts have failed, so default to US english
+    export LANG="en_US"
+    export LC_MESSAGES="en_US"
+fi
+CURRENCY=`echo $APPLELOCALE |  sed -En 's/.*currency=([[:alpha:]]+).*/\1/p'`
+if test "x$CURRENCY" != "x"; then 
+#The user has set a special currency. Gtk doesn't install LC_MONETARY files, but Apple does in /usr/share/locale, so we're going to look there for a locale to set LC_CURRENCY to.
+    if test -f /usr/local/share/$LC_MESSAGES/LC_MONETARY; then
+       if test -a `cat /usr/local/share/$LC_MESSAGES/LC_MONETARY` == $CURRENCY; then
+           export LC_MONETARY=$LC_MESSAGES
+       fi
+    fi
+    if test -z "$LC_MONETARY"; then 
+       FILES=`find /usr/share/locale -name LC_MONETARY -exec grep -H $CURRENCY {} \;`
+       if test -n "$FILES"; then 
+           export LC_MONETARY=`echo $FILES | sed -En 's%/usr/share/locale/([[:alpha:]_]+)/LC_MONETARY.*%\1%p'`
+       fi
+    fi
+fi
+#No currency value means that the AppleLocale governs:
+if test -z "$LC_MONETARY"; then
+    LC_MONETARY=${APPLELOCALE:0:5}
+fi
+#For Gtk, which only looks at LC_ALL:
+export LC_ALL=$LC_MESSAGES
+
+unset APPLELOCALE FILES LOC
+
+if test -f "$bundle_lib/charset.alias"; then
+    export CHARSETALIASDIR="$bundle_lib"
+fi
+
+# Extra arguments can be added in environment.sh.
+EXTRA_ARGS=
+if test -f "$bundle_res/environment.sh"; then
+  source "$bundle_res/environment.sh"
+fi
+
+# Strip out the argument added by the OS.
+if /bin/expr "x$1" : '^x-psn_' > /dev/null; then
+    shift 1
+fi
+
+$EXEC "$bundle_contents/MacOS/$name-bin" "$@" $EXTRA_ARGS
diff --git a/mac/moonshot-ui.app/Contents/MacOS/moonshot-ui-bin b/mac/moonshot-ui.app/Contents/MacOS/moonshot-ui-bin
new file mode 100755 (executable)
index 0000000..6c34a3e
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/MacOS/moonshot-ui-bin differ
diff --git a/mac/moonshot-ui.app/Contents/PkgInfo b/mac/moonshot-ui.app/Contents/PkgInfo
new file mode 100644 (file)
index 0000000..bd04210
--- /dev/null
@@ -0,0 +1 @@
+APPL????
\ No newline at end of file
diff --git a/mac/moonshot-ui.app/Contents/Resources/etc/gtk-2.0/gdk-pixbuf.loaders b/mac/moonshot-ui.app/Contents/Resources/etc/gtk-2.0/gdk-pixbuf.loaders
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+
diff --git a/mac/moonshot-ui.app/Contents/Resources/etc/gtk-2.0/gtk.immodules b/mac/moonshot-ui.app/Contents/Resources/etc/gtk-2.0/gtk.immodules
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/mac/moonshot-ui.app/Contents/Resources/etc/gtk-2.0/gtkrc b/mac/moonshot-ui.app/Contents/Resources/etc/gtk-2.0/gtkrc
new file mode 100644 (file)
index 0000000..ba5477c
--- /dev/null
@@ -0,0 +1,2 @@
+gtk-icon-theme-name = "Tango"
+gtk-enable-mnemonics = 0
diff --git a/mac/moonshot-ui.app/Contents/Resources/etc/pango/pango.modules b/mac/moonshot-ui.app/Contents/Resources/etc/pango/pango.modules
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/mac/moonshot-ui.app/Contents/Resources/etc/pango/pangorc b/mac/moonshot-ui.app/Contents/Resources/etc/pango/pangorc
new file mode 100644 (file)
index 0000000..bb1a813
--- /dev/null
@@ -0,0 +1,2 @@
+[Pango]
+ModuleFiles=./pango.modules
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/charset.alias b/mac/moonshot-ui.app/Contents/Resources/lib/charset.alias
new file mode 100644 (file)
index 0000000..9977a17
--- /dev/null
@@ -0,0 +1,30 @@
+# This file contains a table of character encoding aliases,
+# suitable for operating system 'darwin10.8.0'.
+# It was automatically generated from config.charset.
+# Packages using this file:  gettext-runtime gettext-tools m4 glib 
+ISO8859-1 ISO-8859-1
+ISO8859-2 ISO-8859-2
+ISO8859-4 ISO-8859-4
+ISO8859-5 ISO-8859-5
+ISO8859-7 ISO-8859-7
+ISO8859-9 ISO-8859-9
+ISO8859-13 ISO-8859-13
+ISO8859-15 ISO-8859-15
+KOI8-R KOI8-R
+KOI8-U KOI8-U
+CP866 CP866
+CP949 CP949
+CP1131 CP1131
+CP1251 CP1251
+eucCN GB2312
+GB2312 GB2312
+eucJP EUC-JP
+eucKR EUC-KR
+Big5 BIG5
+Big5HKSCS BIG5-HKSCS
+GBK GBK
+GB18030 GB18030
+SJIS SHIFT_JIS
+ARMSCII-8 ARMSCII-8
+PT154 PT154
+* UTF-8
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libclearlooks.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
new file mode 100755 (executable)
index 0000000..110c2cf
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libclearlooks.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libcrux-engine.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libcrux-engine.so
new file mode 100755 (executable)
index 0000000..127dfe4
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libcrux-engine.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libglide.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libglide.so
new file mode 100755 (executable)
index 0000000..8513422
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libglide.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libhcengine.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libhcengine.so
new file mode 100755 (executable)
index 0000000..968057a
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libhcengine.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libindustrial.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libindustrial.so
new file mode 100755 (executable)
index 0000000..98448a5
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libindustrial.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libmist.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libmist.so
new file mode 100755 (executable)
index 0000000..d8b0327
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libmist.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libpixmap.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libpixmap.so
new file mode 100755 (executable)
index 0000000..3b49826
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libpixmap.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libredmond95.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libredmond95.so
new file mode 100755 (executable)
index 0000000..79bc936
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libredmond95.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libthinice.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libthinice.so
new file mode 100755 (executable)
index 0000000..e528d06
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/engines/libthinice.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so
new file mode 100755 (executable)
index 0000000..2b7f679
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-file.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-file.so
new file mode 100755 (executable)
index 0000000..069fc4e
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-file.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-lpr.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-lpr.so
new file mode 100755 (executable)
index 0000000..2b02121
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-lpr.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/modules/libferret.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/modules/libferret.so
new file mode 100755 (executable)
index 0000000..f937f0e
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/modules/libferret.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/modules/libgail.so b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/modules/libgail.so
new file mode 100755 (executable)
index 0000000..6795ed1
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/gtk-2.0/modules/libgail.so differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libatk-1.0.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libatk-1.0.0.dylib
new file mode 100755 (executable)
index 0000000..b842b2a
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libatk-1.0.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libcairo.2.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libcairo.2.dylib
new file mode 100755 (executable)
index 0000000..34316be
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libcairo.2.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libexpat.1.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libexpat.1.dylib
new file mode 100755 (executable)
index 0000000..c760324
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libexpat.1.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libfontconfig.1.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libfontconfig.1.dylib
new file mode 100755 (executable)
index 0000000..c8f4c7d
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libfontconfig.1.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libfreetype.6.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libfreetype.6.dylib
new file mode 100755 (executable)
index 0000000..e486e57
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libfreetype.6.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libgailutil.18.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libgailutil.18.dylib
new file mode 100755 (executable)
index 0000000..03d9bd1
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libgailutil.18.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libgdk-quartz-2.0.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libgdk-quartz-2.0.0.dylib
new file mode 100755 (executable)
index 0000000..69f0934
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libgdk-quartz-2.0.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libgdk_pixbuf-2.0.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libgdk_pixbuf-2.0.0.dylib
new file mode 100755 (executable)
index 0000000..076dfb2
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libgdk_pixbuf-2.0.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libgee.2.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libgee.2.dylib
new file mode 100755 (executable)
index 0000000..1f25135
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libgee.2.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libgio-2.0.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libgio-2.0.0.dylib
new file mode 100755 (executable)
index 0000000..042c4d3
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libgio-2.0.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libglib-2.0.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libglib-2.0.0.dylib
new file mode 100755 (executable)
index 0000000..8c51750
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libglib-2.0.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libgmodule-2.0.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libgmodule-2.0.0.dylib
new file mode 100755 (executable)
index 0000000..6e8725c
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libgmodule-2.0.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libgobject-2.0.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libgobject-2.0.0.dylib
new file mode 100755 (executable)
index 0000000..f39234b
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libgobject-2.0.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libgthread-2.0.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libgthread-2.0.0.dylib
new file mode 100755 (executable)
index 0000000..c5dfa61
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libgthread-2.0.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libgtk-quartz-2.0.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libgtk-quartz-2.0.0.dylib
new file mode 100755 (executable)
index 0000000..04ba58f
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libgtk-quartz-2.0.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libiconv.2.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libiconv.2.dylib
new file mode 100644 (file)
index 0000000..a71e734
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libiconv.2.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libintl.8.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libintl.8.dylib
new file mode 100644 (file)
index 0000000..43c1ae8
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libintl.8.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libpango-1.0.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libpango-1.0.0.dylib
new file mode 100755 (executable)
index 0000000..6fc0679
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libpango-1.0.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libpangocairo-1.0.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libpangocairo-1.0.0.dylib
new file mode 100755 (executable)
index 0000000..3e69685
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libpangocairo-1.0.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libpangoft2-1.0.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libpangoft2-1.0.0.dylib
new file mode 100755 (executable)
index 0000000..cdcdadc
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libpangoft2-1.0.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libpixman-1.0.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libpixman-1.0.dylib
new file mode 100755 (executable)
index 0000000..53e690c
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libpixman-1.0.dylib differ
diff --git a/mac/moonshot-ui.app/Contents/Resources/lib/libpng14.14.dylib b/mac/moonshot-ui.app/Contents/Resources/lib/libpng14.14.dylib
new file mode 100755 (executable)
index 0000000..1124c2f
Binary files /dev/null and b/mac/moonshot-ui.app/Contents/Resources/lib/libpng14.14.dylib differ
diff --git a/mac/moonshot-ui.bundle b/mac/moonshot-ui.bundle
new file mode 100644 (file)
index 0000000..6bb8738
--- /dev/null
@@ -0,0 +1,135 @@
+<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
+<app-bundle>
+
+  <meta>
+    <!-- Where to pick up the GTK+ installation, icon themes,
+         etc. Note that "${env:JHBUILD_PREFIX}" is evaluated to the
+         value of the environment variable JHBUILD_PREFIX. You can
+         define additional prefixes and refer to them in paths
+         throughout this file on the form "${prefix:name}". This is
+         useful for installing certain libraries or even the
+         application itself separately. Note that JHBUILD_PREFIX is
+         defined by jhbuild, so it you are not using jhbuild you can
+         either define your own or just hardcode the path here.
+    -->
+    <prefix name="default">${env:JHBUILD_PREFIX}</prefix>
+
+    <!-- The project directory is the default location of the created
+         app. If you leave out the path, the current directory is
+         used. Note the usage of an environment variable here again.
+    -->
+    <destination overwrite="yes"></destination>
+
+    <image>
+      <!-- Not implemented yet (DMG image). -->
+    </image>
+
+    <!-- Comment this out to keep the install names in binaries -->
+    <run-install-name-tool/>
+    <!-- Optionally specify a launcher script to use. If the
+         application sets up everything needed itself, like
+         environment variable, linker paths, etc, a launcher script is
+         not needed. If the source path is left out, the default
+         script will be used.
+    -->
+    <launcher-script>${project}/launcher.sh</launcher-script >
+
+    <!-- Not implemented: Optional runtime, could be python or mono
+         for example.
+    -->
+    <!-- runtime copy="yes">/usr/bin/python</runtime -->
+    <!-- Indicate the active gtk version to use. This is needed only
+         for gtk+-3.0 projects. -->
+    <gtk>gtk+-2.0</gtk>
+  </meta>
+
+  <!-- The special macro "${project}" refers to the directory where
+       this bundle file is located. The application name and bundle
+       identifier are taken from the plist file.
+  -->
+  <plist>${project}/moonshot-ui.plist</plist>
+
+  <main-binary>${prefix}/bin/moonshot</main-binary>
+
+  <!-- Copy in GTK+ modules.  Note the ${gtkdir} macro, which expands
+       to the correct library subdirectory for the specified gtk
+       version.
+  -->
+  <binary>
+     ${prefix}/lib/${gtkdir}/modules/*.so
+  </binary>
+
+  <!-- Copy in GTK+ theme engines and print backends. Note the use of the
+       "${pkg:module:variable}" macro, which evaluates to a pkg-config
+       variable in the specified module. Note that any libraries that
+       binaries link to are also copied in automatically.  Note also
+       the included ${gtk} macro, which gets the correct package name
+       to get. -->
+  <binary>
+    ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/engines/*.so
+  </binary>
+  <binary>
+    ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/printbackends/*.so
+  </binary>
+
+<!-- Starting with 2.24, gdk-pixbuf installs into its own directory. -->
+  <binary>
+    ${prefix}/lib/gdk-pixbuf-2.0/${pkg:${gtk}:gtk_binary_version}/*.so
+  </binary>
+
+  <!-- Translation filenames, one for each program or library that you
+       want to copy in to the bundle. The "dest" attribute is
+       optional, as usual. Bundler will find all translations of that
+       library/program under the indicated directory and copy them.-->
+  <translations name="gtk20">
+    ${prefix}/share/locale
+  </translations>
+
+
+  <!-- Data to copy in, usually Glade/UI files, images, sounds files
+       etc. The destination inside the bundle can be specified if the
+       files should end up at a different location, by using the
+       "dest" property. The destination must then start with the macro
+       "${bundle}", which refers to the bundle root directory.
+  -->
+  <!-- data>
+    ${prefix}/share/moonshot-ui
+  </data -->
+
+  <!-- Copy in the themes data. You may want to trim this to save space
+       in your bundle. -->
+  <data>
+    ${prefix}/share/themes
+  </data>
+
+  <!-- Copy icons. Note that the .icns file is an Apple format which
+       contains up to 4 sizes of icon. You can use
+       /Developer/Applications/Utilities/Icon Composer.app to import
+       artwork and create the file. >
+  <data dest="${bundle}/Contents/Resources">
+    ${project}/Giggle.icns
+  </data -->
+
+  <!-- This is where theme commands go. You can copy them in from your
+       theme of choice if they provide and example, or you can just
+       change the source path. -->
+
+  <data dest="${bundle}/Contents/Resources/etc/${gtkdir}/gtkrc">
+    ${project}/gtkrc
+  </data>
+
+  <!-- Icon themes to copy. The "icons" property can be either of
+       "auto", "all", or "none". All or none should be
+       self-explanatory, while auto means that the script will try to
+       figure out which icons are needed. This is done by getting all
+       the strings from all copied binaries, and matching them against
+       icon names. To be safe, you should use "all". "none" is useful
+       if you want just the index.theme file but no icons, mostly
+       needed for the "hicolor" base theme.
+  >
+  <icon-theme icons="auto">
+    Tango
+  </icon-theme -->
+
+</app-bundle>
diff --git a/mac/moonshot-ui.plist b/mac/moonshot-ui.plist
new file mode 100644 (file)
index 0000000..445cb80
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>CFBundleExecutable</key>
+       <string>moonshot-ui</string>
+       <key>CFBundleGetInfoString</key>
+       <string>0.3, Copyright 2006-2007 Imendio AB</string>
+       <key>CFBundleIconFile</key>
+       <string>Giggle.icns</string>
+       <key>CFBundleIdentifier</key>
+       <string>com.imendio.Giggle</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+       <key>CFBundleShortVersionString</key>
+       <string>0.3</string>
+       <key>CFBundleSignature</key>
+       <string>????</string>
+       <key>CFBundleVersion</key>
+       <string>0.3</string>
+       <key>NSHumanReadableCopyright</key>
+       <string>Copyright 2006-2007 Imendio AB, GNU General Public License.</string>
+       <key>LSMinimumSystemVersion</key>
+       <string>10.4</string>
+</dict>
+</plist>