From ab814a0d019d527e4d21164ddcc6a2163445aa44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 15 Mar 2023 14:41:00 +0700 Subject: [PATCH] libreoffice: update to 7.5.1.2. --- srcpkgs/libreoffice-i18n-ab | 1 + srcpkgs/libreoffice-i18n-an | 1 + srcpkgs/libreoffice-i18n-az | 1 + srcpkgs/libreoffice-i18n-ckb | 1 + srcpkgs/libreoffice-i18n-dsb | 1 + srcpkgs/libreoffice-i18n-fur | 1 + srcpkgs/libreoffice-i18n-fy | 1 + srcpkgs/libreoffice-i18n-hsb | 1 + srcpkgs/libreoffice-i18n-jv | 1 + srcpkgs/libreoffice-i18n-kab | 1 + srcpkgs/libreoffice-i18n-kl | 1 + srcpkgs/libreoffice-i18n-ky | 1 + srcpkgs/libreoffice-i18n-sah | 1 + srcpkgs/libreoffice-i18n-szl | 1 + srcpkgs/libreoffice-i18n-ti | 1 + srcpkgs/libreoffice-i18n-ur | 1 + srcpkgs/libreoffice-i18n-vec | 1 + .../libreoffice/files/skia-no-execinfo.patch | 25 +++ srcpkgs/libreoffice/patches/boost-1.81.patch | 18 -- .../patches/libjvm-path-musl.patch | 15 ++ srcpkgs/libreoffice/patches/musl-java.patch | 12 +- .../patches/musl-no-execinfo.patch | 10 ++ .../libreoffice/patches/no-slowcheck.patch | 11 ++ srcpkgs/libreoffice/template | 160 +++++++++--------- 24 files changed, 159 insertions(+), 109 deletions(-) create mode 120000 srcpkgs/libreoffice-i18n-ab create mode 120000 srcpkgs/libreoffice-i18n-an create mode 120000 srcpkgs/libreoffice-i18n-az create mode 120000 srcpkgs/libreoffice-i18n-ckb create mode 120000 srcpkgs/libreoffice-i18n-dsb create mode 120000 srcpkgs/libreoffice-i18n-fur create mode 120000 srcpkgs/libreoffice-i18n-fy create mode 120000 srcpkgs/libreoffice-i18n-hsb create mode 120000 srcpkgs/libreoffice-i18n-jv create mode 120000 srcpkgs/libreoffice-i18n-kab create mode 120000 srcpkgs/libreoffice-i18n-kl create mode 120000 srcpkgs/libreoffice-i18n-ky create mode 120000 srcpkgs/libreoffice-i18n-sah create mode 120000 srcpkgs/libreoffice-i18n-szl create mode 120000 srcpkgs/libreoffice-i18n-ti create mode 120000 srcpkgs/libreoffice-i18n-ur create mode 120000 srcpkgs/libreoffice-i18n-vec create mode 100644 srcpkgs/libreoffice/files/skia-no-execinfo.patch delete mode 100644 srcpkgs/libreoffice/patches/boost-1.81.patch create mode 100644 srcpkgs/libreoffice/patches/libjvm-path-musl.patch create mode 100644 srcpkgs/libreoffice/patches/musl-no-execinfo.patch create mode 100644 srcpkgs/libreoffice/patches/no-slowcheck.patch diff --git a/srcpkgs/libreoffice-i18n-ab b/srcpkgs/libreoffice-i18n-ab new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-ab @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-an b/srcpkgs/libreoffice-i18n-an new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-an @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-az b/srcpkgs/libreoffice-i18n-az new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-az @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-ckb b/srcpkgs/libreoffice-i18n-ckb new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-ckb @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-dsb b/srcpkgs/libreoffice-i18n-dsb new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-dsb @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-fur b/srcpkgs/libreoffice-i18n-fur new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-fur @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-fy b/srcpkgs/libreoffice-i18n-fy new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-fy @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-hsb b/srcpkgs/libreoffice-i18n-hsb new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-hsb @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-jv b/srcpkgs/libreoffice-i18n-jv new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-jv @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-kab b/srcpkgs/libreoffice-i18n-kab new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-kab @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-kl b/srcpkgs/libreoffice-i18n-kl new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-kl @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-ky b/srcpkgs/libreoffice-i18n-ky new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-ky @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-sah b/srcpkgs/libreoffice-i18n-sah new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-sah @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-szl b/srcpkgs/libreoffice-i18n-szl new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-szl @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-ti b/srcpkgs/libreoffice-i18n-ti new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-ti @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-ur b/srcpkgs/libreoffice-i18n-ur new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-ur @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice-i18n-vec b/srcpkgs/libreoffice-i18n-vec new file mode 120000 index 00000000000..d5e3a56f350 --- /dev/null +++ b/srcpkgs/libreoffice-i18n-vec @@ -0,0 +1 @@ +libreoffice \ No newline at end of file diff --git a/srcpkgs/libreoffice/files/skia-no-execinfo.patch b/srcpkgs/libreoffice/files/skia-no-execinfo.patch new file mode 100644 index 00000000000..4495e8ab060 --- /dev/null +++ b/srcpkgs/libreoffice/files/skia-no-execinfo.patch @@ -0,0 +1,25 @@ +--- a/tools/gpu/vk/VkTestUtils.cpp ++++ b/tools/gpu/vk/VkTestUtils.cpp +@@ -26,7 +26,9 @@ + #include + + #if defined(SK_BUILD_FOR_UNIX) +-#include ++ #if !defined(__linux__) || defined(__GLIBC__) ++ #include ++ #endif + #endif + #include "include/gpu/vk/GrVkBackendContext.h" + #include "include/gpu/vk/GrVkExtensions.h" +@@ -104,9 +106,11 @@ static int should_include_debug_layer(co + + static void print_backtrace() { + #if defined(SK_BUILD_FOR_UNIX) ++ #if !defined(__linux__) || defined(__GLIBC__) + void* stack[64]; + int count = backtrace(stack, SK_ARRAY_COUNT(stack)); + backtrace_symbols_fd(stack, count, 2); ++ #endif + #else + // Please add implementations for other platforms. + #endif diff --git a/srcpkgs/libreoffice/patches/boost-1.81.patch b/srcpkgs/libreoffice/patches/boost-1.81.patch deleted file mode 100644 index 83b44b62c49..00000000000 --- a/srcpkgs/libreoffice/patches/boost-1.81.patch +++ /dev/null @@ -1,18 +0,0 @@ -Index: libreoffice-7.4.2.3/unotools/source/i18n/resmgr.cxx -=================================================================== ---- libreoffice-7.4.2.3.orig/unotools/source/i18n/resmgr.cxx -+++ libreoffice-7.4.2.3/unotools/source/i18n/resmgr.cxx -@@ -127,8 +127,13 @@ namespace Translate - if (aFind != aCache.end()) - return aFind->second; - boost::locale::generator gen; -+#if BOOST_VERSION < 108100 - gen.characters(boost::locale::char_facet); - gen.categories(boost::locale::message_facet | boost::locale::information_facet); -+#else -+ gen.characters(boost::locale::char_facet_t::char_f); -+ gen.categories(boost::locale::category_t::message | boost::locale::category_t::information); -+#endif - #if defined(ANDROID) - OString sPath(OString(lo_get_app_data_dir()) + "/program/resource"); - #else diff --git a/srcpkgs/libreoffice/patches/libjvm-path-musl.patch b/srcpkgs/libreoffice/patches/libjvm-path-musl.patch new file mode 100644 index 00000000000..cab380500ac --- /dev/null +++ b/srcpkgs/libreoffice/patches/libjvm-path-musl.patch @@ -0,0 +1,15 @@ +--- a/jvmfwk/plugins/sunmajor/pluginlib/sunjre.cxx ++++ b/jvmfwk/plugins/sunmajor/pluginlib/sunjre.cxx +@@ -80,7 +80,11 @@ char const* const* SunInfo::getLibraryPa + "/lib/" JFW_PLUGIN_ARCH "/client", + "/lib/" JFW_PLUGIN_ARCH "/server", + "/lib/" JFW_PLUGIN_ARCH "/native_threads", +- ("/lib/" JFW_PLUGIN_ARCH) ++ "/lib/" JFW_PLUGIN_ARCH, ++ "/lib/client", ++ "/lib/server", ++ "/lib/native_threads", ++ "/lib", + }; + *size = SAL_N_ELEMENTS(ar); + return ar; diff --git a/srcpkgs/libreoffice/patches/musl-java.patch b/srcpkgs/libreoffice/patches/musl-java.patch index 857651b3a21..f5205f3cb48 100644 --- a/srcpkgs/libreoffice/patches/musl-java.patch +++ b/srcpkgs/libreoffice/patches/musl-java.patch @@ -1,8 +1,6 @@ -diff --git a/configure.ac b/configure.ac -index 2c65a1200f69..ba4e6eb953ce 100644 --- a/configure.ac +++ b/configure.ac -@@ -8829,7 +8829,7 @@ if test -n "$ENABLE_JAVA" -a -z "$JAVAINC"; then +@@ -8910,7 +8910,7 @@ if test -n "$ENABLE_JAVA" -a -z "$JAVAIN test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread" ;; @@ -11,7 +9,7 @@ index 2c65a1200f69..ba4e6eb953ce 100644 JAVAINC="-I$JAVA_HOME/include" JAVAINC="$JAVAINC -I$JAVA_HOME/include/linux" test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread" -@@ -14569,7 +14569,7 @@ else +@@ -14646,7 +14646,7 @@ else case "$host_os" in @@ -20,11 +18,9 @@ index 2c65a1200f69..ba4e6eb953ce 100644 if test "$ENABLE_JAVA" != ""; then pathmunge "$JAVA_HOME/bin" "after" fi -diff --git a/configure b/configure -index d738aec..80a8878 100755 --- a/configure +++ b/configure -@@ -21502,7 +21502,7 @@ if test -n "$ENABLE_JAVA" -a -z "$JAVAINC"; then +@@ -22754,7 +22754,7 @@ if test -n "$ENABLE_JAVA" -a -z "$JAVAIN test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread" ;; @@ -33,7 +29,7 @@ index d738aec..80a8878 100755 JAVAINC="-I$JAVA_HOME/include" JAVAINC="$JAVAINC -I$JAVA_HOME/include/linux" test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread" -@@ -43329,7 +43329,7 @@ else +@@ -46454,7 +46454,7 @@ else case "$host_os" in diff --git a/srcpkgs/libreoffice/patches/musl-no-execinfo.patch b/srcpkgs/libreoffice/patches/musl-no-execinfo.patch new file mode 100644 index 00000000000..a430c5d1536 --- /dev/null +++ b/srcpkgs/libreoffice/patches/musl-no-execinfo.patch @@ -0,0 +1,10 @@ +--- a/external/skia/UnpackedTarball_skia.mk ++++ b/external/skia/UnpackedTarball_skia.mk +@@ -41,6 +41,7 @@ skia_patches := \ + constexpr-template.patch.0 \ + missing-include.patch.0 \ + tdf147342.patch.0 \ ++ skia-no-execinfo.patch.1 \ + + $(eval $(call gb_UnpackedTarball_set_patchlevel,skia,1)) + diff --git a/srcpkgs/libreoffice/patches/no-slowcheck.patch b/srcpkgs/libreoffice/patches/no-slowcheck.patch new file mode 100644 index 00000000000..7037f5d31ba --- /dev/null +++ b/srcpkgs/libreoffice/patches/no-slowcheck.patch @@ -0,0 +1,11 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -7,7 +7,7 @@ + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + +-gb_Top_MODULE_CHECK_TARGETS := slowcheck unitcheck subsequentcheck perfcheck uicheck screenshot ++gb_Top_MODULE_CHECK_TARGETS := unitcheck subsequentcheck perfcheck uicheck screenshot + + .PHONY : check-if-root bootstrap gbuild build build-non-l10n-only build-l10n-only check clean clean-build clean-host test-install distclean distro-pack-install docs download etags fetch get-submodules id install install-gdb-printers install-strip tags debugrun help showmodules translations packageinfo coverage internal.clean $(gb_Top_MODULE_CHECK_TARGETS) + diff --git a/srcpkgs/libreoffice/template b/srcpkgs/libreoffice/template index 11e023847f1..6c4665eed6c 100644 --- a/srcpkgs/libreoffice/template +++ b/srcpkgs/libreoffice/template @@ -1,6 +1,6 @@ # Template file for 'libreoffice' pkgname=libreoffice -version=7.4.3.2 +version=7.5.1.2 revision=1 build_style=meta make_build_target="build" @@ -14,14 +14,17 @@ makedepends="CoinMP-devel apr-devel avahi-libs-devel clucene-devel gtk+3-devel gtk4-devel hunspell-devel hyphen-devel libXt-devel libabw-devel glm libatomic_ops-devel libbluetooth-devel libcdr-devel libe-book-devel libepubgen-devel libetonyek-devel libexttextcat-devel libfbclient3-devel - libfreehand-devel boost-devel bzip2-devel libxslt-devel + libfreehand-devel boost-devel zlib-devel bzip2-devel libxslt-devel libgcrypt-devel libgltf-devel libldap-devel libmariadbclient-devel libmspub-devel libmwaw-devel libnumbertext-devel libodfgen-devel libopenjpeg2-devel liborcus-devel libpagemaker-devel libqxp-devel librsvg-devel libvisio-devel libwpg-devel - libwps-devel lpsolve-devel mdds mythes-devel neon-devel nss-devel + libwps-devel lpsolve-devel mdds mythes-devel neon-devel nss-devel nspr-devel postgresql-libs-devel python3-devel qt5-devel redland-devel sane-devel - telepathy-glib-devel unixodbc-devel vigra-devel libcppunit-devel - qt6-base-devel libwebp-devel libgirepository-devel + telepathy-glib-devel unixodbc-devel vigra-devel libcppunit-devel imath-devel + qt6-base-devel libwebp-devel libgirepository-devel icu-devel twaindsm-devel + libepoxy-devel libcurl-devel cairo-devel graphite-devel libjpeg-turbo-devel + expat-devel fontconfig-devel freetype-devel harfbuzz-devel gpgmepp-devel + lcms2-devel openssl-devel libpng-devel tiff-devel librevenge-devel qrcodegen-devel xmlsec1-devel poppler-cpp-devel libxml2-devel zxing-cpp-devel" depends="libreoffice-common>=${version}_${revision}" depends+=" libreoffice-base>=${version}_${revision}" @@ -42,6 +45,7 @@ depends+=" libreoffice-i18n-fr>=${version}_${revision}" depends+=" libreoffice-i18n-it>=${version}_${revision}" depends+=" libreoffice-i18n-pl>=${version}_${revision}" depends+=" libreoffice-i18n-pt>=${version}_${revision}" +checkdepends="gdb" short_desc="Productivity suite" maintainer="Érico Nogueira " license="GPL-3.0-or-later" @@ -72,7 +76,7 @@ distfiles=" ${_addurl}/libcmis-0.5.2.tar.xz ${_addurl}/libstaroffice-0.0.7.tar.xz ${_addurl}/libzmf-0.0.2.tar.xz - ${_addurl}/pdfium-5058.tar.bz2 + ${_addurl}/pdfium-5408.tar.bz2 ${_exturl}/8249374c274932a21846fa7629c2aa9b-officeotron-0.7.4-master.jar ${_exturl}/odfvalidator-0.9.0-RC2-SNAPSHOT-jar-with-dependencies-2726ab578664434a545f8379a01a9faffac0ae73.jar ${_addurl}/dtoa-20180411.tgz @@ -88,31 +92,12 @@ distfiles=" ${_addurl}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip ${_addurl}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip ${_addurl}/skia-m103-b301ff025004c9cd82816c86c547588e6c24b466.tar.xz - ${_addurl}/368f114c078f94214a308a74c7e991bc-crosextrafonts-20130214.tar.gz - ${_addurl}/c74b7223abe75949b4af367942d96c7a-crosextrafonts-carlito-20130920.tar.gz - ${_addurl}/33e1e61fab06a547851ed308b4ffef42-dejavu-fonts-ttf-2.37.zip - ${_addurl}/1725634df4bb3dcb1b2c91a6175f8789-GentiumBasic_1102.zip - ${_addurl}/liberation-narrow-fonts-ttf-1.07.6.tar.gz - ${_addurl}/liberation-fonts-ttf-2.1.4.tar.gz - ${_addurl}/e7a384790b13c29113e22e596ade9687-LinLibertineG-20120116.zip - ${_addurl}/907d6e99f241876695c19ff3db0b8923-source-code-pro-2.030R-ro-1.050R-it.tar.gz - ${_addurl}/edc4d741888bc0d38e32dbaa17149596-source-sans-pro-2.010R-ro-1.065R-it.tar.gz - ${_addurl}/source-serif-pro-3.000R.tar.gz - ${_addurl}/EmojiOneColor-SVGinOT-1.3.tar.gz - ${_addurl}/noto-fonts-20171024.tar.gz - ${_addurl}/culmus-0.133.tar.gz - ${_addurl}/libre-hebrew-1.0.tar.gz - ${_addurl}/alef-1.001.tar.gz - ${_addurl}/ttf-kacst_2.01+mry.tar.gz - ${_addurl}/Amiri-0.117.zip - ${_addurl}/ReemKufi-1.2.zip - ${_addurl}/Scheherazade-2.100.zip - ${_addurl}/dragonbox-1.1.0.tar.gz + ${_addurl}/dragonbox-1.1.3.tar.gz " -checksum="ffbcbb182e2296ec68ea2ec46bce80a40d53540729c00280ad541cd83c69db3b - 3a55d5807b763827f820c4aee0a0fd9f44520e70629c9eb9748e1f8c57c64389 - d08f4a2f16fb375903270facab527e28de57deb9ba452f9d449d5271d0f118a2 - d034df36118844f9958dc775069b3b8b08d11cbb8b4b27531449bc6543bccd20 +checksum="920ddd15bc84cf60a33cf0c68bb66a8ded78d150463c15ebaa27cfb7f3a6c0b7 + 0e4e3d6388f9849d91afedac6126e1583c3a809cc28d095c909bf36eb82fd93a + e9a892fcb7616379efde8724366a8450f7157ce03b8893e385425d6f34f7a8b3 + a3fc9e7b6a8b3cbc853d5bc52cacac773737ec33a2fb4c0a62e08faf1b29b91a 1fb458d6aab06932693cc8a9b6e4e70944ee1ff052fa63606e3131df34e21753 75823776fb51a9c526af904f1503a7afaaab900fba83eda64f8a41073724c870 7d2797fe9f79a77009721e3f14fa4a1dec17a6d706bdc93f85f1f01d124fab66 @@ -124,7 +109,7 @@ checksum="ffbcbb182e2296ec68ea2ec46bce80a40d53540729c00280ad541cd83c69db3b d7b18d9602190e10d437f8a964a32e983afd57e2db316a07d87477a79f5000a2 f94fb0ad8216f97127bedef163a45886b43c62deac5e5b0f5e628e234220c8db 27051a30cb057fdb5d5de65a1f165c7153dc76e27fe62251cbb86639eb2caf22 - eaf4ce9fad32b5d951c524139df23119b66c67720057defb97acab2dfb2582ac + 7db59b1e91f2bc0ab4c5e19d1a4f881e6a47dbb0d3b7e980a7358225b12a0f35 f2443f27561af52324eee03a1892d9f569adc8db9e7bca55614898bc2a13a770 d55495ab3a86544650587de2a72180ddf8bfc6376d14ddfa923992dbc86a06e0 0082d0684f7db6f62361b76c4b7faba19e0c7ce5cb8e36c4b65fea8281e711b4 @@ -140,27 +125,7 @@ checksum="ffbcbb182e2296ec68ea2ec46bce80a40d53540729c00280ad541cd83c69db3b 05640a1f6805b2b2d7e2cb9c50db9a5cb084e3c52ab1a71ce015239b4a1d4343 085f2112c51fa8c1783fac12fbd452650596415121348393bb51f0f7e85a9045 c094a6247e44104beaaa0d00c825beb6baf1a8e532dc22214747495317a65bd9 - c48d1c2fd613c9c06c959c34da7b8388059e2408d2bb19845dc3ed35f76e4d09 - 4bd12b6cbc321c1cf16da76e2c585c925ce956a08067ae6f6c64eff6ccfdaf5a - 7576310b219e04159d35ff61dd4a4ec4cdba4f35c00e002a136f00e96a908b0a - 2f1a2c5491d7305dffd3520c6375d2f3e14931ee35c6d8ae1e8f098bf1a7b3cc - 8879d89b5ff7b506c9fc28efc31a5c0b954bbe9333e66e5283d27d20a8519ea3 - 26f85412dd0aa9d061504a1cc8aaf0aa12a70710e8d47d8b65a1251757c1a5ef - 54adcb2bc8cac0927a647fbd9362f45eff48130ce6e2379dc3867643019e08c5 - 09466dce87653333f189acd8358c60c6736dcd95f042dee0b644bdcf65b6ae2f - e7bc9a1fec787a529e49f5a26b93dcdcf41506449dfc70f92cdef6d17eb6fb61 - 826a2b784d5cdb4c2bbc7830eb62871528360a61a52689c102a101623f1928e3 - d1a08f7c10589f22740231017694af0a7a270760c8dec33d8d1c038e2be0a0c7 - 29acc15a4c4d6b51201ba5d60f303dfbc2e5acbfdb70413c9ae1ed34fa259994 - c0c6873742d07544f6bacf2ad52eb9cb392974d56427938dc1dfbc8399c64d05 - f596257c1db706ce35795b18d7f66a4db99d427725f20e9384914b534142579a - b98b67602a2c8880a1770f0b9e37c190f29a7e2ade5616784f0b89fbdb75bf52 - dca00f5e655f2f217a766faa73a81f542c5c204aa3a47017c3c2be0b31d00a56 - 9c4e768893e0023a0ad6f488d5c84bd5add6565d3dcadb838ba5b20e75fcc9a7 - c4fd68a23c0ea471cc084ae7efe888da372b925cb208eeb0322c26792d2ef413 - 251c8817ceb87d9b661ce1d5b49e732a0116add10abc046be4b8ba5196e149b5 - 293247ccba995ec47ae3abb52c3e83904a7d71efb7093d4c0d2c6367c1cc1e20 - " + 09d63b05e9c594ec423778ab59b7a5aa1d76fdd71d25c7048b0258c4ec9c3384" skip_extraction=" 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip @@ -173,7 +138,7 @@ skip_extraction=" libcmis-0.5.2.tar.xz libstaroffice-0.0.7.tar.xz libzmf-0.0.2.tar.xz - pdfium-5058.tar.bz2 + pdfium-5408.tar.bz2 8249374c274932a21846fa7629c2aa9b-officeotron-0.7.4-master.jar odfvalidator-0.9.0-RC2-SNAPSHOT-jar-with-dependencies-2726ab578664434a545f8379a01a9faffac0ae73.jar dtoa-20180411.tgz @@ -189,26 +154,7 @@ skip_extraction=" f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip 39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip skia-m103-b301ff025004c9cd82816c86c547588e6c24b466.tar.xz - 368f114c078f94214a308a74c7e991bc-crosextrafonts-20130214.tar.gz - c74b7223abe75949b4af367942d96c7a-crosextrafonts-carlito-20130920.tar.gz - 33e1e61fab06a547851ed308b4ffef42-dejavu-fonts-ttf-2.37.zip - 1725634df4bb3dcb1b2c91a6175f8789-GentiumBasic_1102.zip - liberation-narrow-fonts-ttf-1.07.6.tar.gz - liberation-fonts-ttf-2.1.4.tar.gz - e7a384790b13c29113e22e596ade9687-LinLibertineG-20120116.zip - 907d6e99f241876695c19ff3db0b8923-source-code-pro-2.030R-ro-1.050R-it.tar.gz - edc4d741888bc0d38e32dbaa17149596-source-sans-pro-2.010R-ro-1.065R-it.tar.gz - source-serif-pro-3.000R.tar.gz - EmojiOneColor-SVGinOT-1.3.tar.gz - noto-fonts-20171024.tar.gz - culmus-0.133.tar.gz - libre-hebrew-1.0.tar.gz - alef-1.001.tar.gz - ttf-kacst_2.01+mry.tar.gz - Amiri-0.117.zip - ReemKufi-1.2.zip - Scheherazade-2.100.zip - dragonbox-1.1.0.tar.gz + dragonbox-1.1.3.tar.gz " replaces="libreoffice-firebird<6.2.4.2_1" @@ -220,14 +166,10 @@ case "$XBPS_TARGET_MACHINE" in CXXFLAGS+=" -DDISABLE_CVE_TESTS=1" ;; x86_64*|ppc64*) build_options_default="java" - makedepends+=" apache-ant openjdk11 " + makedepends+=" openjdk11 apache-ant" ;; esac -if [ "$XBPS_TARGET_LIBC" = "musl" ]; then - makedepends+=" libexecinfo-devel" -fi - if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then makedepends+=" libatomic-devel" fi @@ -268,11 +210,14 @@ _add_lang() { }" } +# _add_lang ab "Abkhazian" _add_lang af "Afrikaans" _add_lang am "Amharic" +# _add_lang an "Aragonese" _add_lang ar "Arabic" _add_lang as "Assamese" _add_lang ast "Asturian" +# _add_lang az "Azerbaijani" _add_lang be "Belarusian" _add_lang bg "Bulgarian" _add_lang bn "Bengali" @@ -283,11 +228,13 @@ _add_lang brx "Bodo" _add_lang bs "Bosnian" _add_lang ca "Catalan" _add_lang ca-valencia "Catalan (Valencian)" ca_valencia +_add_lang ckb "Central Kurdish" _add_lang cs "Czech" _add_lang cy "Welsh (Cymraeg)" _add_lang da "Danish" _add_lang de "German" _add_lang dgo "Dogri proper" +_add_lang dsb "Lower Sorbian" _add_lang dz "Dzongkha" _add_lang el "Greek" _add_lang en-GB "English (UK)" en_GB @@ -300,6 +247,8 @@ _add_lang eu "Basque" _add_lang fa "Persian (Farsi)" _add_lang fi "Finnish" _add_lang fr "French" +_add_lang fur "Friulian" +_add_lang fy "Frisian" _add_lang ga "Irish" _add_lang gd "Scottish Gaelic" _add_lang gl "Galician" @@ -308,19 +257,24 @@ _add_lang gug "Guaraní (Paraguay)" _add_lang he "Hebrew" _add_lang hi "Hindi" _add_lang hr "Croatian" +_add_lang hsb "Upper Sorbian" _add_lang hu "Hungarian" _add_lang id "Indonesian" _add_lang is "Icelandic" _add_lang it "Italian" _add_lang ja "Japanese" +# _add_lang jv "Bedjond" _add_lang ka "Georgian" +_add_lang kab "Kabyle" _add_lang kk "Kazakh" +# _add_lang kl "Aklanon" _add_lang km "Khmer" _add_lang kmr-Latn "Kurmanji Kurdish (Latin)" kmr_Latn _add_lang kn "Kannada" _add_lang ko "Korean" _add_lang kok "Konkani" _add_lang ks "Kashmiri" +# _add_lang ky "Aka-Kol" _add_lang lb "Luxembourgish" _add_lang lo "Lao" _add_lang lt "Lithuanian" @@ -349,6 +303,7 @@ _add_lang ro "Romanian" _add_lang ru "Russian" _add_lang rw "Kinyarwanda" _add_lang sa-IN "Sanskrit (India)" sa_IN +# _add_lang sah "Yakut" _add_lang sat "Santali" _add_lang sd "Sindhi" _add_lang si "Sinhala" @@ -362,18 +317,22 @@ _add_lang ss "Swati" _add_lang st "Southern Sotho" _add_lang sv "Swedish" _add_lang sw-TZ "Swahili (Tanzania)" sw_TZ +_add_lang szl "Silesian" _add_lang ta "Tamil" _add_lang te "Telugu" _add_lang tg "Tajik" _add_lang th "Thai" +# _add_lang ti "Tigrinya/Tigrigna" _add_lang tn "Tswana" _add_lang tr "Turkish" _add_lang ts "Tsonga" _add_lang tt "Tatar" _add_lang ug "Uyghur" _add_lang uk "Ukrainian" +# _add_lang ur "Urdu" _add_lang uz "Uzbek" _add_lang ve "Venda" +_add_lang vec "Venetian" _add_lang vi "Vietnamese" _add_lang xh "Xhosa" _add_lang zh-CN "Simplified Chinese (People's Republic of China)" zh_CN @@ -381,6 +340,7 @@ _add_lang zh-TW "Traditional Chinese (Taiwan)" zh_TW _add_lang zu "Zulu" post_extract() { + local pkg f dir fname local srcdistdir=${XBPS_SRCDISTDIR}/${pkgname}-${version} pkg mkdir -p ${wrksrc}/external/tarballs for pkg in ${skip_extraction} libreoffice-{dictionaries,help,translations}-${version}.tar.xz ; do @@ -392,6 +352,13 @@ post_extract() { ln -svf ${srcdistdir}/${pkg} ${wrksrc}/external/tarballs/ fi done + for f in ${FILESDIR}/*.patch; do + fname=${f##*/} + dir=${fname%%-*} + if [ -d "${wrksrc}/external/${dir}" ]; then + cp "$f" "${wrksrc}/external/${dir}/${fname}.1" + fi + done } post_patch() { @@ -451,6 +418,7 @@ do_configure() { opts+=" --enable-release-build" opts+=" --enable-split-app-modules" opts+=" --disable-dconf" + opts+=" --disable-epm" # New strategy: enable all libs and headers, then disable what's missing opts+=" --with-system-libs" opts+=" --with-system-headers" @@ -462,8 +430,7 @@ do_configure() { # opts+=" --enable-ext-languagetool" ;; esac - # Includes many fonts we don't package individually - opts+=" --with-fonts=yes" + opts+=" --without-fonts" # skia sucks if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then @@ -504,9 +471,6 @@ do_configure() { opts+=" --with-parallelism=${XBPS_MAKEJOBS}" ./configure ${opts} --with-lang="${_languages}" - - # Disable slowcheck target - vsed -i Makefile -e "/gb_Top_MODULE_CHECK_TARGETS /s/ slowcheck//" } do_build() { @@ -514,6 +478,13 @@ do_build() { make ${makejobs} -C libreofficekit } +do_check() { + : "TODO test can not find hsqldb.jar" \ + LO_JAVA_DIR="${wrksrc}/instdir/program/classes" \ + LD_LIBRARY_PATH=/usr/lib/jvm/openjdk17/lib/server \ + make ${makejobs} check +} + do_install() { make DESTDIR="${DESTDIR}/all" PREFIXDIR=/usr distro-pack-install @@ -559,6 +530,29 @@ libreoffice-draw_package() { libreoffice-fonts_package() { short_desc+=" - Fonts" + # libreoffice-fonts used to bundle those fonts + depends=" + amiri-font + culmus + dejavu-fonts-ttf + font-adobe-source-code-pro + font-adobe-source-sans-pro-v2 + font-adobe-source-serif-pro + font-alef + font-crosextra-caladea-ttf + font-crosextra-carlito-ttf + font-emoji-one-color + font-kacst + font-liberation-narrow-ttf + liberation-fonts-ttf + font-libertine-graphite-ttf + font-reem-kufi-ttf + font-sil-gentium-basic + font-sil-scheherazade + noto-fonts-ttf + noto-fonts-ttf-extra + " + build_style=meta pkg_install() { vmkdir usr/lib/libreoffice/share mv ${DESTDIR}/all/usr/lib/libreoffice/share/fonts \