1 |
commit: 9ea979a8d6ad01624cb4f3210c9e43021ea2eb06 |
2 |
Author: Gavin D. Howard <gavin <AT> gavinhoward <DOT> com> |
3 |
AuthorDate: Fri Mar 17 05:09:48 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 19 03:10:40 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ea979a8 |
7 |
|
8 |
sci-calculators/bc-gh: bump to 6.5.0 |
9 |
|
10 |
Signed-off-by: Gavin D. Howard <gavin <AT> gavinhoward.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/30168 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
sci-calculators/bc-gh/Manifest | 1 + |
15 |
sci-calculators/bc-gh/bc-gh-6.5.0.ebuild | 75 ++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 76 insertions(+) |
17 |
|
18 |
diff --git a/sci-calculators/bc-gh/Manifest b/sci-calculators/bc-gh/Manifest |
19 |
index 48d6feacf306..ec318471a456 100644 |
20 |
--- a/sci-calculators/bc-gh/Manifest |
21 |
+++ b/sci-calculators/bc-gh/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST bc-6.1.1.tar.xz 455456 BLAKE2B 7945ac623740abd9cbd894c20b8a03006caf64d2ce9770ade930d912c52b4e29b107b524d4a95ebea99e31921b7940e39e1afdeec837b4a03d3ed4e11b9f517b SHA512 0e7fb4d4223ace8ba5c1961cc0d7eba475174f92b75529fde64446b5d80db5729f848fd95507570711d2b8928996c87e837e926d31028f32e3f97cad47567d39 |
24 |
DIST bc-6.4.0.tar.xz 460460 BLAKE2B 91d70f3907fde6d3c97c37872d57ac67e98990ab1e37324801a95184d7961002b68f2b6904520ab4c77c45a571c369fb0a6455553bb3db79553e01aece28e212 SHA512 6c7a86c534214e765e3890dffe77fb85ddf0764cde0c6ceb0385cce7de4c0d2db0815faf6bcf161fad75591461c346811a61c42c5eced7c3d84fe5b7eb719b60 |
25 |
+DIST bc-6.5.0.tar.xz 461380 BLAKE2B e4aa633162d03fc5723e967ba81f985ab1b16e47b3c9a3ca1c32e9a717db682ce88cc6ba453d5e9b09539dcb8ddbb258b7b7dbdd2e27279355e3c35028d56130 SHA512 1cb03038d828a0b10734c29931777add8b22f194c507b8ff538ec1aa52a2a97a4ac2733d72cdb0710fdc6937807074e929f7918c56aaf5be8fbe908ea7c5a401 |
26 |
|
27 |
diff --git a/sci-calculators/bc-gh/bc-gh-6.5.0.ebuild b/sci-calculators/bc-gh/bc-gh-6.5.0.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..7b4e6bc4cbf5 |
30 |
--- /dev/null |
31 |
+++ b/sci-calculators/bc-gh/bc-gh-6.5.0.ebuild |
32 |
@@ -0,0 +1,75 @@ |
33 |
+# Copyright 1999-2023 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+MY_P="bc-${PV}" |
39 |
+DESCRIPTION="Implementation of POSIX bc with GNU extensions" |
40 |
+HOMEPAGE=" |
41 |
+ https://git.gavinhoward.com/gavin/bc/ |
42 |
+ https://github.com/gavinhoward/bc/ |
43 |
+" |
44 |
+SRC_URI=" |
45 |
+ https://github.com/gavinhoward/bc/releases/download/${PV}/${MY_P}.tar.xz |
46 |
+" |
47 |
+S=${WORKDIR}/${MY_P} |
48 |
+ |
49 |
+LICENSE="BSD-2" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
52 |
+IUSE="libedit readline" |
53 |
+ |
54 |
+DEPEND=" |
55 |
+ !readline? ( |
56 |
+ libedit? ( dev-libs/libedit:= ) |
57 |
+ ) |
58 |
+ readline? ( |
59 |
+ sys-libs/readline:= |
60 |
+ sys-libs/ncurses:= |
61 |
+ ) |
62 |
+" |
63 |
+RDEPEND=" |
64 |
+ ${DEPEND} |
65 |
+" |
66 |
+ |
67 |
+src_configure() { |
68 |
+ local myconf=( |
69 |
+ # GNU and BSD bc's have slightly different behavior. This bc can act |
70 |
+ # like both, changing at runtime with environment variables, but it |
71 |
+ # needs defaults, which can be set at compile time. This option sets all |
72 |
+ # of the defaults to match the GNU bc/dc since it's common on Linux. |
73 |
+ -pGNU |
74 |
+ # A lot of test results are generated first by a bc compatible with the |
75 |
+ # GNU bc. If there is no GNU bc installed, then those tests should be |
76 |
+ # skipped. That's what this option does. Without it, we would have a |
77 |
+ # dependency cycle. Those tests are super long, anyway. |
78 |
+ -G |
79 |
+ # Disables the automatic stripping of binaries. |
80 |
+ -T |
81 |
+ # Enables installing all locales, which is important for packages. |
82 |
+ -l |
83 |
+ # Disables some "problematic" tests that need specific options on Linux |
84 |
+ # to not trigger the OOM killer because malloc() lies. |
85 |
+ -P |
86 |
+ ) |
87 |
+ if use readline ; then |
88 |
+ myconf+=( -r ) |
89 |
+ elif use libedit ; then |
90 |
+ myconf+=( -e ) |
91 |
+ fi |
92 |
+ |
93 |
+ local -x EXECSUFFIX="-gh" |
94 |
+ local -x PREFIX="${EPREFIX}/usr" |
95 |
+ ./configure.sh "${myconf[@]}" || die |
96 |
+} |
97 |
+ |
98 |
+src_test() { |
99 |
+ # This is to fix a bug encountered on Arch. It is to ensure we don't get |
100 |
+ # segfaults on `make check` when the error messages change because the error |
101 |
+ # messages are passed to printf(); they have format specifiers. With these |
102 |
+ # env vars, the internal error messages are used, instead of the installed |
103 |
+ # locales, which might be different since the new locale files are not |
104 |
+ # installed yet. (It is impossible to use uninstalled locales because of the |
105 |
+ # poor design of POSIX locales.) |
106 |
+ env LANG=C LC_ALL=C emake check |
107 |
+} |