eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] eliot Makefile.am extras/macosx/Info.plist extr...


From: Olivier Teulière
Subject: [Eliot-dev] eliot Makefile.am extras/macosx/Info.plist extr...
Date: Fri, 29 Jan 2010 21:13:05 +0000

CVSROOT:        /cvsroot/eliot
Module name:    eliot
Changes by:     Olivier Teulière <ipkiss>       10/01/29 21:13:05

Modified files:
        .              : Makefile.am 
Added files:
        extras/macosx  : Info.plist eliot-64.icns 

Log message:
        New 'package-macosx' target to prepare the Eliot.app bundle, on MacOSX.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/Makefile.am?cvsroot=eliot&r1=1.14&r2=1.15
http://cvs.savannah.gnu.org/viewcvs/eliot/extras/macosx/Info.plist?cvsroot=eliot&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/eliot/extras/macosx/eliot-64.icns?cvsroot=eliot&rev=1.1

Patches:
Index: Makefile.am
===================================================================
RCS file: /cvsroot/eliot/eliot/Makefile.am,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- Makefile.am 30 Nov 2009 21:54:48 -0000      1.14
+++ Makefile.am 29 Jan 2010 21:13:05 -0000      1.15
@@ -2,13 +2,14 @@
 
 ACLOCAL_AMFLAGS = -I m4
 
-# Prepare the win32 package
 WIN32_PACKAGE_DIR = $(top_builddir)/eliot-$(VERSION)
+MACOSX_PACKAGE_DIR = $(top_builddir)/Eliot.app
 
-.PHONY: package-win32-zip
+.PHONY: package-win32-zip package-macosx
 
 EXTRA_DIST = COPYING.arabica
 
+# Prepare the win32 package
 package-win32-zip:
 # Check that the working directory is not already there
        @if test -e $(WIN32_PACKAGE_DIR); then \
@@ -43,3 +44,29 @@
 # Zip the temporary dir and remove it
        zip -r -9 eliot-$(VERSION)-win32.zip $(WIN32_PACKAGE_DIR)
        rm -rf $(WIN32_PACKAGE_DIR)
+
+# Prepare the macosx package
+package-macosx:
+# Check that the working directory is not already there
+       @if test -e $(MACOSX_PACKAGE_DIR); then \
+               echo '$(MACOSX_PACKAGE_DIR) is in the way'; \
+               false; \
+       fi
+
+# Prepare the bundle structure
+       mkdir -p $(MACOSX_PACKAGE_DIR)/Contents/MacOS
+       mkdir -p $(MACOSX_PACKAGE_DIR)/Contents/Resources
+       cp $(top_srcdir)/extras/macosx/Info.plist $(MACOSX_PACKAGE_DIR)/Contents
+       cp $(top_srcdir)/extras/macosx/eliot-64.icns 
$(MACOSX_PACKAGE_DIR)/Contents/Resources
+
+# Copy the binaries and strip them
+       cp $(top_builddir)/qt/eliot$(EXEEXT) 
$(MACOSX_PACKAGE_DIR)/Contents/MacOS/Eliot
+       strip $(MACOSX_PACKAGE_DIR)/Contents/MacOS/Eliot
+
+# Copy the i18n files
+       cat $(top_srcdir)/po/LINGUAS | while read lang; do \
+               mkdir -p $(MACOSX_PACKAGE_DIR)/locale/$${lang}/LC_MESSAGES; \
+               cp $(top_srcdir)/po/$${lang}.gmo 
$(MACOSX_PACKAGE_DIR)/locale/$${lang}/LC_MESSAGES/eliot.mo; \
+       done
+       mkdir -p $(MACOSX_PACKAGE_DIR)/locale/qt4
+       cp $(QT4LOCALEDIR)/*.qm $(MACOSX_PACKAGE_DIR)/locale/qt4/ || true

Index: extras/macosx/Info.plist
===================================================================
RCS file: extras/macosx/Info.plist
diff -N extras/macosx/Info.plist
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ extras/macosx/Info.plist    29 Jan 2010 21:13:05 -0000      1.1
@@ -0,0 +1,14 @@
+<?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>CFBundleExecutableFile</key>
+    <string>Eliot</string>
+    <key>CFBundleName</key>
+    <string>Eliot</string>
+    <key>CFBundleIdentifier</key>
+    <string>org.nongnu.savannah.eliot</string>
+    <key>CFBundleIconFile</key>
+    <string>eliot-64.icns</string>
+  </dict>
+</plist>

Index: extras/macosx/eliot-64.icns
===================================================================
RCS file: extras/macosx/eliot-64.icns
diff -N extras/macosx/eliot-64.icns
Binary files /dev/null and /tmp/cvsoOmxiJ differ




reply via email to

[Prev in Thread] Current Thread [Next in Thread]