mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-01 18:42:22 +02:00
sys-devel/bc: Sync with Gentoo
It's from Gentoo commit 4056c750051d7302b3fc0f2e9c352360f60fcd0a.
This commit is contained in:
parent
2f050ef133
commit
2be8c38030
@ -1,7 +1,7 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI="6"
|
EAPI=7
|
||||||
|
|
||||||
inherit flag-o-matic toolchain-funcs
|
inherit flag-o-matic toolchain-funcs
|
||||||
|
|
||||||
@ -9,33 +9,29 @@ DESCRIPTION="Handy console-based calculator utility"
|
|||||||
HOMEPAGE="https://www.gnu.org/software/bc/bc.html"
|
HOMEPAGE="https://www.gnu.org/software/bc/bc.html"
|
||||||
SRC_URI="mirror://gnu/bc/${P}.tar.gz"
|
SRC_URI="mirror://gnu/bc/${P}.tar.gz"
|
||||||
|
|
||||||
LICENSE="GPL-2 LGPL-2.1"
|
LICENSE="GPL-3+"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
IUSE="libedit readline static"
|
IUSE="libedit readline static"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
!readline? ( libedit? ( dev-libs/libedit:= ) )
|
!readline? ( libedit? ( dev-libs/libedit:= ) )
|
||||||
readline? (
|
readline? (
|
||||||
>=sys-libs/readline-4.1:0=
|
sys-libs/readline:=
|
||||||
>=sys-libs/ncurses-5.2:=
|
sys-libs/ncurses:=
|
||||||
)
|
)"
|
||||||
"
|
DEPEND="${RDEPEND}"
|
||||||
DEPEND="
|
BDEPEND="
|
||||||
${RDEPEND}
|
|
||||||
sys-devel/flex
|
sys-devel/flex
|
||||||
virtual/yacc
|
virtual/yacc"
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
PATCHES=( "${FILESDIR}"/${PN}-1.07.1-no-ed-its-sed.patch )
|
||||||
"${FILESDIR}/${PN}-1.07.1-no-ed-its-sed.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
|
|
||||||
# Avoid bad build tool usage when cross-compiling. #627126
|
# Avoid bad build tool usage when cross-compiling. Bug #627126
|
||||||
tc-is-cross-compiler && eapply "${FILESDIR}/${PN}-1.07.1-use-system-bc.patch"
|
tc-is-cross-compiler && eapply "${FILESDIR}"/${PN}-1.07.1-use-system-bc.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
@ -52,8 +48,8 @@ src_configure() {
|
|||||||
econf "${myconf[@]}"
|
econf "${myconf[@]}"
|
||||||
|
|
||||||
# Do not regen docs -- configure produces a small fragment that includes
|
# Do not regen docs -- configure produces a small fragment that includes
|
||||||
# the version info which causes all pages to regen (newer file). #554774
|
# the version info which causes all pages to regen (newer file). Bug #554774
|
||||||
touch -r doc doc/*
|
touch -r doc doc/* || die
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
Loading…
x
Reference in New Issue
Block a user