1 |
commit: d64a9cb4fc310e175a1c2e11a7cd255532c5440f |
2 |
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 1 09:19:03 2022 +0000 |
4 |
Commit: 罗百科 <patrick <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 1 09:19:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d64a9cb4 |
7 |
|
8 |
sys-apps/toybox: Bump to 0.8.6 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org> |
12 |
|
13 |
sys-apps/toybox/Manifest | 1 + |
14 |
sys-apps/toybox/toybox-0.8.6.ebuild | 58 +++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/toybox/Manifest b/sys-apps/toybox/Manifest |
18 |
index 7061eb799bdb..05dc9f25f79c 100644 |
19 |
--- a/sys-apps/toybox/Manifest |
20 |
+++ b/sys-apps/toybox/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST toybox-0.8.4.tar.gz 1133770 BLAKE2B adc695c2ddd592b9de7137db623621410afaa4cdf2dfde647f24f25d38de99ad38907b5e5aa2ded0d6b2eceafc71763a25e04abc33e8f057934fceed6df22e69 SHA512 507604f96ee89094ca7b4b218985659a8de41578d1a4f267c7282baf11306419e94bb4bfcb06835dff3e46f974a0bb49f89e4c427c69c590738a4a37b62969b8 |
23 |
DIST toybox-0.8.5.tar.gz 2378469 BLAKE2B 9054c07fd8bd477a4995b14fcea091a1602b039216ec9acb4f60e39eb10bba88924c19084c7e28d4c0b7cd72b0e0ab46a892cd427909e073dfad3e2f7416d600 SHA512 deb3743a10278ba236e95a1f3995555c745c2909381d2692a42920615c002a5cc6f9cccffee84ec2fcf1188d8f8c0a11e2b7f6a7798f0b7f5d33a0c1c3149237 |
24 |
+DIST toybox-0.8.6.tar.gz 3458765 BLAKE2B 2ff0b898758660c242dd9fd11c5911840ce67122214bed6e3ba8af3dc2b3dbf3c0c467863ca69392e473db232130ddba9cac2d888c20990e2e02181be76afe25 SHA512 2d8f9cc3a6bd7ee5bd4bce77399916aa90cd8acb90448f4e1b79c605c7f854c19016f5eb3704f112855c8347e69f0f4dc42f9755dd2ec975ac7799d00bc597be |
25 |
|
26 |
diff --git a/sys-apps/toybox/toybox-0.8.6.ebuild b/sys-apps/toybox/toybox-0.8.6.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..6bd1e37d8b83 |
29 |
--- /dev/null |
30 |
+++ b/sys-apps/toybox/toybox-0.8.6.ebuild |
31 |
@@ -0,0 +1,58 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit multiprocessing savedconfig toolchain-funcs |
38 |
+ |
39 |
+if [[ ${PV} == 9999 ]]; then |
40 |
+ inherit git-r3 |
41 |
+ EGIT_REPO_URI="https://github.com/landley/toybox.git" |
42 |
+else |
43 |
+ SRC_URI="https://landley.net/code/toybox/downloads/${P}.tar.gz" |
44 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
45 |
+fi |
46 |
+ |
47 |
+DESCRIPTION="Common linux commands in a multicall binary" |
48 |
+HOMEPAGE="https://landley.net/code/toybox/" |
49 |
+ |
50 |
+LICENSE="0BSD" |
51 |
+SLOT="0" |
52 |
+ |
53 |
+DEPEND="virtual/libcrypt:=" |
54 |
+RDEPEND="${DEPEND}" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ restore_config .config |
59 |
+} |
60 |
+ |
61 |
+src_configure() { |
62 |
+ tc-export CC STRIP |
63 |
+ export HOSTCC="$(tc-getBUILD_CC)" |
64 |
+ # Respect CFLAGS |
65 |
+ export OPTIMIZE="${CFLAGS}" |
66 |
+ |
67 |
+ if [[ -f .config ]]; then |
68 |
+ yes "" | emake -j1 oldconfig > /dev/null |
69 |
+ return 0 |
70 |
+ else |
71 |
+ einfo "Could not locate user configfile, so we will save a default one" |
72 |
+ emake -j1 defconfig > /dev/null |
73 |
+ fi |
74 |
+} |
75 |
+ |
76 |
+src_compile() { |
77 |
+ unset CROSS_COMPILE |
78 |
+ export CPUS=$(makeopts_jobs) |
79 |
+ emake V=1 |
80 |
+} |
81 |
+ |
82 |
+src_test() { |
83 |
+ emake test |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ save_config .config |
88 |
+ newbin generated/unstripped/toybox toybox |
89 |
+} |