From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-calculators/bc-gh/
Date: Sun, 1 Oct 2023 07:34:59 +0000 (UTC) [thread overview]
Message-ID: <1696145553.d6ee8ce83315f4b95a25cd7e3ea8f43259f8fb10.sam@gentoo> (raw)
commit: d6ee8ce83315f4b95a25cd7e3ea8f43259f8fb10
Author: Gavin D. Howard <gavin <AT> gavinhoward <DOT> com>
AuthorDate: Fri Sep 29 19:44:15 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 1 07:32:33 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6ee8ce8
sci-calculators/bc-gh: add 6.7.0
Signed-off-by: Gavin D. Howard <gavin <AT> gavinhoward.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-calculators/bc-gh/Manifest | 1 +
sci-calculators/bc-gh/bc-gh-6.7.0.ebuild | 77 ++++++++++++++++++++++++++++++++
2 files changed, 78 insertions(+)
diff --git a/sci-calculators/bc-gh/Manifest b/sci-calculators/bc-gh/Manifest
index 59b442925a85..b7f35d4ca35e 100644
--- a/sci-calculators/bc-gh/Manifest
+++ b/sci-calculators/bc-gh/Manifest
@@ -2,3 +2,4 @@ DIST bc-6.1.1.tar.xz 455456 BLAKE2B 7945ac623740abd9cbd894c20b8a03006caf64d2ce97
DIST bc-6.5.0.tar.xz 461380 BLAKE2B e4aa633162d03fc5723e967ba81f985ab1b16e47b3c9a3ca1c32e9a717db682ce88cc6ba453d5e9b09539dcb8ddbb258b7b7dbdd2e27279355e3c35028d56130 SHA512 1cb03038d828a0b10734c29931777add8b22f194c507b8ff538ec1aa52a2a97a4ac2733d72cdb0710fdc6937807074e929f7918c56aaf5be8fbe908ea7c5a401
DIST bc-6.6.0.tar.xz 465272 BLAKE2B 489f6e20a06f2903421a2c8ba7249f52a52dadfd354de920bac098c6181d79e944c696aa787a143d72a12af1c1893b7b48341cf6e6c4003ceace88812dc72c96 SHA512 5d8e32a7e8bf34d36919f9ab4a84d410747bcaf66d8846c536e41b8a447fe0066d8b0de5a10011d77d50a880290423bae6dea1404f01edf6dfd5247d41ca19a0
DIST bc-6.6.1.tar.xz 466420 BLAKE2B ddf22c13e33e5526a07824900ad8294913a76ae2bc7e8a6489ee3dc5dd0c18005f74abeaf39ce81ac686fe82889f708e2e581307709966adb15355199aaf046a SHA512 5459ac61dc3fe39be9687616a801ecaf60caabb76cccc76d9e2e5aa4dc3efbb1cc33e2ad059d037c71ad3cce0cd9571d68bc13d09696cb43e5c3dfcdee117f9c
+DIST bc-6.7.0.tar.xz 466672 BLAKE2B 65e72095a1282d0861ad76b18aed2bf96bb3e92b2e9ec90cffce00ad70219071d6203e80b251dbcd13a7908a4219fe16b7120e29ac6924794ae1c217a3c3ca46 SHA512 a4b8c0b0ba8a214e2fdd271f5090d2977c8ee3053dc52d28cbd031a4a935f0e5d9c7be8df8e1cf106ac68c18faf136917a241f5e89597e271bf127df3d6d3f9f
diff --git a/sci-calculators/bc-gh/bc-gh-6.7.0.ebuild b/sci-calculators/bc-gh/bc-gh-6.7.0.ebuild
new file mode 100644
index 000000000000..5a1b0d786bf9
--- /dev/null
+++ b/sci-calculators/bc-gh/bc-gh-6.7.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo
+
+MY_P="bc-${PV}"
+DESCRIPTION="Implementation of POSIX bc with GNU extensions"
+HOMEPAGE="
+ https://git.gavinhoward.com/gavin/bc/
+ https://github.com/gavinhoward/bc/
+"
+SRC_URI="
+ https://github.com/gavinhoward/bc/releases/download/${PV}/${MY_P}.tar.xz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="libedit readline"
+
+DEPEND="
+ !readline? (
+ libedit? ( dev-libs/libedit:= )
+ )
+ readline? (
+ sys-libs/readline:=
+ sys-libs/ncurses:=
+ )
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+src_configure() {
+ local myconf=(
+ # GNU and BSD bc's have slightly different behavior. This bc can act
+ # like both, changing at runtime with environment variables, but it
+ # needs defaults, which can be set at compile time. This option sets all
+ # of the defaults to match the GNU bc/dc since it's common on Linux.
+ -pGNU
+ # A lot of test results are generated first by a bc compatible with the
+ # GNU bc. If there is no GNU bc installed, then those tests should be
+ # skipped. That's what this option does. Without it, we would have a
+ # dependency cycle. Those tests are super long, anyway.
+ -G
+ # Disables the automatic stripping of binaries.
+ -T
+ # Enables installing all locales, which is important for packages.
+ -l
+ # Disables some "problematic" tests that need specific options on Linux
+ # to not trigger the OOM killer because malloc() lies.
+ -P
+ )
+ if use readline ; then
+ myconf+=( -r )
+ elif use libedit ; then
+ myconf+=( -e )
+ fi
+
+ local -x EXECSUFFIX="-gh"
+ local -x PREFIX="${EPREFIX}/usr"
+ edo ./configure.sh "${myconf[@]}"
+}
+
+src_test() {
+ # This is to fix a bug encountered on Arch. It is to ensure we don't get
+ # segfaults on `make check` when the error messages change because the error
+ # messages are passed to printf(); they have format specifiers. With these
+ # env vars, the internal error messages are used, instead of the installed
+ # locales, which might be different since the new locale files are not
+ # installed yet. (It is impossible to use uninstalled locales because of the
+ # poor design of POSIX locales.)
+ env LANG=C LC_ALL=C emake check
+}
next reply other threads:[~2023-10-01 7:35 UTC|newest]
Thread overview: 91+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-01 7:34 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-05 23:09 [gentoo-commits] repo/gentoo:master commit in: sci-calculators/bc-gh/ Sam James
2025-04-28 12:36 Arthur Zamarin
2025-04-28 5:11 Sam James
2025-04-28 5:02 Sam James
2025-04-28 4:49 Sam James
2024-09-19 23:54 Eli Schwartz
2024-09-02 5:08 Sam James
2024-08-23 4:10 Eli Schwartz
2024-08-23 4:10 Eli Schwartz
2024-07-08 3:19 Eli Schwartz
2024-02-28 2:32 Ionen Wolkens
2024-02-12 13:05 Sam James
2024-02-12 13:05 Sam James
2024-02-12 8:55 Sam James
2024-02-12 8:55 Sam James
2024-02-12 8:55 Sam James
2024-02-12 8:55 Sam James
2024-02-12 8:55 Sam James
2024-01-10 13:12 Andrew Ammerlaan
2024-01-10 13:12 Andrew Ammerlaan
2023-10-27 8:17 Andrew Ammerlaan
2023-10-01 7:34 Sam James
2023-09-22 6:51 Arthur Zamarin
2023-06-04 3:47 Sam James
2023-06-04 3:47 Sam James
2023-06-04 3:47 Sam James
2023-04-16 7:18 Sam James
2023-04-16 6:56 Sam James
2023-04-16 6:56 Sam James
2023-04-16 6:56 Sam James
2023-04-16 6:56 Sam James
2023-04-16 6:56 Sam James
2023-04-16 6:41 Joonas Niilola
2023-04-16 6:41 Joonas Niilola
2023-03-19 3:22 Sam James
2023-03-10 6:53 Sam James
2023-03-10 6:53 Sam James
2023-02-28 5:34 Sam James
2023-02-19 19:56 Sam James
2023-02-13 3:41 Matt Turner
2023-02-01 7:27 Sam James
2023-01-01 21:10 Sam James
2023-01-01 21:10 Sam James
2022-12-28 0:33 Sam James
2022-12-27 19:53 Sam James
2022-12-27 19:45 Sam James
2022-12-27 13:40 Sam James
2022-12-27 11:31 Sam James
2022-12-18 11:45 James Le Cuirot
2022-12-18 1:50 Yixun Lan
2022-12-16 21:19 Arthur Zamarin
2022-12-16 21:19 Arthur Zamarin
2022-12-16 21:19 Arthur Zamarin
2022-12-16 18:26 Arthur Zamarin
2022-11-19 6:04 Ionen Wolkens
2022-11-19 6:04 Ionen Wolkens
2022-11-18 8:17 Joonas Niilola
2022-06-24 13:04 Andrew Ammerlaan
2022-06-24 13:04 Andrew Ammerlaan
2021-11-28 0:20 Ionen Wolkens
2021-11-10 10:59 Ionen Wolkens
2021-11-10 10:59 Ionen Wolkens
2021-10-19 3:04 Ionen Wolkens
2021-08-10 9:51 Ionen Wolkens
2021-06-02 12:59 Joonas Niilola
2021-06-02 12:59 Joonas Niilola
2021-05-04 13:30 Joonas Niilola
2021-03-19 7:35 Joonas Niilola
2021-03-19 7:35 Joonas Niilola
2021-03-05 16:18 Joonas Niilola
2021-03-04 14:09 Joonas Niilola
2021-03-04 14:09 Joonas Niilola
2021-02-22 14:47 Joonas Niilola
2021-02-10 14:55 Joonas Niilola
2020-12-09 9:42 Joonas Niilola
2020-12-09 9:42 Joonas Niilola
2020-11-03 9:17 Joonas Niilola
2020-10-13 12:06 Joonas Niilola
2020-10-13 12:06 Joonas Niilola
2020-08-21 7:15 Joonas Niilola
2020-08-11 8:35 Sam James
2020-07-20 12:33 Joonas Niilola
2020-05-17 16:42 Joonas Niilola
2020-05-17 16:42 Joonas Niilola
2020-05-05 8:47 Joonas Niilola
2020-04-16 8:11 Joonas Niilola
2020-04-16 8:11 Joonas Niilola
2020-04-14 8:35 Joonas Niilola
2020-02-20 13:27 Joonas Niilola
2019-11-28 16:34 Joonas Niilola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1696145553.d6ee8ce83315f4b95a25cd7e3ea8f43259f8fb10.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox