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