commit:     aa3567ebbd538170e9adc6b4ec7696ce4e6d5d23
Author:     Christopher Fore <csfore <AT> posteo <DOT> net>
AuthorDate: Mon Oct 27 14:56:04 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 27 23:41:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa3567eb

sci-libs/libqalculate: add 5.8.1

- Drop backported patch

Signed-off-by: Christopher Fore <csfore <AT> posteo.net>
Part-of: https://github.com/gentoo/gentoo/pull/44351
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/libqalculate/Manifest                  |  1 +
 sci-libs/libqalculate/libqalculate-5.8.1.ebuild | 89 +++++++++++++++++++++++++
 2 files changed, 90 insertions(+)

diff --git a/sci-libs/libqalculate/Manifest b/sci-libs/libqalculate/Manifest
index 2bedbe8657a0..f5aa0abcdd1d 100644
--- a/sci-libs/libqalculate/Manifest
+++ b/sci-libs/libqalculate/Manifest
@@ -1,2 +1,3 @@
 DIST libqalculate-5.7.0.tar.gz 2310241 BLAKE2B 
2bb934c67ef8ade6525bc34fbd4fd52c163a3e968b1d06bb07deb1fbb12f6a457b6a3d16734a9ce1a7b216c060d88b73a28ea26d7d29ca3ac9f4b232e6e25665
 SHA512 
f21144541da78f3dcbf65b1c9f826a50d8758515554a4ded9f450daf945b042820412114110aaf46bc21493f4ebb7e0a7d2ee925fdce0e497fd90f4adc983cf8
 DIST libqalculate-5.8.0.tar.gz 2354285 BLAKE2B 
2480498d437dc6807233e95a6c994889edbfd8118858463cbadeacfa815367556e32eb9423363c15f97cfc4b9639b8282628d78725af19ad2c9c3a00baa54b57
 SHA512 
2fc8d02578e0277b51e5bc5c738744b4919a1bc09a793f445296430d1e2ac84dece653ed48f7bd091882267c0ac924c9a3e430e3d674af1afab353de371b3c00
+DIST libqalculate-5.8.1.tar.gz 2360079 BLAKE2B 
1e460d525f0da50ab6c0be6d1fb8a1d1fece96af044055c4fb8b028dd15bb1e6e3956d6cc128f0632c1e388f20eff9febfef3b95c972840a157473b8e7d4979a
 SHA512 
a6f39b33589e4550b8d55336c290c284032bb526a66f4ed072607342f237655784df6f1dc3cb94e3a8157b61421c5f94aca687270e08cba9c34f9ee262e62149

diff --git a/sci-libs/libqalculate/libqalculate-5.8.1.ebuild 
b/sci-libs/libqalculate/libqalculate-5.8.1.ebuild
new file mode 100644
index 000000000000..65a77038b120
--- /dev/null
+++ b/sci-libs/libqalculate/libqalculate-5.8.1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Bump with sci-calculators/qalculate-gtk and sci-calculators/qalculate-qt
+
+inherit autotools flag-o-matic toolchain-funcs
+
+MY_PV="${PV//b/}"
+
+DESCRIPTION="A modern multi-purpose calculator library"
+HOMEPAGE="https://qalculate.github.io/";
+SRC_URI="https://github.com/Qalculate/libqalculate/archive/v${MY_PV}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}"/"${PN}-${MY_PV}"
+
+LICENSE="GPL-2+"
+# SONAME changes pretty often on bumps. Check!
+SLOT="0/23.3"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc 
~x86 ~amd64-linux ~x86-linux"
+IUSE="+curl icu gnuplot +hardened readline test"
+RESTRICT="!test? ( test )"
+
+DEPEND="dev-libs/gmp:=
+       dev-libs/libxml2:2=
+       dev-libs/mpfr:=
+       virtual/libiconv
+       curl? ( net-misc/curl )
+       icu? ( dev-libs/icu:= )
+       readline? ( sys-libs/readline:= )"
+RDEPEND="${DEPEND}
+       gnuplot? ( >=sci-visualization/gnuplot-3.7 )"
+BDEPEND="dev-util/intltool
+       sys-devel/gettext
+       virtual/pkgconfig"
+
+src_prepare() {
+       default
+       cat >po/POTFILES.skip <<-EOF || die
+               # Required by make check
+               data/currencies.xml.in
+               data/datasets.xml.in
+               data/elements.xml.in
+               data/functions.xml.in
+               data/planets.xml.in
+               data/prefixes.xml.in
+               data/units.xml.in
+               data/variables.xml.in
+               src/defs2doc.cc
+       EOF
+
+       eautoreconf
+}
+
+src_configure() {
+       # Needed for po-defs/Makefile
+       export CXX_FOR_BUILD="$(tc-getBUILD_CXX)"
+       export CXXCPP_FOR_BUILD="$(tc-getBUILD_CXX) -E"
+
+       # bug #792027
+       tc-export CC
+
+       # bug #924939
+       use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
+
+       local myeconfargs=(
+               $(use_enable test tests)
+               $(use_enable test unittests)
+               $(use_with curl libcurl)
+               $(use_with gnuplot gnuplot-call)
+               $(use_enable !hardened insecure)
+               $(use_with icu)
+               $(use_with readline)
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       # docs/reference/Makefile.am -> referencedir=
+       emake \
+               DESTDIR="${D}" \
+               referencedir="${EPREFIX}/usr/share/doc/${PF}/html" \
+               install
+
+       einstalldocs
+
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to