mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
Merge updates from master
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
DIST bmake-20230909.tar.gz 859801 BLAKE2B 02a44598edf05ebbcb31767b156563bfa10071774a3e7ae565efddc9b1ea6e684558e4ec3cfbc56d7d855cbe8663c43f43bd8d37e0a289c55ec12733e3e4916c SHA512 50622aee8024b3e0385974a8f446a4b5df0ba494b6133ab91ebbe63c408154b112f62c9df8521f4f1beaf28cdd6e7da178c3334337f6b14c8bced532029d8ba5
|
||||
DIST bmake-20240212.tar.gz 856614 BLAKE2B a5f6110e8a5c36f66e7a241aae9cab954fcfef99b2a4f0f77ea978f289f658a5e56949301619f4abe15dbf23eff8d78c7f34b1c2d4baea7875794b45de8ca03f SHA512 f6f5db408262768d551067b9f4c365fdadf7e8702b0e8eb52a86840cc28fbbd0eef023c82cadbe6a7f94794b9392e3c83902a1e18accf68af5fcf391dfeadf16
|
||||
DIST bmake-20240602.tar.gz 868526 BLAKE2B 0c5357dc0adfd8e9b977798cbb3d7d024c3149b4b7ac945bfbfdde4de091b9afafb9dd1f33c673b6e966430e154e5e799deef517022a947fb584092cee3a3bbb SHA512 0965fe8a35fc75fd22ed66800636e3912a6f8ce008794d39870847bf50b039d86cfe0b3b346831ba0b49f4d2d9d0c10f6c6b82e5c5d9387d21ed4614384367df
|
||||
DIST mk-20210330.tar.gz 107380 BLAKE2B 9ac30a117d9ba31635cf8d8d29fdba76f148611f47628403ca8f807081c32509f10498d3c30fd24985e5420af4710fe59fc6315d71f2d0c1cfed93263a06553a SHA512 6acd3ee911442934082f4f877d795b07c5e23022eaa9c0874799d97e92a2f5a663cb45f94b7f9745c49cbbce6b7e755a29e381ccfb9e68a0be1eedbd22fd5d3b
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MK_VER=20210330
|
||||
|
||||
DESCRIPTION="NetBSD's portable make"
|
||||
HOMEPAGE="http://www.crufty.net/help/sjg/bmake.html"
|
||||
SRC_URI="
|
||||
http://void.crufty.net/ftp/pub/sjg/${P}.tar.gz
|
||||
http://void.crufty.net/ftp/pub/sjg/mk-${MK_VER}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
# Skip failing test (sandbox and csh)
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-20210206-tests.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
cd "${WORKDIR}" || die
|
||||
eapply "${FILESDIR}"/${PN}-20210314-mk-fixes.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-mksrc=../mk \
|
||||
--with-default-sys-path="${EPREFIX}"/usr/share/mk/${PN} \
|
||||
--with-machine_arch=${ARCH}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
sh make-bootstrap.sh || die "bootstrap failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd unit-tests || die
|
||||
|
||||
# the 'ternary' test uses ${A} internally, which
|
||||
# conflicts with Gentoo's ${A}, hence unset it for
|
||||
# the tests temporarily.
|
||||
env -u A MAKEFLAGS= \
|
||||
"${S}"/bmake -r -m / TEST_MAKE="${S}"/bmake test || die "tests compilation failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
doman ${PN}.1
|
||||
FORCE_BSD_MK=1 SYS_MK_DIR=. \
|
||||
sh ../mk/install-mk -v -m 644 "${ED}"/usr/share/mk/${PN} \
|
||||
|| die "failed to install mk files"
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MK_VER=20210330
|
||||
|
||||
DESCRIPTION="NetBSD's portable make"
|
||||
HOMEPAGE="http://www.crufty.net/help/sjg/bmake.html"
|
||||
SRC_URI="
|
||||
http://void.crufty.net/ftp/pub/sjg/${P}.tar.gz
|
||||
http://void.crufty.net/ftp/pub/sjg/mk-${MK_VER}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
# Skip failing test (sandbox and csh)
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-20210206-tests.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
cd "${WORKDIR}" || die
|
||||
eapply "${FILESDIR}"/${PN}-20210314-mk-fixes.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-mksrc=../mk \
|
||||
--with-default-sys-path="${EPREFIX}"/usr/share/mk/${PN} \
|
||||
--with-machine_arch=${ARCH}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
sh make-bootstrap.sh || die "bootstrap failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd unit-tests || die
|
||||
|
||||
# the 'ternary' test uses ${A} internally, which
|
||||
# conflicts with Gentoo's ${A}, hence unset it for
|
||||
# the tests temporarily.
|
||||
env -u A MAKEFLAGS= \
|
||||
"${S}"/bmake -r -m / TEST_MAKE="${S}"/bmake test || die "tests compilation failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
doman ${PN}.1
|
||||
FORCE_BSD_MK=1 SYS_MK_DIR=. \
|
||||
sh ../mk/install-mk -v -m 644 "${ED}"/usr/share/mk/${PN} \
|
||||
|| die "failed to install mk files"
|
||||
}
|
||||
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
# Skip failing test (sandbox and csh)
|
||||
PATCHES=(
|
||||
|
||||
@@ -14,3 +14,11 @@ DIST ncdu-2.4-linux-x86.tar.gz 297477 BLAKE2B 2d1b7d4b775bfdfc7c0563d40ecbbd0a6d
|
||||
DIST ncdu-2.4-linux-x86.tar.gz.asc 833 BLAKE2B f13a87ab6ccf98167adfbf98a43e1baad06f6344161ac45911e81ce2bf0637a8b381f22f1bd5ef1ec8aec44e56a4c13a0fceccec613359b44f01044ca39309de SHA512 da3e3b534656fb4d8589937322e2c6cf49227f0ec0ef5d3d00149f60b8c17122b7b026bfcb2a0e0de3893c71cc3adf2f301327782ff28ee94024f584f116c7b2
|
||||
DIST ncdu-2.4-linux-x86_64.tar.gz 286824 BLAKE2B 0a0c8ffed0b0bda6b77013ca348d43e508aaace419476fd9eaeaddaaa0656e803684bb493552f09ff94e6097e2d4ac8a261d7d64d13022976e1041d49e256338 SHA512 a7e026adf351a23457377f9f6524af709022ef4f3a0646cb875a98abf5dd7487222fd79b538debff66a851eb71135743987ffc8729189698e26e1f1c728136ed
|
||||
DIST ncdu-2.4-linux-x86_64.tar.gz.asc 833 BLAKE2B 5501bbeda29ee15df09a50d64720b72c681f5aec89b05a9362b327d0b28cccb2537d5d9382e188e07a0c19e727fdcad5ddc6ce28937468e98125a18c318f6ac2 SHA512 8a70c1a76a3137c3b91b522cb6a703b566b426338cc794c6389693351cb61bb103af8ce49b5eda2f5732df490ed844fe3898499fc11a63478ee18c5e5c26533d
|
||||
DIST ncdu-2.5-linux-aarch64.tar.gz 283085 BLAKE2B 28518e20460db8abbdfdfa6b61b61024b9550f5bf34fcea9682f5598d05cd417ad4b8b78b662e6cc6ad35b45f514cdfa2d35ef7677c50338a40345daf0ce4b57 SHA512 973139d158ad71ee80939aabb1a419668c95dd25f7e5d78ede78afa66bf1fe835e7c736ae1ba5b56fe6e0bde6125b46d6102629492582910947778821912d199
|
||||
DIST ncdu-2.5-linux-aarch64.tar.gz.asc 833 BLAKE2B ef4e246218a81c10aed27829f68a78fc96f9feb7a84dab6f32631ca400b480dc5ef36c185d6afc830537c15297da02ab7b58720576476509ebd554d0a1a338ae SHA512 d9ff6aee538cfbabfddcd59108baaa949e96df722c9e7f8fe81499640041d361b2a7473982cbd7e9a44ea2c5a1394cefd6a0a9bb05733775c0a354459d870ab1
|
||||
DIST ncdu-2.5-linux-arm.tar.gz 278582 BLAKE2B 07ff2c8463ff407c5fcafe65db7d3911215b3dd78ae3e65ee6aef43c57d8eea782eae741cebe83488f9b5b504bc9b8830d6cc586866e3a6fdb10b79c6fcff43b SHA512 7fb2ed31eda1e6e4a7f1749ed341d062aa6f6e4502ccd3e50fcfd5fb2e3f892f201d17d6eca605e281a3f2a6f95938fe0af62750b79bde051917cf40747fc374
|
||||
DIST ncdu-2.5-linux-arm.tar.gz.asc 833 BLAKE2B d2353572707b4a54053a0a2cc9a606b90d0d91bd42a12677ac9028e1ff64c41ec812056e734e34ff38ab8aaa5d2120b7aee1d8b14d6a3c1a3031dbfeab7dbf4b SHA512 d017e6f4a3546dad5b08ae3f9c8ff9470fa337955705f19175730415abd6f3032eb201f0a5e8876cde8b363259311524082e3ed6c652e9e5c2789d5eb560b3c8
|
||||
DIST ncdu-2.5-linux-x86.tar.gz 299610 BLAKE2B 0f644a185de2bc12a7714dec5f5269dad12f47a8e42399b7f5c579913312e5dc5060e7a12ada4ffd345367661baeea5fea50dbba381a1ee3f36d1048bba5f085 SHA512 88d7b8f42a80ddaa3faa6722c9d78669894b7e768e158ce39576e42d6a926912cc2e0f85c1dff1eeb1471ea4bc4fea69d7aa70b40e22782156c5ef28f59f8d28
|
||||
DIST ncdu-2.5-linux-x86.tar.gz.asc 833 BLAKE2B 907beb66a768d9639445539f98069b172fdd0c462b2eeb8872bd8c33bc9607a1cae9ccbb542d33717649e73d413f12a8792835cb89f3e7fdf534a2f69d75cbc8 SHA512 508cc5893cb8b1bd7138dbffe91933f007ecb5ac601c5a08806f5c55f541d0bc89111fd7091d1b9b1ebbc7978ff9d7f896d80e2c19e8e28d8973db3bd3b6ad40
|
||||
DIST ncdu-2.5-linux-x86_64.tar.gz 286301 BLAKE2B 92f7f6bdfa3838d657f53e14bb58be92e7b7aa2147f2bdd38fc9ac417bd0ffa14021eae587f0ba22c7277315b4251ce53fb78f8f7dbd1dad42d1805d0babe60e SHA512 2c48dd1ceb34de54cf64fcdabd81fea86a113c7914be2d2a17c9242ddbeffab69bf6ae9a51e1dd82f87c408f1cd61f4b1b32c960f4ab274db6c7fafaaa262e86
|
||||
DIST ncdu-2.5-linux-x86_64.tar.gz.asc 833 BLAKE2B 44becd2cef14a4b5e0359810c2d9f867afe282431e203db2f88aa3b21cc703174651cfe23e1f6077de779edb980cc7356a099ce926a4f029049d165dc9311640 SHA512 14636902d8475772d6ed3e3d194ef23a5613fe0bcb43a39a10e5598d392251fcf69b6711904f36fbc5a9c13a6953d7c4bcc02e0fdee2c93b2ef7e6c1597fab60
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit verify-sig
|
||||
|
||||
DESCRIPTION="NCurses Disk Usage"
|
||||
HOMEPAGE="https://dev.yorhel.nl/ncdu"
|
||||
SRC_URI="
|
||||
amd64? ( https://dev.yorhel.nl/download/ncdu-${PV}-linux-x86_64.tar.gz )
|
||||
arm? ( https://dev.yorhel.nl/download/ncdu-${PV}-linux-arm.tar.gz )
|
||||
arm64? ( https://dev.yorhel.nl/download/ncdu-${PV}-linux-aarch64.tar.gz )
|
||||
x86? ( https://dev.yorhel.nl/download/ncdu-${PV}-linux-x86.tar.gz )
|
||||
verify-sig? (
|
||||
amd64? ( https://dev.yorhel.nl/download/ncdu-${PV}-linux-x86_64.tar.gz.asc )
|
||||
arm? ( https://dev.yorhel.nl/download/ncdu-${PV}-linux-arm.tar.gz.asc )
|
||||
arm64? ( https://dev.yorhel.nl/download/ncdu-${PV}-linux-aarch64.tar.gz.asc )
|
||||
x86? ( https://dev.yorhel.nl/download/ncdu-${PV}-linux-x86.tar.gz.asc )
|
||||
)
|
||||
"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86"
|
||||
|
||||
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-yorhel )"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/yoranheling.asc
|
||||
|
||||
QA_PREBUILT="usr/bin/ncdu-bin"
|
||||
|
||||
src_install() {
|
||||
newbin ncdu ncdu-bin
|
||||
}
|
||||
@@ -6,3 +6,5 @@ DIST ncdu-2.3.tar.gz 56608 BLAKE2B 9fd73fba83c57195f8ffbad5b954140a776d1cd1d7b3e
|
||||
DIST ncdu-2.3.tar.gz.asc 833 BLAKE2B fd5b6b4b6e14b8bf66f5053c637598c3a0a9ad16d29c20805d62418fb69a22fa1155c8591dac35514d088c57853043c7d6c8b94abdff793a3f7b0a53cb41fd65 SHA512 698d8f1c0a7e0267fdfcfc7823803012ab7faae6eee75af406ecc9a73244463521de851c3f2b116ae7f6d7e567ea17a7ef6aae75e135a8efbb02333525455b20
|
||||
DIST ncdu-2.4.tar.gz 51648 BLAKE2B cbe2db51b86a6ac624d3a0300bb41337ff0c8ce63165dc0f471872c0fa646406bf190d4f0605130d55d981c0a694a6bbbb9092c8857c45f362dd4bf0016b0617 SHA512 0bbc4400d05831528415c7e22d1e4b5c43cb8682c2bc35439e150763bcbc159664fee887d0fce89d28fb4199378972ffeb54c694e27b5f58d2ddaef890b055a7
|
||||
DIST ncdu-2.4.tar.gz.asc 833 BLAKE2B a0a0f3c8652242c1b3a7bab2e8eb03901bd0d8a0ecb2079ee914a08aeacda7e7c706eccef70f43a90d7190f32a3bc0eea2e3d46a9b3c29621a9e952328271cb7 SHA512 8eb6be85e7e33b2fcda3ce4c34bc4ff4a0c438b70a8d40ed91fababc728b77f0a83e0e07d70a7528821c774262a6d30cbbf73c56624d61ce3f4e93f27f1d5c31
|
||||
DIST ncdu-2.5.tar.gz 56019 BLAKE2B c10fb19f87c3d26334038ee96d857e547f9f6881518a675d9777a6c46cf456748861d84df190c14d6d2582f5ad3998ecdf9d00f0969c996221c0d1d9787570a3 SHA512 f4d499a3ab98a56667c75554c77951e4a42f5acdc1353875c108b0da469665777564405b8fcea5a731de473afacfda9f2c8701ba0ba989de1260119c64d7a9f8
|
||||
DIST ncdu-2.5.tar.gz.asc 833 BLAKE2B 86babaf8720898a5bd83a2cc290deb2f0a8041087b9f0afddd2306766b82877bbf51f45ac3622761f231359b2e5f60b8d6c5479963aaf7a6abdf67d24fb18496 SHA512 a28751371f7e7a033379fb5f5dc885c69e716f8b6654b8ee9e5eb023a22b67ca99e3ee813ddc2e335d6e8db9bd5a9a19359910a1b8aad13132f7a8bed1d67d78
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit verify-sig edo
|
||||
|
||||
DESCRIPTION="NCurses Disk Usage"
|
||||
HOMEPAGE="https://dev.yorhel.nl/ncdu"
|
||||
SRC_URI="
|
||||
https://dev.yorhel.nl/download/${P}.tar.gz
|
||||
verify-sig? ( https://dev.yorhel.nl/download/${P}.tar.gz.asc )
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
EZIG_MIN="0.12"
|
||||
EZIG_MAX_EXCLUSIVE="0.14"
|
||||
|
||||
DEPEND="sys-libs/ncurses:=[unicode(+)]"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
|| ( dev-lang/zig:${EZIG_MIN} dev-lang/zig-bin:${EZIG_MIN} )
|
||||
virtual/pkgconfig
|
||||
verify-sig? ( sec-keys/openpgp-keys-yorhel )
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/yoranheling.asc
|
||||
|
||||
# see https://github.com/ziglang/zig/issues/3382
|
||||
# For now, Zig doesn't support CFLAGS/LDFLAGS/etc.
|
||||
QA_FLAGS_IGNORED="usr/bin/ncdu"
|
||||
|
||||
# Many thanks to Florian Schmaus (Flowdalic)!
|
||||
# Adapted from https://github.com/gentoo/gentoo/pull/28986
|
||||
# Set the EZIG environment variable.
|
||||
zig-set_EZIG() {
|
||||
[[ -n ${EZIG} ]] && return
|
||||
|
||||
if [[ -n ${EZIG_OVERWRITE} ]]; then
|
||||
export EZIG="${EZIG_OVERWRITE}"
|
||||
return
|
||||
fi
|
||||
|
||||
local candidate selected selected_ver ver
|
||||
|
||||
for candidate in "${BROOT}"/usr/bin/zig-*; do
|
||||
if [[ ! -L ${candidate} || ${candidate} != */zig?(-bin)-+([0-9.]) ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
ver=${candidate##*-}
|
||||
|
||||
if [[ -n ${EZIG_EXACT_VER} ]]; then
|
||||
ver_test "${ver}" -ne "${EZIG_EXACT_VER}" && continue
|
||||
|
||||
selected="${candidate}"
|
||||
selected_ver="${ver}"
|
||||
break
|
||||
fi
|
||||
|
||||
if [[ -n ${EZIG_MIN} ]] \
|
||||
&& ver_test "${ver}" -lt "${EZIG_MIN}"; then
|
||||
# Candidate does not satisfy EZIG_MIN condition.
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ -n ${EZIG_MAX_EXCLUSIVE} ]] \
|
||||
&& ver_test "${ver}" -ge "${EZIG_MAX_EXCLUSIVE}"; then
|
||||
# Candidate does not satisfy EZIG_MAX_EXCLUSIVE condition.
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ -n ${selected_ver} ]] \
|
||||
&& ver_test "${selected_ver}" -gt "${ver}"; then
|
||||
# Candidate is older than the currently selected candidate.
|
||||
continue
|
||||
fi
|
||||
|
||||
selected="${candidate}"
|
||||
selected_ver="${ver}"
|
||||
done
|
||||
|
||||
if [[ -z ${selected} ]]; then
|
||||
die "Could not find (suitable) zig installation in ${BROOT}/usr/bin"
|
||||
fi
|
||||
|
||||
export EZIG="${selected}"
|
||||
export EZIG_VER="${selected_ver}"
|
||||
}
|
||||
|
||||
# Invoke zig with the optionally provided arguments.
|
||||
ezig() {
|
||||
zig-set_EZIG
|
||||
|
||||
# Unfortunately, we cannot add more args here, since syntax is different
|
||||
# for every subcommands. Yes, even target/cpu :( f.i. :
|
||||
# -target/-mcpu for zig build-exe vs -Dtarget/-Dcpu for zig build-
|
||||
# -OReleaseSafe for zig build-exe vs -DReleaseSafe for zig build
|
||||
# (or even none, if hardcoded by upstream so choice is -Drelease=true/false)
|
||||
# Ofc we can patch this, but still...
|
||||
|
||||
edo "${EZIG}" "${@}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz{,.asc}
|
||||
fi
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
zig-set_EZIG
|
||||
export ZIG=${EZIG}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ezig build test -Doptimize=ReleaseFast
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake PREFIX="${ED}"/usr install
|
||||
|
||||
dodoc README.md ChangeLog
|
||||
}
|
||||
Reference in New Issue
Block a user