[Libreoffice-commits] core.git: configure.ac instsetoo_native/util officecfg/registry postprocess/CustomTarget_registry.mk solenv/bin sysui/CustomTarget_infoplist.mk sysui/desktop
Tor Lillqvist
tml at collabora.com
Mon Sep 23 15:59:30 PDT 2013
configure.ac | 12
instsetoo_native/util/openoffice.lst.in | 5
officecfg/registry/data/org/openoffice/Setup.xcu | 4
postprocess/CustomTarget_registry.mk | 2
solenv/bin/modules/installer/ziplist.pm | 3
sysui/CustomTarget_infoplist.mk | 5
sysui/desktop/macosx/Info.plist | 1427 -----------------------
sysui/desktop/macosx/Info.plist.in | 1427 +++++++++++++++++++++++
8 files changed, 1443 insertions(+), 1442 deletions(-)
New commits:
commit bbbc51e931c3a7018f2f19f61fa823190ee6fbb1
Author: Tor Lillqvist <tml at collabora.com>
Date: Tue Sep 24 01:49:59 2013 +0300
Create a proper Info.plist for the OS X app bundle already in configure
After recent instdir changes the SCPZIP_REPLACE thing was not used any
more for Info.plist, so all the ${FOO} things were left in Info.plist
unexpanded with predictably wonky results, a non-working app.
Instead just expand it from the configure script.
While at it, use a correct CFBundleShortVersionString: only three
integers should be in that.
Also, hardcode FILEFORMATNAME as OpenOffice.org and FILEFORMATVERSION
as 1.0, and drop the "variables", as that is what those "variables"
*means*. They were used to refer to the OOo 1.0 formats. (It would
have been utterly wrong to define them as something else, like another
product name and a newer version number, in openoffice.lst, so
pointless to have them there.)
Drop the meaningless BUILDIDCWS.
Change-Id: I4030aa060b78e8b3fb812a6362869996e8db7d3d
diff --git a/configure.ac b/configure.ac
index 1f3ea9b..0bcbfae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -110,6 +110,11 @@ LIBO_VERSION_MINOR=$2
LIBO_VERSION_MICRO=$3
LIBO_VERSION_PATCH=$4
+# The CFBundleShortVersionString in Info.plist consists of three integers, so encode the third
+# as the micro version times 1000 plus the patch number. Unfortunately the LIBO_VERSION_SUFFIX can be anything so
+# no way to encode that into an integer in general.
+MACOSX_BUNDLE_SHORTVERSION=$LIBO_VERSION_MAJOR.$LIBO_VERSION_MINOR.`expr $LIBO_VERSION_MICRO '*' 1000 + $LIBO_VERSION_PATCH`
+
LIBO_VERSION_SUFFIX=$5
# Split out LIBO_VERSION_SUFFIX_SUFFIX... horrible crack. But apparently wanted separately in
# openoffice.lst as ABOUTBOXPRODUCTVERSIONSUFFIX. Note that the double brackets are for m4's sake,
@@ -123,6 +128,7 @@ AC_SUBST(LIBO_VERSION_MAJOR)
AC_SUBST(LIBO_VERSION_MINOR)
AC_SUBST(LIBO_VERSION_MICRO)
AC_SUBST(LIBO_VERSION_PATCH)
+AC_SUBST(MACOSX_BUNDLE_SHORTVERSION)
AC_SUBST(LIBO_VERSION_SUFFIX)
AC_SUBST(LIBO_VERSION_SUFFIX_SUFFIX)
@@ -12595,7 +12601,11 @@ if test -f config_host.mk; then
config_md5=`$MD5SUM config_host.mk | sed "s/ .*//"`
fi
-AC_CONFIG_FILES([config_host.mk Makefile lo.xcent instsetoo_native/util/openoffice.lst])
+AC_CONFIG_FILES([config_host.mk
+ Makefile
+ lo.xcent
+ instsetoo_native/util/openoffice.lst
+ sysui/desktop/macosx/Info.plist])
AC_CONFIG_HEADERS([config_host/config_buildid.h])
AC_CONFIG_HEADERS([config_host/config_clang.h])
AC_CONFIG_HEADERS([config_host/config_features.h])
diff --git a/instsetoo_native/util/openoffice.lst.in b/instsetoo_native/util/openoffice.lst.in
index 8c995cb..b526ec2 100644
--- a/instsetoo_native/util/openoffice.lst.in
+++ b/instsetoo_native/util/openoffice.lst.in
@@ -32,7 +32,6 @@ Globals
WINDOWSPATCHLEVEL 8
OOOVENDOR The Document Foundation
OOODOWNLOADNAME 1
- BUILDIDCWS {buildidcws}
STARTCENTER_HIDE_EXTERNAL_LINKS 0
}
}
@@ -58,8 +57,6 @@ LibreOffice
UPDATEURL http://update.libreoffice.org/check.php
ADD_INCLUDE_FILES cliureversion.mk,clioootypesversion.mk
ADDSYSTEMINTEGRATION 1
- FILEFORMATNAME OpenOffice.org
- FILEFORMATVERSION 1.0
WRITERCOMPATIBILITYVERSIONOOO11 OpenOffice.org 1.1
PACKAGEVERSION @LIBO_VERSION_MAJOR at .@LIBO_VERSION_MINOR at .@LIBO_VERSION_MICRO at .@LIBO_VERSION_PATCH@@LIBO_VERSION_SUFFIX@
PACKAGEREVISION {buildid}
@@ -112,8 +109,6 @@ LibreOffice_Dev
UPDATEURL http://update.libreoffice.org/check.php
ADD_INCLUDE_FILES cliureversion.mk,clioootypesversion.mk
ADDSYSTEMINTEGRATION 1
- FILEFORMATNAME OpenOffice.org
- FILEFORMATVERSION 1.0
WRITERCOMPATIBILITYVERSIONOOO11 OpenOffice.org 1.1
PACKAGEVERSION @LIBO_VERSION_MAJOR at .@LIBO_VERSION_MINOR at .@LIBO_VERSION_MICRO at .@LIBO_VERSION_PATCH@@LIBO_VERSION_SUFFIX@
PACKAGEREVISION {buildid}
diff --git a/officecfg/registry/data/org/openoffice/Setup.xcu b/officecfg/registry/data/org/openoffice/Setup.xcu
index 50bdb21..75649f0 100644
--- a/officecfg/registry/data/org/openoffice/Setup.xcu
+++ b/officecfg/registry/data/org/openoffice/Setup.xcu
@@ -38,10 +38,10 @@
<value>${PRODUCTEXTENSION}</value>
</prop>
<prop oor:name="ooXMLFileFormatVersion">
- <value>${FILEFORMATVERSION}</value>
+ <value>1.0</value>
</prop>
<prop oor:name="ooXMLFileFormatName">
- <value>${FILEFORMATNAME}</value>
+ <value>OpenOffice.org</value>
</prop>
<prop oor:name="ooOpenSourceContext">
<value>1</value>
diff --git a/postprocess/CustomTarget_registry.mk b/postprocess/CustomTarget_registry.mk
index ba54796..b353f7a 100644
--- a/postprocess/CustomTarget_registry.mk
+++ b/postprocess/CustomTarget_registry.mk
@@ -550,8 +550,6 @@ postprocess_main_SED := \
-e 's,$${ABOUTBOXPRODUCTVERSION},$(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR).$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)$(LIBO_VERSION_SUFFIX),g' \
-e 's,$${ABOUTBOXPRODUCTVERSIONSUFFIX},$(LIBO_VERSION_SUFFIX_SUFFIX),g' \
-e 's,$${DICT_REPO_URL},http://extensions.libreoffice.org/dictionaries/,g' \
- -e 's,$${FILEFORMATNAME},OpenOffice.org,g' \
- -e 's,$${FILEFORMATVERSION},1.0,g' \
-e 's,$${OOOVENDOR},$(if $(OOO_VENDOR),$(OOO_VENDOR),The Document Foundation),g' \
-e 's,$${PRODUCTNAME},$(PRODUCTNAME),g' \
-e 's,$${PRODUCTVERSION},$(PRODUCTVERSION),g' \
diff --git a/solenv/bin/modules/installer/ziplist.pm b/solenv/bin/modules/installer/ziplist.pm
index 389b79d..dc24d4b 100644
--- a/solenv/bin/modules/installer/ziplist.pm
+++ b/solenv/bin/modules/installer/ziplist.pm
@@ -791,8 +791,6 @@ sub replace_variables_in_ziplist_variables
my $localminor = $installer::globals::lastminor;
if ( $installer::globals::minor ) { $localminor = $installer::globals::minor; }
- my $buildidstringcws = $installer::globals::build . $localminor . "(Build:" . $installer::globals::buildid . ")";
-
for ( my $i = 0; $i <= $#{$blockref}; $i++ )
{
if ($installer::globals::lastminor) { ${$blockref}[$i] =~ s/\{milestone\}/$milestonevariable/; }
@@ -803,7 +801,6 @@ sub replace_variables_in_ziplist_variables
else { ${$blockref}[$i] =~ s/\{buildid\}//; }
if ( $installer::globals::build ) { ${$blockref}[$i] =~ s/\{buildsource\}/$installer::globals::build/; }
else { ${$blockref}[$i] =~ s/\{build\}//; }
- ${$blockref}[$i] =~ s/\{buildidcws\}/$buildidstringcws/;
}
}
diff --git a/sysui/CustomTarget_infoplist.mk b/sysui/CustomTarget_infoplist.mk
index 48e8cc8..f8625c2 100644
--- a/sysui/CustomTarget_infoplist.mk
+++ b/sysui/CustomTarget_infoplist.mk
@@ -9,6 +9,7 @@
info_WORKDIR := $(call gb_CustomTarget_get_workdir,sysui/infoplist)
info_SRCDIR := $(SRCDIR)/sysui/desktop/macosx
+info_BUILDDIR := $(BUILDDIR)/sysui/desktop/macosx
$(eval $(call gb_CustomTarget_CustomTarget,sysui/infoplist))
@@ -24,8 +25,8 @@ $(info_WORKDIR)/PkgInfo:
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
echo "APPLLIBO" > $@
-$(info_WORKDIR)/Info.plist: $(info_SRCDIR)/Info.plist
- sed -e "s|\%EXECUTABLE|soffice|g" $< > $@
+$(info_WORKDIR)/Info.plist: $(info_BUILDDIR)/Info.plist
+ cp $< $@
$(info_WORKDIR)/InfoPlist_%.zip: $(info_WORKDIR)/InfoPlist_%/InfoPlist.strings
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ZIP,1)
diff --git a/sysui/desktop/macosx/Info.plist b/sysui/desktop/macosx/Info.plist.in
similarity index 95%
rename from sysui/desktop/macosx/Info.plist
rename to sysui/desktop/macosx/Info.plist.in
index 5a682dc..6cc1343 100755
--- a/sysui/desktop/macosx/Info.plist
+++ b/sysui/desktop/macosx/Info.plist.in
@@ -29,7 +29,7 @@
<key>UTTypeIdentifier</key>
<string>org.openoffice.text</string>
<key>UTTypeDescription</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Text</string>
+ <string>OpenOffice.org 1.0 Text</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
@@ -77,7 +77,7 @@
<key>UTTypeIdentifier</key>
<string>org.openoffice.spreadsheet</string>
<key>UTTypeDescription</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Spreadsheet</string>
+ <string>OpenOffice.org 1.0 Spreadsheet</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
@@ -125,7 +125,7 @@
<key>UTTypeIdentifier</key>
<string>org.openoffice.presentation</string>
<key>UTTypeDescription</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Presentation</string>
+ <string>OpenOffice.org 1.0 Presentation</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
@@ -175,7 +175,7 @@
<key>UTTypeIdentifier</key>
<string>org.openoffice.graphics</string>
<key>UTTypeDescription</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Drawing</string>
+ <string>OpenOffice.org 1.0 Drawing</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
@@ -223,7 +223,7 @@
<key>UTTypeIdentifier</key>
<string>org.openoffice.text-master</string>
<key>UTTypeDescription</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Master</string>
+ <string>OpenOffice.org 1.0 Master</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
@@ -269,7 +269,7 @@
<key>UTTypeIdentifier</key>
<string>org.openoffice.formula</string>
<key>UTTypeDescription</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Formula</string>
+ <string>OpenOffice.org 1.0 Formula</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
@@ -317,7 +317,7 @@
<key>UTTypeIdentifier</key>
<string>org.openoffice.text-template</string>
<key>UTTypeDescription</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Text Template</string>
+ <string>OpenOffice.org 1.0 Text Template</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
@@ -363,7 +363,7 @@
<key>UTTypeIdentifier</key>
<string>org.openoffice.spreadsheet-template</string>
<key>UTTypeDescription</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Spreadsheet Template</string>
+ <string>OpenOffice.org 1.0 Spreadsheet Template</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
@@ -409,7 +409,7 @@
<key>UTTypeIdentifier</key>
<string>org.openoffice.presentation-template</string>
<key>UTTypeDescription</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Presentation Template</string>
+ <string>OpenOffice.org 1.0 Presentation Template</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
@@ -455,7 +455,7 @@
<key>UTTypeIdentifier</key>
<string>org.openoffice.graphics-template</string>
<key>UTTypeDescription</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Drawing Template</string>
+ <string>OpenOffice.org 1.0 Drawing Template</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
@@ -525,7 +525,7 @@
<key>UTTypeIdentifier</key>
<string>org.openoffice.extension</string>
<key>UTTypeDescription</key>
- <string>${PRODUCTNAME} Extension</string>
+ <string>@PRODUCTNAME@ Extension</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
@@ -865,7 +865,7 @@
<key>CFBundleTypeIconFile</key>
<string>text.icns</string>
<key>CFBundleTypeName</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Text</string>
+ <string>OpenOffice.org 1.0 Text</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
@@ -903,7 +903,7 @@
<key>CFBundleTypeIconFile</key>
<string>spreadsheet.icns</string>
<key>CFBundleTypeName</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Spreadsheet</string>
+ <string>OpenOffice.org 1.0 Spreadsheet</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
@@ -943,7 +943,7 @@
<key>CFBundleTypeIconFile</key>
<string>presentation.icns</string>
<key>CFBundleTypeName</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Presentation</string>
+ <string>OpenOffice.org 1.0 Presentation</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
@@ -981,7 +981,7 @@
<key>CFBundleTypeIconFile</key>
<string>drawing.icns</string>
<key>CFBundleTypeName</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Drawing</string>
+ <string>OpenOffice.org 1.0 Drawing</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
@@ -1017,7 +1017,7 @@
<key>CFBundleTypeIconFile</key>
<string>master-document.icns</string>
<key>CFBundleTypeName</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Master</string>
+ <string>OpenOffice.org 1.0 Master</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
@@ -1055,7 +1055,7 @@
<key>CFBundleTypeIconFile</key>
<string>formula.icns</string>
<key>CFBundleTypeName</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Formula</string>
+ <string>OpenOffice.org 1.0 Formula</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
@@ -1091,7 +1091,7 @@
<key>CFBundleTypeIconFile</key>
<string>text-template.icns</string>
<key>CFBundleTypeName</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Text Template</string>
+ <string>OpenOffice.org 1.0 Text Template</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
@@ -1127,7 +1127,7 @@
<key>CFBundleTypeIconFile</key>
<string>spreadsheet-template.icns</string>
<key>CFBundleTypeName</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Spreadsheet Template</string>
+ <string>OpenOffice.org 1.0 Spreadsheet Template</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
@@ -1163,7 +1163,7 @@
<key>CFBundleTypeIconFile</key>
<string>presentation-template.icns</string>
<key>CFBundleTypeName</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Presentation Template</string>
+ <string>OpenOffice.org 1.0 Presentation Template</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
@@ -1199,7 +1199,7 @@
<key>CFBundleTypeIconFile</key>
<string>drawing-template.icns</string>
<key>CFBundleTypeName</key>
- <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Drawing Template</string>
+ <string>OpenOffice.org 1.0 Drawing Template</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
@@ -1391,7 +1391,7 @@
<key>CFBundleTypeIconFile</key>
<string>extension.icns</string>
<key>CFBundleTypeName</key>
- <string>${PRODUCTNAME} Extension</string>
+ <string>@PRODUCTNAME@ Extension</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSIsAppleDefaultForType</key>
@@ -1399,19 +1399,19 @@
</dict>
</array>
<key>CFBundleExecutable</key>
- <string>%EXECUTABLE</string>
+ <string>soffice</string>
<key>CFBundleGetInfoString</key>
- <string>${PRODUCTNAME} ${ABOUTBOXPRODUCTVERSION} ${BUILDIDCWS}</string>
+ <string>@PRODUCTNAME@ @LIBO_VERSION_MAJOR at .@LIBO_VERSION_MINOR at .@LIBO_VERSION_MICRO at .@LIBO_VERSION_PATCH@@LIBO_VERSION_SUFFIX@</string>
<key>CFBundleIconFile</key>
<string>main.icns</string>
<key>CFBundleShortVersionString</key>
- <string>${ABOUTBOXPRODUCTVERSION}</string>
+ <string>@MACOSX_BUNDLE_SHORTVERSION@</string>
<key>CFBundleIdentifier</key>
- <string>${BUNDLEIDENTIFIER}</string>
+ <string>@MACOSX_BUNDLE_IDENTIFIER@</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
- <string>${PRODUCTNAME}</string>
+ <string>@PRODUCTNAME@</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
More information about the Libreoffice-commits
mailing list