Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libqalculate/
Date: Thu, 14 Oct 2021 09:18:28
Message-Id: 1634203086.4cd22ec781b60c9f34512d79006f0d46e4d8e437.jsmolic@gentoo
1 commit: 4cd22ec781b60c9f34512d79006f0d46e4d8e437
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 14 08:37:17 2021 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 14 09:18:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cd22ec7
7
8 sci-libs/libqalculate: add 3.21.0
9
10 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
11
12 sci-libs/libqalculate/Manifest | 1 +
13 sci-libs/libqalculate/libqalculate-3.21.0.ebuild | 74 ++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/sci-libs/libqalculate/Manifest b/sci-libs/libqalculate/Manifest
17 index 0f27049a628..93d33565b63 100644
18 --- a/sci-libs/libqalculate/Manifest
19 +++ b/sci-libs/libqalculate/Manifest
20 @@ -1 +1,2 @@
21 DIST libqalculate-3.20.1.tar.gz 2107300 BLAKE2B 79314cbe2adb183a17f96947b8ad4fa0bbfea665f7b9afda67785059e9bc0d94599b05cd55999302fc5e1216929b4ed98db4e2a6ae0c6fc74ebdd37dc6dcb72e SHA512 65a723c257c9e2419fc60ca254c23a7a7dd4d9a31beaa9c8fcf41a1e252e5f3be08e1160dcc72a0a407fe3ffd3e73353b141e40019871677a490d8c810c96931
22 +DIST libqalculate-3.21.0.tar.gz 2117414 BLAKE2B eaf8b886e716a6f8e9631dbda6533906cc7c5ed986233d75b9384aefb4123479914715d37268db5e1d403d1ee1835cde77314abe5380768fce5c266d1c253ca3 SHA512 7ca876ffe359ab2c6c6ae266007f489f9cd26f6650d6ace4e1d80cc660d16294cce601ed81046baca25cc4ec41668498af0a555fddc47c4118241e72af039614
23
24 diff --git a/sci-libs/libqalculate/libqalculate-3.21.0.ebuild b/sci-libs/libqalculate/libqalculate-3.21.0.ebuild
25 new file mode 100644
26 index 00000000000..65c9f8a2022
27 --- /dev/null
28 +++ b/sci-libs/libqalculate/libqalculate-3.21.0.ebuild
29 @@ -0,0 +1,74 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit toolchain-funcs
36 +
37 +DESCRIPTION="A modern multi-purpose calculator library"
38 +HOMEPAGE="https://qalculate.github.io/"
39 +SRC_URI="https://github.com/Qalculate/${PN}/releases/download/v${PV}/${P}.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0/22"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
44 +IUSE="curl icu gnuplot readline"
45 +
46 +DEPEND="
47 + dev-libs/gmp:0=
48 + dev-libs/libxml2:2
49 + dev-libs/mpfr:0=
50 + virtual/libiconv
51 + curl? ( net-misc/curl )
52 + icu? ( dev-libs/icu:= )
53 + readline? ( sys-libs/readline:0= )"
54 +RDEPEND="${DEPEND}
55 + gnuplot? ( >=sci-visualization/gnuplot-3.7 )"
56 +BDEPEND="dev-util/intltool
57 + sys-devel/gettext
58 + virtual/pkgconfig"
59 +
60 +src_prepare() {
61 + default
62 +
63 + cat >po/POTFILES.skip <<-EOF || die
64 + # Required by make check
65 + data/currencies.xml.in
66 + data/datasets.xml.in
67 + data/elements.xml.in
68 + data/functions.xml.in
69 + data/planets.xml.in
70 + data/prefixes.xml.in
71 + data/units.xml.in
72 + data/variables.xml.in
73 + src/defs2doc.cc
74 + EOF
75 +}
76 +
77 +src_configure() {
78 + # Needed for po-defs/Makefile
79 + export CXX_FOR_BUILD="$(tc-getBUILD_CXX)"
80 + export CXXCPP_FOR_BUILD="$(tc-getBUILD_CXX) -E"
81 +
82 + # bug #792027
83 + tc-export CC
84 +
85 + econf \
86 + --disable-static \
87 + $(use_with curl libcurl) \
88 + $(use_with gnuplot gnuplot-call) \
89 + $(use_with icu) \
90 + $(use_with readline)
91 +}
92 +
93 +src_install() {
94 + # docs/reference/Makefile.am -> referencedir=
95 + emake \
96 + DESTDIR="${D}" \
97 + referencedir="${EPREFIX}/usr/share/doc/${PF}/html" \
98 + install
99 +
100 + einstalldocs
101 +
102 + find "${ED}" -name '*.la' -delete || die
103 +}