[Libreoffice-commits] core.git: scp2/InstallModule_base.mk scp2/InstallModule_firebird.mk scp2/InstallScript_setup_osl.mk scp2/Module_scp2.mk scp2/source setup_native/source

Andrzej Hunt andrzej.hunt at collabora.com
Mon Apr 7 11:34:14 PDT 2014


 scp2/InstallModule_base.mk                       |    3 +
 scp2/InstallModule_firebird.mk                   |   23 ------------
 scp2/InstallScript_setup_osl.mk                  |    3 -
 scp2/Module_scp2.mk                              |    3 -
 scp2/source/base/firebird.scp                    |   41 +++++++++++++++++++++++
 scp2/source/firebird/file_firebird.scp           |   30 ----------------
 scp2/source/firebird/module_firebird.scp         |   34 -------------------
 setup_native/source/packinfo/packinfo_office.txt |    2 -
 8 files changed, 45 insertions(+), 94 deletions(-)

New commits:
commit f01792dda15fe4509a2925929f4d58daef9d15c0
Author: Andrzej Hunt <andrzej.hunt at collabora.com>
Date:   Wed Mar 19 07:45:36 2014 +0000

    scp2: move firebird into base.
    
    Change-Id: I35f9b2dcb821bda0ea97de12a8ae8d27915f6b3e

diff --git a/scp2/InstallModule_base.mk b/scp2/InstallModule_base.mk
index 9449d80..ca85bf5 100644
--- a/scp2/InstallModule_base.mk
+++ b/scp2/InstallModule_base.mk
@@ -14,6 +14,8 @@ $(eval $(call gb_InstallModule_use_auto_install_libs,scp2/base,base))
 $(eval $(call gb_InstallModule_define_if_set,scp2/base,\
 	ENABLE_MACOSX_MACLIKE_APP_STRUCTURE \
 	ENABLE_MACOSX_SANDBOX \
+	ENABLE_FIREBIRD_SDBC \
+	SYSTEM_FIREBIRD \
 ))
 
 $(eval $(call gb_InstallModule_add_templates,scp2/base,\
@@ -22,6 +24,7 @@ $(eval $(call gb_InstallModule_add_templates,scp2/base,\
 
 $(eval $(call gb_InstallModule_add_scpfiles,scp2/base,\
     scp2/source/base/file_base \
+    scp2/source/base/firebird \
 ))
 
 $(eval $(call gb_InstallModule_add_localized_scpfiles,scp2/base,\
diff --git a/scp2/InstallModule_firebird.mk b/scp2/InstallModule_firebird.mk
deleted file mode 100644
index e27503a..0000000
--- a/scp2/InstallModule_firebird.mk
+++ /dev/null
@@ -1,23 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-$(eval $(call gb_InstallModule_InstallModule,scp2/firebird))
-
-$(eval $(call gb_InstallModule_add_scpfiles,scp2/firebird,\
-    scp2/source/firebird/file_firebird \
-    scp2/source/firebird/module_firebird \
-))
-
-$(eval $(call gb_InstallModule_define_if_set,scp2/firebird,\
-	ENABLE_MACOSX_MACLIKE_APP_STRUCTURE \
-	ENABLE_MACOSX_SANDBOX \
-	SYSTEM_FIREBIRD \
-))
-
-# vim: set shiftwidth=4 tabstop=4 noexpandtab:
diff --git a/scp2/InstallScript_setup_osl.mk b/scp2/InstallScript_setup_osl.mk
index fe8a54a..baa8726 100644
--- a/scp2/InstallScript_setup_osl.mk
+++ b/scp2/InstallScript_setup_osl.mk
@@ -18,9 +18,6 @@ $(eval $(call gb_InstallScript_use_modules,setup_osl,\
 	scp2/impress \
 	scp2/math \
 	scp2/ooo \
-	$(if $(filter TRUE,$(ENABLE_FIREBIRD_SDBC)),\
-		scp2/firebird \
-	) \
 	scp2/python \
 	scp2/ure \
 	scp2/writer \
diff --git a/scp2/Module_scp2.mk b/scp2/Module_scp2.mk
index 41711fc..be02cd8 100644
--- a/scp2/Module_scp2.mk
+++ b/scp2/Module_scp2.mk
@@ -17,9 +17,6 @@ $(eval $(call gb_Module_add_targets,scp2,\
 	InstallModule_calc \
 	InstallModule_draw \
 	InstallModule_extensions \
-	$(if $(filter TRUE,$(ENABLE_FIREBIRD_SDBC)),\
-		InstallModule_firebird \
-	) \
 	InstallModule_graphicfilter \
 	InstallModule_impress \
 	InstallModule_math \
diff --git a/scp2/source/firebird/module_firebird.scp b/scp2/source/base/firebird.scp
similarity index 78%
rename from scp2/source/firebird/module_firebird.scp
rename to scp2/source/base/firebird.scp
index 8e6c7d7..dd7288f 100644
--- a/scp2/source/firebird/module_firebird.scp
+++ b/scp2/source/base/firebird.scp
@@ -18,11 +18,11 @@
 
 #include "macros.inc"
 
-#ifndef SYSTEM_FIREBIRD
+#if defined( ENABLE_FIREBIRD_SDBC ) && !defined( SYSTEM_FIREBIRD )
 
-Module gid_Module_Firebird
+Module gid_Module_Optional_Firebird
     Name = "Firebird";
-    Description = "Firebird";
+    Description = "Firebird embedded database";
     PackageInfo = "packinfo_office.txt";
     ParentID = gid_Module_Root_Brand;
     Files = (
@@ -31,4 +31,11 @@ Module gid_Module_Firebird
     Styles = (HIDDEN_ROOT);
 End
 
+File gid_File_Firebird
+    TXT_FILE_BODY;
+    Styles = (FILELIST, PACKED);
+    Dir = FILELIST_DIR;
+    Name = "firebird.filelist";
+End
+
 #endif
diff --git a/scp2/source/firebird/file_firebird.scp b/scp2/source/firebird/file_firebird.scp
deleted file mode 100644
index cbdd232..0000000
--- a/scp2/source/firebird/file_firebird.scp
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "macros.inc"
-
-#ifndef SYSTEM_FIREBIRD
-
-File gid_File_Firebird
-    TXT_FILE_BODY;
-    Styles = (FILELIST, PACKED);
-    Dir = FILELIST_DIR;
-    Name = "firebird.filelist";
-End
-
-#endif
diff --git a/setup_native/source/packinfo/packinfo_office.txt b/setup_native/source/packinfo/packinfo_office.txt
index 005eaa4..2980c2b 100644
--- a/setup_native/source/packinfo/packinfo_office.txt
+++ b/setup_native/source/packinfo/packinfo_office.txt
@@ -192,7 +192,7 @@ packageversion = "%PACKAGEVERSION"
 End
 
 Start
-module = "gid_Module_Firebird"
+module = "gid_Module_Optional_Firebird"
 solarispackagename = "%BASISPACKAGEPREFIX%WITHOUTDOTPRODUCTVERSION-Firebird"
 solarisrequires = "%BASISPACKAGEPREFIX%WITHOUTDOTPRODUCTVERSION-core01"
 packagename = "%BASISPACKAGEPREFIX%PRODUCTVERSION-firebird"


More information about the Libreoffice-commits mailing list