commit:     5eebb7efc26ca17599533e11ed77102f60a06d50
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu May  8 21:08:56 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu May  8 21:41:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5eebb7ef

app-text/libetonyek: add missing Numbers function names

See also:
https://bugs.documentfoundation.org/show_bug.cgi?id=151166

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ...yek-0.1.12-missing-numbers-function-names.patch | 33 ++++++++++++
 app-text/libetonyek/libetonyek-0.1.12-r1.ebuild    | 62 ++++++++++++++++++++++
 2 files changed, 95 insertions(+)

diff --git 
a/app-text/libetonyek/files/libetonyek-0.1.12-missing-numbers-function-names.patch
 
b/app-text/libetonyek/files/libetonyek-0.1.12-missing-numbers-function-names.patch
new file mode 100644
index 000000000000..d4608cbb9686
--- /dev/null
+++ 
b/app-text/libetonyek/files/libetonyek-0.1.12-missing-numbers-function-names.patch
@@ -0,0 +1,33 @@
+From 7cfb47c7614b01ee4b4ccb881f0ab37e9e2e497d Mon Sep 17 00:00:00 2001
+From: jlorber <[email protected]>
+Date: Tue, 04 Mar 2025 12:12:41 +0100
+Subject: [PATCH] tdf#151166 add missing Numbers function names
+
+Change-Id: I5f01e4f1412cf2d4a679fbf5d511475cf04c77ee
+Reviewed-on: https://gerrit.libreoffice.org/c/libetonyek/+/182473
+Tested-by: Ilmari Lauhakangas <[email protected]>
+Reviewed-by: Ilmari Lauhakangas <[email protected]>
+---
+
+diff --git a/src/lib/IWAParser.cpp b/src/lib/IWAParser.cpp
+index 938d761..8b4f759 100644
+--- a/src/lib/IWAParser.cpp
++++ b/src/lib/IWAParser.cpp
+@@ -3593,7 +3593,16 @@
+           {285, "Union.Ranges"},
+           {286, "SeriesSum"}, {287, "Polynomial"}, {288, "WeiBull"},
+           {297, "PlainText"}, {298, "Stock"}, {299, "StockH"}, {300, 
"Currency"},
+-          {301, "CurrencyH"}, {302, "CurrencyConvert"}, {303, "CurrencyCode"}
++          {301, "CurrencyH"}, {302, "CurrencyConvert"}, {303, "CurrencyCode"},
++        {304, "IsNumber"}, {305, "IsText"}, {306, "IsDate"},
++        {309, "MaxIfs"}, {310, "MinIfs"}, {311, "XIRR"}, {312, "XNPV"}, {313, 
"Ifs"},
++        {314, "XLookup"}, {315, "XMatch"}, {316, "Subtotal"}, {317, 
"CountMatches"},
++        {318, "TextBefore"}, {319, "TextBetween"}, {320, "TextAfter"},
++        {321, "Regex"}, {322, "Reference.Name"}, {323, "FormulaText"}, {324, 
"Regex.Extract"},
++        {325, "GetPivotData"}, {328, "TextJoin"}, {329, "Concat"},
++        {330, "BitAnd"}, {331, "BitOr"}, {332, "BitXor"}, {333, "BitLShift"}, 
{334, "BitRShift"},
++        {335, "ISOWeekNum"}, {336, "Switch"}
++
+         };
+         Formula child;
+         std::ostringstream s;

diff --git a/app-text/libetonyek/libetonyek-0.1.12-r1.ebuild 
b/app-text/libetonyek/libetonyek-0.1.12-r1.ebuild
new file mode 100644
index 000000000000..e5b659b3517e
--- /dev/null
+++ b/app-text/libetonyek/libetonyek-0.1.12-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+if [[ ${PV} == *9999* ]]; then
+       
EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/libetonyek.git";
+       inherit autotools git-r3
+else
+       SRC_URI="https://dev-www.libreoffice.org/src/libetonyek/${P}.tar.xz";
+       KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+fi
+
+DESCRIPTION="Library parsing Apple Keynote presentations"
+HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libetonyek";
+
+LICENSE="|| ( GPL-2+ LGPL-2.1 MPL-1.1 )"
+SLOT="0"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       app-text/liblangtag
+       dev-libs/librevenge
+       dev-libs/libxml2
+       >=dev-util/mdds-2.1:1=
+       sys-libs/zlib
+"
+DEPEND="${RDEPEND}
+       dev-libs/boost
+       media-libs/glm
+       dev-build/libtool
+       test? ( dev-util/cppunit )
+"
+BDEPEND="
+       virtual/pkgconfig
+       doc? ( app-text/doxygen )
+"
+
+PATCHES=( "${FILESDIR}/${P}-missing-numbers-function-names.patch" )
+
+src_prepare() {
+       default
+       [[ -d m4 ]] || mkdir "m4" || die
+       [[ ${PV} == *9999* ]] && eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               --disable-werror
+               --with-mdds=2.1
+               $(use_with doc docs)
+               $(use_enable test tests)
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+       find "${ED}" -name '*.la' -type f -delete || die
+}

Reply via email to