diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-24 11:22:25 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-24 11:22:25 +0100 |
commit | 6a851e4f7c23c15c4b7853e6c34b0a0b9bc68482 (patch) | |
tree | 027421c2b8ddbc8c802c488ba086753da35fcfad /sys-apps/toybox/toybox-0.8.10.ebuild | |
parent | fcf991edcc1b310199e4e829a3706bc1c267d1db (diff) |
gentoo auto-resync : 24:09:2023 - 11:22:25
Diffstat (limited to 'sys-apps/toybox/toybox-0.8.10.ebuild')
-rw-r--r-- | sys-apps/toybox/toybox-0.8.10.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sys-apps/toybox/toybox-0.8.10.ebuild b/sys-apps/toybox/toybox-0.8.10.ebuild new file mode 100644 index 000000000000..35f861185918 --- /dev/null +++ b/sys-apps/toybox/toybox-0.8.10.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multiprocessing savedconfig toolchain-funcs + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/landley/toybox.git" +else + SRC_URI="https://landley.net/code/toybox/downloads/${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +DESCRIPTION="Common linux commands in a multicall binary" +HOMEPAGE="https://landley.net/code/toybox/" + +LICENSE="0BSD" +SLOT="0" + +DEPEND="virtual/libcrypt:=" +RDEPEND="${DEPEND}" + +src_prepare() { + default + restore_config .config +} + +src_configure() { + tc-export CC STRIP + export HOSTCC="$(tc-getBUILD_CC)" + # Respect CFLAGS + export OPTIMIZE="${CFLAGS}" + + if [[ -f .config ]]; then + yes "" | emake -j1 oldconfig > /dev/null + return 0 + else + einfo "Could not locate user configfile, so we will save a default one" + emake -j1 defconfig > /dev/null + fi +} + +src_compile() { + unset CROSS_COMPILE + export CPUS=$(makeopts_jobs) + emake V=1 NOSTRIP=1 +} + +src_test() { + emake V=1 tests +} + +src_install() { + save_config .config + dobin toybox +} |