diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:51:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:51:28 +0000 |
commit | 940b4d1848e8c70ab7642901a68594e8016caffc (patch) | |
tree | eb72f344ee6c3d9b80a7ecc079ea79e9fba8676d /external/libexttextcat | |
parent | Initial commit. (diff) | |
download | libreoffice-940b4d1848e8c70ab7642901a68594e8016caffc.tar.xz libreoffice-940b4d1848e8c70ab7642901a68594e8016caffc.zip |
Adding upstream version 1:7.0.4.upstream/1%7.0.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'external/libexttextcat')
-rw-r--r-- | external/libexttextcat/ExternalPackage_fingerprint.mk | 179 | ||||
-rw-r--r-- | external/libexttextcat/ExternalProject_libexttextcat.mk | 30 | ||||
-rw-r--r-- | external/libexttextcat/Makefile | 7 | ||||
-rw-r--r-- | external/libexttextcat/Module_libexttextcat.mk | 26 | ||||
-rw-r--r-- | external/libexttextcat/README | 6 | ||||
-rw-r--r-- | external/libexttextcat/StaticLibrary_libexttextcat.mk | 25 | ||||
-rw-r--r-- | external/libexttextcat/UnpackedTarball_libexttextcat.mk | 16 |
7 files changed, 289 insertions, 0 deletions
diff --git a/external/libexttextcat/ExternalPackage_fingerprint.mk b/external/libexttextcat/ExternalPackage_fingerprint.mk new file mode 100644 index 000000000..016446a2a --- /dev/null +++ b/external/libexttextcat/ExternalPackage_fingerprint.mk @@ -0,0 +1,179 @@ +# -*- 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_ExternalPackage_ExternalPackage,libexttextcat_fingerprint,libexttextcat)) + +$(eval $(call gb_ExternalPackage_add_unpacked_files,libexttextcat_fingerprint,$(LIBO_SHARE_FOLDER)/fingerprint,\ + langclass/fpdb.conf \ + langclass/LM/ab.lm \ + langclass/LM/ace.lm \ + langclass/LM/ada.lm \ + langclass/LM/af.lm \ + langclass/LM/ak.lm \ + langclass/LM/alt.lm \ + langclass/LM/am.lm \ + langclass/LM/ar.lm \ + langclass/LM/arn.lm \ + langclass/LM/ast.lm \ + langclass/LM/ay.lm \ + langclass/LM/az-Cyrl.lm \ + langclass/LM/az.lm \ + langclass/LM/ban.lm \ + langclass/LM/be.lm \ + langclass/LM/bem.lm \ + langclass/LM/bg.lm \ + langclass/LM/bho.lm \ + langclass/LM/bi.lm \ + langclass/LM/bik.lm \ + langclass/LM/bm.lm \ + langclass/LM/bn.lm \ + langclass/LM/bo.lm \ + langclass/LM/br.lm \ + langclass/LM/bs.lm \ + langclass/LM/ca.lm \ + langclass/LM/ckb.lm \ + langclass/LM/cs.lm \ + langclass/LM/cy.lm \ + langclass/LM/da.lm \ + langclass/LM/de.lm \ + langclass/LM/dv.lm \ + langclass/LM/ee.lm \ + langclass/LM/el.lm \ + langclass/LM/emk-Latn.lm \ + langclass/LM/en.lm \ + langclass/LM/eo.lm \ + langclass/LM/es.lm \ + langclass/LM/et.lm \ + langclass/LM/eu.lm \ + langclass/LM/fa.lm \ + langclass/LM/fi.lm \ + langclass/LM/fj.lm \ + langclass/LM/fo.lm \ + langclass/LM/fr.lm \ + langclass/LM/fur.lm \ + langclass/LM/fy.lm \ + langclass/LM/ga.lm \ + langclass/LM/gd.lm \ + langclass/LM/gl.lm \ + langclass/LM/grc.lm \ + langclass/LM/gu.lm \ + langclass/LM/gug.lm \ + langclass/LM/gv.lm \ + langclass/LM/ha-NG.lm \ + langclass/LM/haw.lm \ + langclass/LM/he.lm \ + langclass/LM/hi.lm \ + langclass/LM/hil.lm \ + langclass/LM/hr.lm \ + langclass/LM/hsb.lm \ + langclass/LM/ht.lm \ + langclass/LM/hu.lm \ + langclass/LM/hy.lm \ + langclass/LM/ia.lm \ + langclass/LM/id.lm \ + langclass/LM/is.lm \ + langclass/LM/it.lm \ + langclass/LM/ja.lm \ + langclass/LM/ka.lm \ + langclass/LM/kk.lm \ + langclass/LM/kl.lm \ + langclass/LM/km.lm \ + langclass/LM/kn.lm \ + langclass/LM/kng.lm \ + langclass/LM/ko.lm \ + langclass/LM/ktu.lm \ + langclass/LM/ky.lm \ + langclass/LM/la.lm \ + langclass/LM/lb.lm \ + langclass/LM/lg.lm \ + langclass/LM/ln.lm \ + langclass/LM/lo.lm \ + langclass/LM/lt.lm \ + langclass/LM/lv.lm \ + langclass/LM/mai.lm \ + langclass/LM/mi.lm \ + langclass/LM/mk.lm \ + langclass/LM/ml.lm \ + langclass/LM/mn.lm \ + langclass/LM/mos.lm \ + langclass/LM/mr.lm \ + langclass/LM/ms.lm \ + langclass/LM/mt.lm \ + langclass/LM/my.lm \ + langclass/LM/nb.lm \ + langclass/LM/nds.lm \ + langclass/LM/ne.lm \ + langclass/LM/nl.lm \ + langclass/LM/nn.lm \ + langclass/LM/nr.lm \ + langclass/LM/nso.lm \ + langclass/LM/ny.lm \ + langclass/LM/oc.lm \ + langclass/LM/om.lm \ + langclass/LM/pa.lm \ + langclass/LM/pl.lm \ + langclass/LM/plt.lm \ + langclass/LM/pt.lm \ + langclass/LM/quz.lm \ + langclass/LM/qxa.lm \ + langclass/LM/rm.lm \ + langclass/LM/ro.lm \ + langclass/LM/ru.lm \ + langclass/LM/rue.lm \ + langclass/LM/rw.lm \ + langclass/LM/sa.lm \ + langclass/LM/sc.lm \ + langclass/LM/sco.lm \ + langclass/LM/sd.lm \ + langclass/LM/se.lm \ + langclass/LM/sg.lm \ + langclass/LM/shs.lm \ + langclass/LM/si.lm \ + langclass/LM/sk.lm \ + langclass/LM/sl.lm \ + langclass/LM/so.lm \ + langclass/LM/sq.lm \ + langclass/LM/sr-Cyrl.lm \ + langclass/LM/sr-Latn.lm \ + langclass/LM/ss.lm \ + langclass/LM/st.lm \ + langclass/LM/sv.lm \ + langclass/LM/sw.lm \ + langclass/LM/ta.lm \ + langclass/LM/tet.lm \ + langclass/LM/tg.lm \ + langclass/LM/th.lm \ + langclass/LM/ti.lm \ + langclass/LM/tk.lm \ + langclass/LM/tl.lm \ + langclass/LM/tn.lm \ + langclass/LM/tpi.lm \ + langclass/LM/tr.lm \ + langclass/LM/ts.lm \ + langclass/LM/tt.lm \ + langclass/LM/ty.lm \ + langclass/LM/tzm-Latn.lm \ + langclass/LM/ug.lm \ + langclass/LM/uk.lm \ + langclass/LM/ur.lm \ + langclass/LM/uz-Cyrl.lm \ + langclass/LM/uz.lm \ + langclass/LM/ve.lm \ + langclass/LM/vep.lm \ + langclass/LM/vi.lm \ + langclass/LM/wa.lm \ + langclass/LM/xh.lm \ + langclass/LM/yi.lm \ + langclass/LM/yo.lm \ + langclass/LM/zh-Hans.lm \ + langclass/LM/zh-Hant.lm \ + langclass/LM/zu.lm \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/libexttextcat/ExternalProject_libexttextcat.mk b/external/libexttextcat/ExternalProject_libexttextcat.mk new file mode 100644 index 000000000..1d729a103 --- /dev/null +++ b/external/libexttextcat/ExternalProject_libexttextcat.mk @@ -0,0 +1,30 @@ +# -*- 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,libexttextcat)) + +$(eval $(call gb_ExternalProject_register_targets,libexttextcat,\ + build \ +)) + +$(call gb_ExternalProject_get_state_target,libexttextcat,build): + $(call gb_Trace_StartRange,libexttextcat,EXTERNAL) + $(call gb_ExternalProject_run,build,\ + ./configure --disable-shared --with-pic \ + $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \ + $(if $(ENABLE_WERROR),--enable-werror,--disable-werror) \ + $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ + CFLAGS="$(CFLAGS) $(gb_VISIBILITY_FLAGS) $(gb_DEBUGINFO_FLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \ + $(if $(COM_IS_CLANG),-Qunused-arguments) \ + $(if $(filter AIX,$(OS)),-D_LINUX_SOURCE_COMPAT)" \ + && $(MAKE) \ + ) + $(call gb_Trace_EndRange,libexttextcat,EXTERNAL) + +# vim: set noet sw=4 ts=4: diff --git a/external/libexttextcat/Makefile b/external/libexttextcat/Makefile new file mode 100644 index 000000000..e4968cf85 --- /dev/null +++ b/external/libexttextcat/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/external/libexttextcat/Module_libexttextcat.mk b/external/libexttextcat/Module_libexttextcat.mk new file mode 100644 index 000000000..00f73f619 --- /dev/null +++ b/external/libexttextcat/Module_libexttextcat.mk @@ -0,0 +1,26 @@ +# -*- 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,libexttextcat)) + +$(eval $(call gb_Module_add_targets,libexttextcat,\ + ExternalPackage_fingerprint \ + UnpackedTarball_libexttextcat \ +)) +ifeq ($(COM),MSC) +$(eval $(call gb_Module_add_targets,libexttextcat,\ + StaticLibrary_libexttextcat \ +)) +else +$(eval $(call gb_Module_add_targets,libexttextcat,\ + ExternalProject_libexttextcat \ +)) +endif + +# vim: set noet sw=4 ts=4: diff --git a/external/libexttextcat/README b/external/libexttextcat/README new file mode 100644 index 000000000..6204e987e --- /dev/null +++ b/external/libexttextcat/README @@ -0,0 +1,6 @@ +N-Gram-Based Text Categorization library + +This guesses the language that input text is written in. Fundamentally +an adaptation of wiseguys libtextcat extended to be UTF-8 aware. + +It is hosted at: [https://wiki.documentfoundation.org/Libexttextcat] diff --git a/external/libexttextcat/StaticLibrary_libexttextcat.mk b/external/libexttextcat/StaticLibrary_libexttextcat.mk new file mode 100644 index 000000000..1e70f8501 --- /dev/null +++ b/external/libexttextcat/StaticLibrary_libexttextcat.mk @@ -0,0 +1,25 @@ +# -*- 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_StaticLibrary_StaticLibrary,libexttextcat)) + +$(eval $(call gb_StaticLibrary_use_unpacked,libexttextcat,libexttextcat)) + +$(eval $(call gb_StaticLibrary_set_warnings_disabled,libexttextcat)) + +$(eval $(call gb_StaticLibrary_add_generated_cobjects,libexttextcat,\ + UnpackedTarball/libexttextcat/src/common \ + UnpackedTarball/libexttextcat/src/fingerprint \ + UnpackedTarball/libexttextcat/src/textcat \ + UnpackedTarball/libexttextcat/src/wg_mempool \ + UnpackedTarball/libexttextcat/src/utf8misc \ +)) + + +# vim: set noet sw=4 ts=4: diff --git a/external/libexttextcat/UnpackedTarball_libexttextcat.mk b/external/libexttextcat/UnpackedTarball_libexttextcat.mk new file mode 100644 index 000000000..9262d425b --- /dev/null +++ b/external/libexttextcat/UnpackedTarball_libexttextcat.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_UnpackedTarball_UnpackedTarball,libexttextcat)) + +$(eval $(call gb_UnpackedTarball_set_tarball,libexttextcat,$(LIBEXTTEXTCAT_TARBALL))) + +$(eval $(call gb_UnpackedTarball_update_autoconf_configs,libexttextcat)) + +# vim: set noet sw=4 ts=4: |