Gentoo Archives: gentoo-commits

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