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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B037D15812D for ; Fri, 03 Jan 2025 01:11:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2E5CE083D; Fri, 03 Jan 2025 01:11:39 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8FB11E083D for ; Fri, 03 Jan 2025 01:11:39 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B985333BE12 for ; Fri, 03 Jan 2025 01:11:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C94E710C7 for ; Fri, 03 Jan 2025 01:11:36 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1735866492.00c936aa146715d4ac25c7c9ce735b82ec434e53.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/bc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/bc/Manifest sys-devel/bc/bc-1.08.0.ebuild X-VCS-Directories: sys-devel/bc/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 00c936aa146715d4ac25c7c9ce735b82ec434e53 X-VCS-Branch: master Date: Fri, 03 Jan 2025 01:11:36 +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: 2e902e97-42fb-4107-84ea-5d5f9c0318d1 X-Archives-Hash: e151892b867838cd33d6ff3738e8733b commit: 00c936aa146715d4ac25c7c9ce735b82ec434e53 Author: Sam James gentoo org> AuthorDate: Fri Jan 3 01:08:12 2025 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jan 3 01:08:12 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00c936aa sys-devel/bc: add 1.08.0 * Drop the cross-compile patch as upstream mention changes there and the surrounding code has certainly changed and looks better, but I've not (yet) verified cross is OK. * Drop the ed->sed patch, fixed upstream. * Keep append-lfs-flags as it seems this didn't land upstream despite the comment. Signed-off-by: Sam James gentoo.org> sys-devel/bc/Manifest | 1 + sys-devel/bc/bc-1.08.0.ebuild | 77 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/sys-devel/bc/Manifest b/sys-devel/bc/Manifest index fed58953c5bc..6a037663f28f 100644 --- a/sys-devel/bc/Manifest +++ b/sys-devel/bc/Manifest @@ -1 +1,2 @@ DIST bc-1.07.1.tar.gz 419850 BLAKE2B dcedc193be5521aa0fa3a19746233ed65bc1fe8ef12e15155341706de6fbeecb6dd7ee4ab11e2d4b3aca2ae7097cce89e389b3573493bbc893e00b4ed3239594 SHA512 02126d0db6b6ed06d56cfc292d6f5475ff1e574779d7e69c7809bbb1e13f946f57ea07da2a7666baa092507a951a822044b0970075f75eefe65a5c1999b75d34 +DIST bc-1.08.0.tar.gz 452231 BLAKE2B f42af858507e72171caf0786ca7b72506d79c93a73aa1816a6471798f63d831c14f66cab6fd5af624a21a09b9930772ebf2e791c06f043b45e8b5893134481c7 SHA512 6ce5b510ad7aa8b489d0c3f060c34cf738da33fde4dda8398d9f75fabadef16d9b423ae8752881eff395b10088cd9d9fb16868c578b0950008f1ee08d12be197 diff --git a/sys-devel/bc/bc-1.08.0.ebuild b/sys-devel/bc/bc-1.08.0.ebuild new file mode 100644 index 000000000000..0a08fa03bab1 --- /dev/null +++ b/sys-devel/bc/bc-1.08.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Handy console-based calculator utility" +HOMEPAGE="https://www.gnu.org/software/bc/bc.html" +SRC_URI="mirror://gnu/bc/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="libedit readline static" + +RDEPEND=" + !readline? ( libedit? ( dev-libs/libedit:= ) ) + readline? ( + sys-libs/readline:= + sys-libs/ncurses:= + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/flex + app-alternatives/yacc +" +PDEPEND="app-alternatives/bc" + +src_configure() { + local myconf=( + $(use_with readline) + --program-suffix=-reference + ) + + if use readline ; then + myconf+=( --without-libedit ) + else + myconf+=( $(use_with libedit) ) + fi + + use static && append-ldflags -static + + # The libedit code isn't compatible currently. #830101 + use libedit && append-flags -fcommon + + # AC_SYS_LARGEFILE in configure.ac would handle this, but we don't patch + # autotools otherwise currently. This change has been sent upstream, but + # who knows when they'll make another release. + append-lfs-flags + + # configure dies with other lexes: + # "configure: error: readline works only with flex." + export LEX=flex + + econf "${myconf[@]}" + + # Do not regen docs -- configure produces a small fragment that includes + # the version info which causes all pages to regen (newer file). Bug #554774 + touch -r doc doc/* || die +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +pkg_postinst() { + # ensure to preserve the symlinks before app-alternatives/bc + # is installed + local x + for x in bc dc ; do + if [[ ! -h ${EROOT}/usr/bin/${x} ]] ; then + ln -s "${x}-reference" "${EROOT}/usr/bin/${x}" || die + fi + done +}