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: Mon, 26 Jun 2017 13:50:53
Message-Id: 1498485038.339cca6a6175ed50d7b198fb326c82788ef570df.patrick@gentoo
1 commit: 339cca6a6175ed50d7b198fb326c82788ef570df
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 26 11:53:02 2017 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 26 13:50:38 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=339cca6a
7
8 sys-apps/toybox: Bump
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 sys-apps/toybox/Manifest | 1 +
13 sys-apps/toybox/toybox-0.7.4.ebuild | 57 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 58 insertions(+)
15
16 diff --git a/sys-apps/toybox/Manifest b/sys-apps/toybox/Manifest
17 index 337ff76b193..62c3ae0207e 100644
18 --- a/sys-apps/toybox/Manifest
19 +++ b/sys-apps/toybox/Manifest
20 @@ -4,3 +4,4 @@ DIST toybox-0.7.0.tar.gz 759570 SHA256 65428816f88ad3fe92b67df86dc05427c8078fe03
21 DIST toybox-0.7.1.tar.gz 779835 SHA256 5bb3069f58faf12940d5cfde3209ac7f63210bebdd9023979b0c20cede126ea7 SHA512 6347ce8a917e7e7f2046ae2aaefbfffe1c8aca42a4770c57dc23739de93647dc476356a4c3875a75d423bd7fd027c01a1b45627dc16f69801ef0369dbae6799b WHIRLPOOL 4c47aec665f436a9171b7fe6f4b28d8b569aea3565f27ff71b8c9cc070b2c1d5284083b0afd77557700f618cc74dcc2619df28333b1ce1b97f9599ad246951f0
22 DIST toybox-0.7.2.tar.gz 798101 SHA256 79da71c7c39cef0a5f7b834f0b17d0d436e7994dd33e912f581b4c12d3b1681f SHA512 ce579be77b628a8466718c13b28390dd2988bbdd5d51b8fac5cc18125cd13968105bd991dc8bf1e6a9618e8a9c07eded361f6371e2f02f4cd7181b42c135f1ef WHIRLPOOL 63666d100880034ea9b74f0983cea2fce6e0b594e6668371d833e02a7a24d602ff5132d02d103a61fb89a5e595baf27b9c58d19d69cdced11eff8e865b0f0f0f
23 DIST toybox-0.7.3.tar.gz 806773 SHA256 e6469b508224e0d2e4564dda05c4bb47aef5c28bf29d6c983bcdc6e3a0cd29d6 SHA512 8f6fcf156fbfedb706f3048b535369e235c47a40087405e54f0b0de877691c41b700b2ddd8c0d5abd6e09367f313c2eef1bc659331b2391738f6f0eefc9115fd WHIRLPOOL 5ebdfb133203405379d2d7f1cbb50e54dc23cb5e9126fb794dbdebb5d7ef43998be501c70443b1f644d7a10d70b9a185656187535a4aac4d1d5b93eb71cc5c7e
24 +DIST toybox-0.7.4.tar.gz 817027 SHA256 49d74ca897501e5c981516719870fe08581726f5c018abe35ef52c6f0de113e7 SHA512 380e8c22f1bcea34ee345b9bcfd9459c7bcde8518d0f5c74227ced2e59b063f619e1b6314c1af4e0371d7300fe916d55510272469a061c4232005b7533b09022 WHIRLPOOL 21a7db472d642e3e78af9252e662c86a2756771ea0ee13a97f51b902f5e5ab66be993e014b0f56af01c523e258456d7504ddd27c6d48b34a9898a0ab8923d497
25
26 diff --git a/sys-apps/toybox/toybox-0.7.4.ebuild b/sys-apps/toybox/toybox-0.7.4.ebuild
27 new file mode 100644
28 index 00000000000..85540763608
29 --- /dev/null
30 +++ b/sys-apps/toybox/toybox-0.7.4.ebuild
31 @@ -0,0 +1,57 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=5
36 +
37 +inherit eutils multiprocessing savedconfig toolchain-funcs
38 +
39 +if [[ ${PV} == 9999 ]]; then
40 + inherit git-r3
41 + EGIT_REPO_URI="https://github.com/gfto/toybox.git"
42 +else
43 + SRC_URI="http://landley.net/code/toybox/downloads/${P}.tar.gz"
44 + KEYWORDS="~amd64 ~x86"
45 +fi
46 +
47 +# makefile is stupid
48 +RESTRICT="test"
49 +
50 +DESCRIPTION="Common linux commands in a multicall binary"
51 +HOMEPAGE="http://landley.net/code/toybox/"
52 +
53 +# The source code does not explicitly say that it's BSD, but the author has repeatedly said it
54 +LICENSE="BSD-2"
55 +SLOT="0"
56 +IUSE=""
57 +
58 +src_prepare() {
59 + epatch_user
60 + restore_config .config
61 +}
62 +
63 +src_configure() {
64 + if [ -f .config ]; then
65 + yes "" | emake -j1 oldconfig > /dev/null
66 + return 0
67 + else
68 + einfo "Could not locate user configfile, so we will save a default one"
69 + emake defconfig > /dev/null
70 + fi
71 +}
72 +
73 +src_compile() {
74 + tc-export CC STRIP
75 + export HOSTCC=$(tc-getBUILD_CC)
76 + unset CROSS_COMPILE
77 + export CPUS=$(makeopts_jobs)
78 + emake V=1
79 +}
80 +
81 +src_test() {
82 + emake test
83 +}
84 +
85 +src_install() {
86 + save_config .config
87 + newbin generated/unstripped/toybox toybox
88 +}