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