sci-libs/libqalculate: add 5.8.2

Tests pass

Closes: https://bugs.gentoo.org/966726
Signed-off-by: Christopher Fore <csfore@posteo.net>
Part-of: https://github.com/gentoo/gentoo/pull/44822
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
This commit is contained in:
Christopher Fore 2025-11-29 17:03:13 -05:00 committed by Nowa Ammerlaan
parent 358c6ee0d8
commit 348cf48b05
No known key found for this signature in database
GPG Key ID: A2E2304370447E8E
2 changed files with 90 additions and 0 deletions

View File

@ -1,3 +1,4 @@
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
DIST libqalculate-5.8.2.tar.gz 2370999 BLAKE2B 4a7fd5d5a4977e2506c88b3cdfea681841d19e831b31bf644c923764c192b48c4b8b2659077f54e0784c49417b5611b3255801042aaa8d8f4c984f1ac3f0738b SHA512 7f35184fdab3a0bd10ae39c54023491aaa52160f9bd97c4b6e3bb465b49389009627719da2678015d9b297fa8339cc0abe48332fccfe51ad9b2ee888a608ac0a

View File

@ -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
}