From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1024F158451 for ; Wed, 10 Jan 2024 13:13:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BCEAE2AA6; Wed, 10 Jan 2024 13:12:21 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 690DEE2AA5 for ; Wed, 10 Jan 2024 13:12:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 78ADF3431F3 for ; Wed, 10 Jan 2024 13:12:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 19C3B13A0 for ; Wed, 10 Jan 2024 13:12:19 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1704892245.a24093edbb0ab8e7749bafffbeb93b3997033396.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-calculators/bc-gh/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-calculators/bc-gh/Manifest sci-calculators/bc-gh/bc-gh-6.7.5.ebuild X-VCS-Directories: sci-calculators/bc-gh/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: a24093edbb0ab8e7749bafffbeb93b3997033396 X-VCS-Branch: master Date: Wed, 10 Jan 2024 13:12:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 232d2f61-f51f-4425-b8f6-7182bca03ecb X-Archives-Hash: 3e46ca762e01d1bf48717b443dd095fe commit: a24093edbb0ab8e7749bafffbeb93b3997033396 Author: Gavin D. Howard gavinhoward com> AuthorDate: Tue Dec 5 02:37:37 2023 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Wed Jan 10 13:10:45 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a24093ed sci-calculators/bc-gh: add 6.7.5 Signed-off-by: Gavin D. Howard gavinhoward.com> Signed-off-by: Andrew Ammerlaan gentoo.org> sci-calculators/bc-gh/Manifest | 1 + sci-calculators/bc-gh/bc-gh-6.7.5.ebuild | 77 ++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/sci-calculators/bc-gh/Manifest b/sci-calculators/bc-gh/Manifest index 02a89289eb80..16119980a873 100644 --- a/sci-calculators/bc-gh/Manifest +++ b/sci-calculators/bc-gh/Manifest @@ -1,3 +1,4 @@ DIST bc-6.5.0.tar.xz 461380 BLAKE2B e4aa633162d03fc5723e967ba81f985ab1b16e47b3c9a3ca1c32e9a717db682ce88cc6ba453d5e9b09539dcb8ddbb258b7b7dbdd2e27279355e3c35028d56130 SHA512 1cb03038d828a0b10734c29931777add8b22f194c507b8ff538ec1aa52a2a97a4ac2733d72cdb0710fdc6937807074e929f7918c56aaf5be8fbe908ea7c5a401 DIST bc-6.7.0.tar.xz 466672 BLAKE2B 65e72095a1282d0861ad76b18aed2bf96bb3e92b2e9ec90cffce00ad70219071d6203e80b251dbcd13a7908a4219fe16b7120e29ac6924794ae1c217a3c3ca46 SHA512 a4b8c0b0ba8a214e2fdd271f5090d2977c8ee3053dc52d28cbd031a4a935f0e5d9c7be8df8e1cf106ac68c18faf136917a241f5e89597e271bf127df3d6d3f9f DIST bc-6.7.2.tar.xz 466432 BLAKE2B b0159a3171c2b21eb07832ed70e90a9d692f98a15bc1f3ef3aea502acf9bd1dcd12fba6f276b4c725a4bbff09fa5a3513d1f457f485808359e5b7774bd5afe3a SHA512 8614277acd6b0b923a37fd84a22d868b33a44fcfdcc05e5e7a1637b7fd3c03e80bb9f578db9799c1c6d74a30c5c26bf53bd8f2328d7cb7f16f9e105ca98ff8a3 +DIST bc-6.7.5.tar.xz 468572 BLAKE2B 3942cfbbc2b8a307bc24b9f7c3e037bce374bd17332b236a8c76ccacef1177e36669b7f61944a5c5791b0a436dec171991cfc821526865a816fba91e65aa1f04 SHA512 5f689fd20801ea7ede725ae5dc4e8744bdf2d72424bffef99c53193a950f4bd83b6eb4c5a07556576d0b3f5b6cd7f9fc7cbcb41d27891f488bb2e97a186f76a4 diff --git a/sci-calculators/bc-gh/bc-gh-6.7.5.ebuild b/sci-calculators/bc-gh/bc-gh-6.7.5.ebuild new file mode 100644 index 000000000000..5a1b0d786bf9 --- /dev/null +++ b/sci-calculators/bc-gh/bc-gh-6.7.5.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 +}