public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/bc/
Date: Mon, 06 Jan 2025 04:16:35 +0000 (UTC)	[thread overview]
Message-ID: <1736136950.0cae027858ed17464813eebba4756efd795e05fc.sam@gentoo> (raw)

commit:     0cae027858ed17464813eebba4756efd795e05fc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  6 03:45:57 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan  6 04:15:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cae0278

sys-devel/bc: add 1.08.1

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/bc/Manifest         |  1 +
 sys-devel/bc/bc-1.08.1.ebuild | 77 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/sys-devel/bc/Manifest b/sys-devel/bc/Manifest
index 6a037663f28f..89a797708e32 100644
--- a/sys-devel/bc/Manifest
+++ b/sys-devel/bc/Manifest
@@ -1,2 +1,3 @@
 DIST bc-1.07.1.tar.gz 419850 BLAKE2B dcedc193be5521aa0fa3a19746233ed65bc1fe8ef12e15155341706de6fbeecb6dd7ee4ab11e2d4b3aca2ae7097cce89e389b3573493bbc893e00b4ed3239594 SHA512 02126d0db6b6ed06d56cfc292d6f5475ff1e574779d7e69c7809bbb1e13f946f57ea07da2a7666baa092507a951a822044b0970075f75eefe65a5c1999b75d34
 DIST bc-1.08.0.tar.gz 452231 BLAKE2B f42af858507e72171caf0786ca7b72506d79c93a73aa1816a6471798f63d831c14f66cab6fd5af624a21a09b9930772ebf2e791c06f043b45e8b5893134481c7 SHA512 6ce5b510ad7aa8b489d0c3f060c34cf738da33fde4dda8398d9f75fabadef16d9b423ae8752881eff395b10088cd9d9fb16868c578b0950008f1ee08d12be197
+DIST bc-1.08.1.tar.gz 458434 BLAKE2B 51d1bac17f31bb7dbb044c28752cccfe59dd5bcb78a2c3bfa66a345577ea3aee37fef8d7efae83a57e41ae77d7317008f3682dfbc3165c76888770636deead01 SHA512 256c94833ead8029122d3ba6475cf4ff030c208a5bd3e2e9c5c8888467215e0fa9ab34e4226791bbd6e47498c0c61f0dc6399eecb0c8cf6a43453e84911c1847

diff --git a/sys-devel/bc/bc-1.08.1.ebuild b/sys-devel/bc/bc-1.08.1.ebuild
new file mode 100644
index 000000000000..0a08fa03bab1
--- /dev/null
+++ b/sys-devel/bc/bc-1.08.1.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
+}


             reply	other threads:[~2025-01-06  4:16 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-06  4:16 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-27  2:42 [gentoo-commits] repo/gentoo:master commit in: sys-devel/bc/ Sam James
2025-02-23 14:21 Arthur Zamarin
2025-02-23 12:22 Jakov Smolić
2025-02-23 12:22 Jakov Smolić
2025-02-23  5:42 Sam James
2025-02-23  5:21 Sam James
2025-02-23  5:16 Sam James
2025-02-23  5:16 Sam James
2025-01-03  1:11 Sam James
2023-05-30 13:55 Fabian Groffen
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-02 22:34 Sam James
2022-12-02 21:30 Sam James
2022-11-04  8:16 Agostino Sarubbo
2022-11-03 19:13 Sam James
2022-11-03 19:11 Arthur Zamarin
2022-09-09  8:23 Mike Frysinger
2022-09-09  8:23 Mike Frysinger
2022-07-28  6:40 Sam James
2022-06-19 18:50 David Seifert
2022-06-19 18:50 David Seifert
2021-04-21 19:02 Sam James
2021-02-26 16:11 Sam James
2021-01-06 15:32 Fabian Groffen
2020-12-27 18:18 Fabian Groffen
2020-08-23  8:10 Sergei Trofimovich
2020-08-19  8:31 Sergei Trofimovich
2020-08-17 12:03 Agostino Sarubbo
2020-08-17 10:01 Agostino Sarubbo
2020-08-17  9:59 Agostino Sarubbo
2020-08-17  9:58 Agostino Sarubbo
2020-08-17  9:57 Agostino Sarubbo
2020-01-17 16:02 Mike Gilbert
2019-05-05 11:04 Mikle Kolyada
2018-01-18 21:23 Mikle Kolyada
2018-01-18 21:20 Mikle Kolyada
2018-01-10  6:19 Markus Meier
2018-01-08 20:12 Sergei Trofimovich
2018-01-06 22:30 Sergei Trofimovich
2018-01-06 21:49 Sergei Trofimovich
2018-01-04 22:11 Sergei Trofimovich
2018-01-04 20:10 Lars Wendler
2018-01-04 13:00 Lars Wendler
2017-12-01 18:25 Fabian Groffen
2017-10-28 13:10 Thomas Deutschmann
2017-10-28 13:10 Thomas Deutschmann
2017-04-10  9:06 Lars Wendler
2017-04-10  7:58 Lars Wendler
2017-04-10  7:58 Lars Wendler
2017-04-10  7:58 Lars Wendler
2017-04-10  7:55 Lars Wendler
2017-03-21 15:46 Michael Haubenwallner
2015-12-31 17:07 Mike Frysinger

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=1736136950.0cae027858ed17464813eebba4756efd795e05fc.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