[Libreoffice-commits] .: config_host.mk.in configure.in languagetool/ExternalProject_languagetool.mk languagetool/Makefile languagetool/makefile.mk languagetool/Module_languagetool.mk languagetool/Package_languagetool.mk languagetool/prj languagetool/UnpackedTarball_languagetool.mk Makefile.top RepositoryModule_ooo.mk

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Oct 3 09:06:49 PDT 2012


 Makefile.top                                 |    2 
 RepositoryModule_ooo.mk                      |    1 
 config_host.mk.in                            |    1 
 configure.in                                 |    2 
 languagetool/ExternalProject_languagetool.mk |   33 +++++++++++++
 languagetool/Makefile                        |    7 ++
 languagetool/Module_languagetool.mk          |   22 +++++++++
 languagetool/Package_languagetool.mk         |   16 ++++++
 languagetool/UnpackedTarball_languagetool.mk |   19 ++++++++
 languagetool/makefile.mk                     |   64 ---------------------------
 languagetool/prj/build.lst                   |    3 -
 languagetool/prj/d.lst                       |    1 
 12 files changed, 103 insertions(+), 68 deletions(-)

New commits:
commit a51b09f105dd69837654cf2afa93124d5ecd25ff
Author: David Ostrovsky <david at ostrovsky.org>
Date:   Wed Oct 3 00:21:51 2012 +0200

    gbuildification of languagetool
    
    It is not clear how to remove a file:
    REMOVE_FILES=openoffice/images/dialogh.png.
    Let it for now in place.
    
    Change-Id: Ie8739fd207ca7dc9343c92c93cf092b3af674bf0
    Reviewed-on: https://gerrit.libreoffice.org/753
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/Makefile.top b/Makefile.top
index 8e1833f..3e6f2c4 100644
--- a/Makefile.top
+++ b/Makefile.top
@@ -93,6 +93,7 @@ jurt\
 jvmaccess\
 jvmfwk\
 l10ntools\
+languagetool\
 libcdr\
 libcmis\
 libmspub\
@@ -221,7 +222,6 @@ icu\
 instsetoo_native\
 jfreereport\
 jpeg\
-languagetool\
 libcroco\
 libexttextcat\
 libgsf\
diff --git a/RepositoryModule_ooo.mk b/RepositoryModule_ooo.mk
index a8153e1..8be0d6e 100644
--- a/RepositoryModule_ooo.mk
+++ b/RepositoryModule_ooo.mk
@@ -90,6 +90,7 @@ $(eval $(call gb_Module_add_moduledirs,ooo,\
     jvmaccess \
     jvmfwk \
 	$(call gb_Helper_optional,DESKTOP,l10ntools) \
+	$(call gb_Helper_optional,LANGUAGETOOL,languagetool) \
 	libcdr \
 	libcmis \
 	libmspub \
diff --git a/config_host.mk.in b/config_host.mk.in
index 9052d70..48710b1 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -291,6 +291,7 @@ export KDE_GLIB_CFLAGS=@KDE_GLIB_CFLAGS@
 export KDE_GLIB_LIBS=@KDE_GLIB_LIBS@
 export KDE_HAVE_GLIB=@KDE_HAVE_GLIB@
 export KDE_LIBS=@KDE_LIBS@
+export LANGUAGETOOL_TARBALL=@LANGUAGETOOL_TARBALL@
 export L10N_MODULE=@L10N_MODULE@
 export LCMS2_CFLAGS=@LCMS2_CFLAGS@
 export LCMS2_LIBS=@LCMS2_LIBS@
diff --git a/configure.in b/configure.in
index f8ccb94..3b54b1a 100644
--- a/configure.in
+++ b/configure.in
@@ -10898,10 +10898,12 @@ AC_MSG_CHECKING([for LanguageTool extension integration])
 if test "x$enable_ext_languagetool" = "xyes" -a "x$enable_extension_integration" != "xno" -a "x$with_java" != "xno"; then
     BUILD_TYPE="$BUILD_TYPE LANGUAGETOOL"
     SCPDEFS="$SCPDEFS -DWITH_EXTENSION_LANGUAGETOOL"
+    LANGUAGETOOL_TARBALL="b63e6340a02ff1cacfeadb2c42286161-JLanguageTool-1.7.0.tar.bz2"
     AC_MSG_RESULT([yes])
 else
     AC_MSG_RESULT([no])
 fi
+AC_SUBST(LANGUAGETOOL_TARBALL)
 
 dnl ===================================================================
 dnl Test whether to include oooblogger extension
diff --git a/languagetool/ExternalProject_languagetool.mk b/languagetool/ExternalProject_languagetool.mk
new file mode 100644
index 0000000..60b70e6
--- /dev/null
+++ b/languagetool/ExternalProject_languagetool.mk
@@ -0,0 +1,33 @@
+# -*- 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_ExternalProject_ExternalProject,languagetool))
+
+$(eval $(call gb_ExternalProject_use_unpacked,languagetool,languagetool))
+
+$(eval $(call gb_ExternalProject_register_targets,languagetool,\
+	build \
+))
+
+$(call gb_ExternalProject_get_state_target,languagetool,build) :
+	cd "$(call gb_UnpackedTarball_get_dir,languagetool)" && \
+	"$(ANT)" \
+		-q \
+		-f build.xml \
+		-Dbuild.label="build-libreoffice" \
+		$(if $(filter yes,$(JAVACISGCJ))\
+			,-Dbuild.compiler=gcj \
+			,-Dant.build.javac.source=$(JAVA_SOURCE_VER) \
+			-Dant.build.javac.target=$(JAVA_TARGET_VER) \
+		) \
+		$(if $(debug),-Dbuild.debug="on") \
+		-Dsolver.ooo.dir="$(OUTDIR_FOR_BUILD)/bin" dist && \
+	touch $@
+
+# vim: set noet sw=4 ts=4:
diff --git a/languagetool/Makefile b/languagetool/Makefile
new file mode 100644
index 0000000..ccb1c85
--- /dev/null
+++ b/languagetool/Makefile
@@ -0,0 +1,7 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+
+module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
+
+include $(module_directory)/../solenv/gbuild/partial_build.mk
+
+# vim: set noet sw=4 ts=4:
diff --git a/languagetool/Module_languagetool.mk b/languagetool/Module_languagetool.mk
new file mode 100644
index 0000000..f869d49
--- /dev/null
+++ b/languagetool/Module_languagetool.mk
@@ -0,0 +1,22 @@
+# -*- 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_Module_Module,languagetool))
+
+ifneq ($(SOLAR_JAVA),)
+ifneq ($(filter LANGUAGETOOL,$(BUILD_TYPE)),)
+$(eval $(call gb_Module_add_targets,languagetool,\
+	ExternalProject_languagetool \
+	Package_languagetool \
+	UnpackedTarball_languagetool \
+))
+endif
+endif
+
+# vim: set noet sw=4 ts=4:
diff --git a/languagetool/Package_languagetool.mk b/languagetool/Package_languagetool.mk
new file mode 100644
index 0000000..1738c86
--- /dev/null
+++ b/languagetool/Package_languagetool.mk
@@ -0,0 +1,16 @@
+# -*- 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_Package_Package,languagetool,$(call gb_UnpackedTarball_get_dir,languagetool)))
+
+$(eval $(call gb_Package_use_external_project,languagetool,languagetool))
+
+$(eval $(call gb_Package_add_file,languagetool,bin/LanguageTool.oxt,dist/LanguageTool.oxt))
+
+# vim: set noet sw=4 ts=4:
diff --git a/languagetool/UnpackedTarball_languagetool.mk b/languagetool/UnpackedTarball_languagetool.mk
new file mode 100644
index 0000000..6df1d17
--- /dev/null
+++ b/languagetool/UnpackedTarball_languagetool.mk
@@ -0,0 +1,19 @@
+# -*- 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_UnpackedTarball_UnpackedTarball,languagetool))
+
+$(eval $(call gb_UnpackedTarball_set_tarball,languagetool,$(LANGUAGETOOL_TARBALL)))
+
+$(eval $(call gb_UnpackedTarball_add_patches,languagetool,\
+    languagetool/JLanguageTool-1.7.0.patch \
+    languagetool/JLanguageTool-1.4.0-no-hc.patch \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/languagetool/makefile.mk b/languagetool/makefile.mk
deleted file mode 100644
index 6f7daa5..0000000
--- a/languagetool/makefile.mk
+++ /dev/null
@@ -1,64 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2008 by Sun Microsystems, Inc.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org.  If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-PRJ=.
-
-PRJNAME=languagetool
-TARGET=languagetool
-
-.IF "$(SOLAR_JAVA)"!=""
-# --- Settings -----------------------------------------------------
-
-.INCLUDE :	settings.mk
-.INCLUDE :  antsettings.mk
-
-# --- Files --------------------------------------------------------
-
-TARFILE_NAME=JLanguageTool-1.7.0
-TARFILE_MD5=b63e6340a02ff1cacfeadb2c42286161
-TARFILE_ROOTDIR=JLanguageTool-1.7.0
-PATCH_FILES=JLanguageTool-1.7.0.patch JLanguageTool-1.4.0-no-hc.patch
-REMOVE_FILES=openoffice/images/dialogh.png
-
-.IF "$(JAVACISGCJ)"=="yes"
-JAVA_HOME=
-.EXPORT : JAVA_HOME
-BUILD_ACTION="$(ANT)" -v -Dsolver.ooo.dir=$(SOLARVER)$/$(INPATH)$/bin -Dbuild.compiler=gcj dist
-.ELSE
-BUILD_ACTION="$(ANT)" -v -Dsolver.ooo.dir=$(SOLARVER)$/$(INPATH)$/bin -Dant.build.javac.target=$(JAVA_TARGET_VER) dist
-.ENDIF
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE : set_ext.mk
-.INCLUDE : target.mk
-.INCLUDE : tg_ext.mk
-
-.ELSE
-all:
-        @echo java disabled
-.ENDIF
diff --git a/languagetool/prj/build.lst b/languagetool/prj/build.lst
index 98e25c3..cfc4052 100644
--- a/languagetool/prj/build.lst
+++ b/languagetool/prj/build.lst
@@ -1,3 +1,2 @@
 lt	languagetool	:	javaunohelper jurt ridljar unoil NULL
-lt	languagetool		usr1	-	all	lt_mkout NULL
-lt	languagatool		nmake	-	all	lt_languagetool NULL
+lt	languagatool\prj	nmake	-	all	lt_languagetool NULL
diff --git a/languagetool/prj/d.lst b/languagetool/prj/d.lst
index cdbabc3..e69de29 100644
--- a/languagetool/prj/d.lst
+++ b/languagetool/prj/d.lst
@@ -1 +0,0 @@
-..\%__SRC%\misc\build\JLanguageTool*\dist\LanguageTool.oxt %_DEST%\bin\
diff --git a/languagetool/prj/dmake b/languagetool/prj/dmake
deleted file mode 100644
index e69de29..0000000


More information about the Libreoffice-commits mailing list