Gentoo Archives: gentoo-commits

From: Christoph Junghans <junghans@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/muParser/
Date: Fri, 30 Sep 2022 20:28:25
Message-Id: 1664569698.8bfd53ae46426bf9eb15cc0a6415d03252c3f4ff.junghans@gentoo
1 commit: 8bfd53ae46426bf9eb15cc0a6415d03252c3f4ff
2 Author: Christoph Junghans <junghans <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 20:27:36 2022 +0000
4 Commit: Christoph Junghans <junghans <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 20:28:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bfd53ae
7
8 muParser: wchar support
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Christoph Junghans <junghans <AT> gentoo.org>
12
13 dev-cpp/muParser/metadata.xml | 3 +++
14 dev-cpp/muParser/muParser-2.3.3-r1.ebuild | 41 +++++++++++++++++++++++++++++++
15 2 files changed, 44 insertions(+)
16
17 diff --git a/dev-cpp/muParser/metadata.xml b/dev-cpp/muParser/metadata.xml
18 index c81547b2e58d..05a26448f3c7 100644
19 --- a/dev-cpp/muParser/metadata.xml
20 +++ b/dev-cpp/muParser/metadata.xml
21 @@ -14,4 +14,7 @@
22 <remote-id type="sourceforge">muparser</remote-id>
23 <remote-id type="github">beltoforion/muparser</remote-id>
24 </upstream>
25 + <use>
26 + <flag name="wchar">Add support for wide character (wchar_t)</flag>
27 + </use>
28 </pkgmetadata>
29
30 diff --git a/dev-cpp/muParser/muParser-2.3.3-r1.ebuild b/dev-cpp/muParser/muParser-2.3.3-r1.ebuild
31 new file mode 100644
32 index 000000000000..56484900d164
33 --- /dev/null
34 +++ b/dev-cpp/muParser/muParser-2.3.3-r1.ebuild
35 @@ -0,0 +1,41 @@
36 +# Copyright 1999-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=8
40 +
41 +inherit cmake
42 +
43 +# The upstream tag is v2.3.3-1 instead of v2.3.3
44 +suffix="-1"
45 +
46 +DESCRIPTION="Library for parsing mathematical expressions"
47 +HOMEPAGE="https://beltoforion.de/en/muparser/"
48 +SRC_URI="https://github.com/beltoforion/muparser/archive/refs/tags/v${PV}${suffix}.tar.gz -> ${P}.tar.gz"
49 +S="${WORKDIR}"/muparser-${PV}
50 +
51 +LICENSE="MIT"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
54 +IUSE="doc openmp test wchar"
55 +RESTRICT="!test? ( test )"
56 +
57 +S="${S}${suffix}"
58 +
59 +PATCHES=(
60 +)
61 +
62 +src_configure() {
63 + mycmakeargs=(
64 + -DENABLE_OPENMP=$(usex openmp)
65 + -DENABLE_WIDE_CHAR=$(usex wchar)
66 + )
67 + cmake_src_configure
68 +}
69 +
70 +src_test() {
71 + cmake_src_compile test
72 +}
73 +
74 +src_install() {
75 + cmake_src_install
76 +}