Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/toybox/
Date: Sat, 16 Feb 2019 09:30:28
Message-Id: 1550309368.4ff445f3edb18c67d30edbd48169069ed8dfff42.patrick@gentoo
1 commit: 4ff445f3edb18c67d30edbd48169069ed8dfff42
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 16 09:29:28 2019 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 16 09:29:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ff445f3
7
8 sys-apps/toybox: Bump
9
10 Package-Manager: Portage-2.3.60, Repoman-2.3.12
11 X-Autogenerated-SOB: Yes
12 Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>
13
14 sys-apps/toybox/Manifest | 1 +
15 sys-apps/toybox/toybox-0.8.0.ebuild | 57 +++++++++++++++++++++++++++++++++++++
16 2 files changed, 58 insertions(+)
17
18 diff --git a/sys-apps/toybox/Manifest b/sys-apps/toybox/Manifest
19 index 02052b026af..ae67edfc514 100644
20 --- a/sys-apps/toybox/Manifest
21 +++ b/sys-apps/toybox/Manifest
22 @@ -2,3 +2,4 @@ DIST toybox-0.7.5.tar.gz 818815 BLAKE2B 0d91eb07b9c2e64c611be24eb09aac7ffc26d65f
23 DIST toybox-0.7.6.tar.gz 834351 BLAKE2B 7c6737a8b16f77fd7a5e389be17ef8eb41d28718e46231ec1aa48af0a0ec1cbdc1c0b74670c3f79f58a5b0547f47aa6e5ccbaccc5451b12a80e1c566ee49a30d SHA512 1ed06114f5feb46e642bfeee517366a16c0a5d76562841a3cdf6b003bb330be10d4ac5009c7cf845eb5ea99bb8ae8b4291c413bbd45fd89c2ae3e4a69c1455bb
24 DIST toybox-0.7.7.tar.gz 843039 BLAKE2B fb4ef2ad483acd2b42905e765f7287b41fa8b1822796579c4a57a8ad3f5a3cdb8bbcd0e6790eddc8daf2ec41c50be478c7d19623d1c8db2e7b1d4db8b52fbbc6 SHA512 89369662eaf48bb52909f49932b98395eed6e672f6a37387819a02ba9c33f6b737686782ca3bf0ed0f9b60e1e2fff88ad1ebb678999582986acfec371d100827
25 DIST toybox-0.7.8.tar.gz 903344 BLAKE2B e223dabd7b44a050bb884d595235ea469524ffbcf3b29ee8a106354dff3250b5e9c7922cb8b499ff343e170735e29b321b9c00c370c67a1d20c8a5e44ab2bdd2 SHA512 125e4b22deda1e707a62c49b40bf7ac8a36122af27fd70ed45c651a61b5607765cf1c9b3b1c3103c0a5b5f4e7760a50e87ac62bfc89aa870a22ae8ad0aacad65
26 +DIST toybox-0.8.0.tar.gz 975002 BLAKE2B e137c3616d2affaf8b6f234cab49190b98540fe8f954244172f9ca80c749069f85ff8addd94e1018d3680f1a307df54671ee9b01726c5279f340f8fee3669609 SHA512 aeb15a02782cc0b3b46a892e2d82834e5172a7da04e2498eaefec58221305dd24a86aada5ce05978bd4694895ffeb94ae980fd767f4ee00c499b3dd518fd3e20
27
28 diff --git a/sys-apps/toybox/toybox-0.8.0.ebuild b/sys-apps/toybox/toybox-0.8.0.ebuild
29 new file mode 100644
30 index 00000000000..564d2c54b23
31 --- /dev/null
32 +++ b/sys-apps/toybox/toybox-0.8.0.ebuild
33 @@ -0,0 +1,57 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI="7"
38 +
39 +inherit multiprocessing savedconfig toolchain-funcs
40 +
41 +if [[ ${PV} == 9999 ]]; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://github.com/landley/toybox.git"
44 +else
45 + SRC_URI="https://landley.net/code/toybox/downloads/${P}.tar.gz"
46 + KEYWORDS="~amd64 ~x86"
47 +fi
48 +
49 +# makefile is stupid
50 +RESTRICT="test"
51 +
52 +DESCRIPTION="Common linux commands in a multicall binary"
53 +HOMEPAGE="https://landley.net/code/toybox/"
54 +
55 +# The source code does not explicitly say that it's BSD, but the author has repeatedly said it
56 +LICENSE="BSD-2"
57 +SLOT="0"
58 +IUSE=""
59 +
60 +src_prepare() {
61 + default
62 + restore_config .config
63 +}
64 +
65 +src_configure() {
66 + if [ -f .config ]; then
67 + yes "" | emake -j1 oldconfig > /dev/null
68 + return 0
69 + else
70 + einfo "Could not locate user configfile, so we will save a default one"
71 + emake -j1 defconfig > /dev/null
72 + fi
73 +}
74 +
75 +src_compile() {
76 + tc-export CC STRIP
77 + export HOSTCC=$(tc-getBUILD_CC)
78 + unset CROSS_COMPILE
79 + export CPUS=$(makeopts_jobs)
80 + emake V=1
81 +}
82 +
83 +src_test() {
84 + emake test
85 +}
86 +
87 +src_install() {
88 + save_config .config
89 + newbin generated/unstripped/toybox toybox
90 +}